diff options
author | Jakub Jelinek <jakub@redhat.com> | 2009-10-14 12:04:22 +0200 |
---|---|---|
committer | Jakub Jelinek <jakub@gcc.gnu.org> | 2009-10-14 12:04:22 +0200 |
commit | 96c169e15643ebffb7144837a54c760331d91c21 (patch) | |
tree | 1d09c51355f1f205dbfff2b154b3beaa1ef84a15 /gcc/tree.c | |
parent | b29ee46cf2f0010084b621c1d2ec50bb5b6a8964 (diff) | |
download | gcc-96c169e15643ebffb7144837a54c760331d91c21.zip gcc-96c169e15643ebffb7144837a54c760331d91c21.tar.gz gcc-96c169e15643ebffb7144837a54c760331d91c21.tar.bz2 |
re PR preprocessor/41543 (BUILTINS_LOCATION wrong with -fpreprocessed)
PR preprocessor/41543
* input.h (BUILTINS_LOCATION): Change to 1 from 2.
Assert BUILTINS_LOCATION < RESERVED_LOCATION_COUNT.
* tree.c: Include intl.h.
(expand_location): Handle BUILTINS_LOCATION.
* Makefile.in (tree.o): Depend on intl.h.
* include/line-map.h (RESERVED_LOCATION_COUNT): Define.
* line-map.c (linemap_init): Initialize highest_location and
highest_line to RESERVED_LOCATION_COUNT-1 instead of 0.
* gcc.dg/debug/dwarf2/pr41543.c: New test.
From-SVN: r152761
Diffstat (limited to 'gcc/tree.c')
-rw-r--r-- | gcc/tree.c | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -59,6 +59,7 @@ along with GCC; see the file COPYING3. If not see #include "timevar.h" #include "except.h" #include "debug.h" +#include "intl.h" /* Tree code classes. */ @@ -3952,9 +3953,9 @@ expanded_location expand_location (source_location loc) { expanded_location xloc; - if (loc == 0) + if (loc <= BUILTINS_LOCATION) { - xloc.file = NULL; + xloc.file = loc == UNKNOWN_LOCATION ? NULL : _("<built-in>"); xloc.line = 0; xloc.column = 0; xloc.sysp = 0; |