re PR preprocessor/41445 (Debug information is wrong with and without --save-temps.)
authorJakub Jelinek <jakub@redhat.com>
Fri, 9 Oct 2009 19:55:34 +0000 (21:55 +0200)
committerJakub Jelinek <jakub@gcc.gnu.org>
Fri, 9 Oct 2009 19:55:34 +0000 (21:55 +0200)
commit21ece9b288130746b5b772a7b18b50ef7a8bc706
tree452aec3d79b2f3dd4e31e09a6ab051223c1fe2a8
parent9c1e641ac128838ef78f1618a568ad4315a58e66
re PR preprocessor/41445 (Debug information is wrong with and without --save-temps.)

PR preprocessor/41445
* c-ppoutput.c (do_line_change): New function.
(cb_line_change): Use it.
(scan_translation_unit): Call do_line_change if
avoid_paste or PREV_WHITE and token location is on a different line
than print.src_line.

* gcc.dg/cpp/separate-1.c: Adjust.
* gcc.dg/cpp/spacing1.c: Add -P to dg-options.
* gcc.dg/debug/dwarf2/pr41445-1.c: New test.
* gcc.dg/debug/dwarf2/pr41445-2.c: New test.
* gcc.dg/debug/dwarf2/pr41445-3.c: New test.
* gcc.dg/debug/dwarf2/pr41445-4.c: New test.
* gcc.dg/debug/dwarf2/pr41445-5.c: New test.
* gcc.dg/debug/dwarf2/pr41445-6.c: New test.

From-SVN: r152599
gcc/ChangeLog
gcc/c-ppoutput.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/cpp/separate-1.c
gcc/testsuite/gcc.dg/cpp/spacing1.c
gcc/testsuite/gcc.dg/debug/dwarf2/pr41445-1.c [new file with mode: 0644]
gcc/testsuite/gcc.dg/debug/dwarf2/pr41445-2.c [new file with mode: 0644]
gcc/testsuite/gcc.dg/debug/dwarf2/pr41445-3.c [new file with mode: 0644]
gcc/testsuite/gcc.dg/debug/dwarf2/pr41445-4.c [new file with mode: 0644]
gcc/testsuite/gcc.dg/debug/dwarf2/pr41445-5.c [new file with mode: 0644]
gcc/testsuite/gcc.dg/debug/dwarf2/pr41445-6.c [new file with mode: 0644]