re PR preprocessor/41543 (BUILTINS_LOCATION wrong with -fpreprocessed)
authorJakub Jelinek <jakub@redhat.com>
Wed, 14 Oct 2009 10:04:22 +0000 (12:04 +0200)
committerJakub Jelinek <jakub@gcc.gnu.org>
Wed, 14 Oct 2009 10:04:22 +0000 (12:04 +0200)
commit96c169e15643ebffb7144837a54c760331d91c21
tree1d09c51355f1f205dbfff2b154b3beaa1ef84a15
parentb29ee46cf2f0010084b621c1d2ec50bb5b6a8964
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
gcc/ChangeLog
gcc/Makefile.in
gcc/input.h
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/debug/dwarf2/pr41543.c [new file with mode: 0644]
gcc/tree.c
libcpp/ChangeLog
libcpp/include/line-map.h
libcpp/line-map.c