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
Showing
- gcc/ChangeLog 7 additions, 0 deletionsgcc/ChangeLog
- gcc/Makefile.in 1 addition, 1 deletiongcc/Makefile.in
- gcc/input.h 7 additions, 2 deletionsgcc/input.h
- gcc/testsuite/ChangeLog 3 additions, 0 deletionsgcc/testsuite/ChangeLog
- gcc/testsuite/gcc.dg/debug/dwarf2/pr41543.c 14 additions, 0 deletionsgcc/testsuite/gcc.dg/debug/dwarf2/pr41543.c
- gcc/tree.c 3 additions, 2 deletionsgcc/tree.c
- libcpp/ChangeLog 7 additions, 0 deletionslibcpp/ChangeLog
- libcpp/include/line-map.h 5 additions, 0 deletionslibcpp/include/line-map.h
- libcpp/line-map.c 2 additions, 2 deletionslibcpp/line-map.c
Loading
Please register or sign in to comment