Fix -feliminate-dwarf2-dups ICE.
commit8a7a6f4ded855d2fc07bc9c331b1058594bbe479
authorDevang Patel <dpatel@apple.com>
Mon, 6 Oct 2003 22:25:19 +0000 (6 15:25 -0700)
committerDevang Patel <dpatel@gcc.gnu.org>
Mon, 6 Oct 2003 22:25:19 +0000 (6 15:25 -0700)
tree3394bf2be8f58b06adeaa9ec44b6beb09ec8665c
parent9a557707dd303a741f5a329b5b2be232794e11f1
Fix -feliminate-dwarf2-dups ICE.

       gcc
       * dwarf2out.c (is_main_source): Remove variable.
       (dwarf2out_start_source_file): Do not check is_main_source.
       Do not reset is_main_source.
       (dwarf2out_init): Do not initialize is_main_source.

       testsuite
       * gcc.dg/debug/dwarf2-3.h: New test.
       * gcc.dg/debug/dwarf2-3.c: New test case for -feliminate-dwarf2-dups.

From-SVN: r72166
gcc/ChangeLog
gcc/dwarf2out.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/debug/dwarf2-3.c [new file with mode: 0644]
gcc/testsuite/gcc.dg/debug/dwarf2-3.h [new file with mode: 0644]