This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [tree-ssa] PATCH to return to DECL_SOURCE_LOCATION


Andreas Schwab <schwab@suse.de> writes:

> Jason Merrill <jason@redhat.com> writes:
>
>> Booted and tested athlon-pc-linux-gnu.
>>
>> 2003-09-24  Jason Merrill  <jason@redhat.com>
>>
>> 	* tree.h (DECL_SOURCE_LOCATION): Resurrect.
>> 	(DECL_SOURCE_FILE, DECL_SOURCE_LINE): Likewise.
>> 	(EXPR_LOCUS): Renamed from TREE_LOCUS.  Null for non-exprs.
>> 	(SET_EXPR_LOCUS): New macro.
>> 	(EXPR_FILENAME): Renamed from TREE_FILENAME.
>> 	(EXPR_LINENO): Renamed from TREE_LINENO.
>
> Doesn't bootstrap:
>
> ada/trans.o(.text+0x3dd72): In function `build_unit_elab':
> ../../gcc/ada/trans.c:5336: undefined reference to `TREE_FILENAME'
> ada/trans.o(.text+0x3ddb2):../../gcc/ada/trans.c:5337: undefined reference to `TREE_LINENO'

After fixing the obvious I'm now getting this:

stage1/xgcc -Bstage1/ -B/usr/local/ia64-suse-linux/bin/ -c -g -O2       -gnatpg -gnata -g -O1 -fno-inline \
 -I- -I. -Iada -I../../gcc/ada ../../gcc/ada/a-except.adb -o ada/a-except.o
+===========================GNAT BUG DETECTED==============================+
| 3.5-tree-ssa 20030925 (merged 20030817) (ia64-suse-linux-gnu) GCC error: |
| tree check: expected class 'e', have 'd' (function_decl) in              |
|    annotate_with_file_line, at tree.c:2567                               |
| Error detected at ../../gcc/ada/a-except.ads:334:4                       |
| Please submit a bug report; see http://gcc.gnu.org/bugs.html.            |
| Include the entire contents of this bug box in the report.               |
| Include the exact gcc or gnatmake command that you entered.              |
| Also include sources listed below in gnatchop format                     |
| (concatenated together with no headers between files).                   |
+==========================================================================+

Please include these source files with error report
Note that list may not be accurate in some cases, 
so please double check that the problem can still 
be reproduced with the set of files listed.


compilation abandoned
make[2]: *** [ada/a-except.o] Error 1
make[2]: Leaving directory `/tmp/cvs/gcc-20030925/Build/gcc'

Andreas.

-- 
Andreas Schwab, SuSE Labs, schwab@suse.de
SuSE Linux AG, Deutschherrnstr. 15-19, D-90429 Nürnberg
Key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5
"And now for something completely different."


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]