diff options
author | Jason Merrill <jason@redhat.com> | 2001-11-15 12:55:28 -0500 |
---|---|---|
committer | Jason Merrill <jason@gcc.gnu.org> | 2001-11-15 12:55:28 -0500 |
commit | 18b5b8d64ccdb9c9bc94f352a03f524467e8ad26 (patch) | |
tree | fc8971b2f6582b621fcb6b1e7168fbaec3123d96 /gcc/dwarf2out.c | |
parent | f6b08fe890f8f037e1e18e36af092ca95e1dd82b (diff) | |
download | gcc-18b5b8d64ccdb9c9bc94f352a03f524467e8ad26.zip gcc-18b5b8d64ccdb9c9bc94f352a03f524467e8ad26.tar.gz gcc-18b5b8d64ccdb9c9bc94f352a03f524467e8ad26.tar.bz2 |
dwarf2out.c (dwarf2out_finish): Don't abort because of orphan DIEs if there were errors in the source.
* dwarf2out.c (dwarf2out_finish): Don't abort because of orphan
DIEs if there were errors in the source.
* config/alpha/alpha-interix.h, config/alpha/elf.h,
config/arm/coff.h, config/i386/djgpp.h, config/i386/i386.c,
config/i386/i386.h, config/i386/sco5.h, config/i960/i960-coff.h,
config/m68k/coff.h, config/m88k/m88k.h, config/m88k/m88k.c,
config/pa/pa64-hpux.h, config/sh/sh.h, config/sparc/litecoff.h,
config/elfos.h, config/lynx.h, config/netware.h,
config/m68hc11/m68hc11.h, config/mcore/mcore-pe.h,
config/s390/linux64.h: Remove definitions of INT_ASM_OP, change
uses to use ASM_LONG.
From-SVN: r47066
Diffstat (limited to 'gcc/dwarf2out.c')
-rw-r--r-- | gcc/dwarf2out.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/gcc/dwarf2out.c b/gcc/dwarf2out.c index 80f16db..886b15b 100644 --- a/gcc/dwarf2out.c +++ b/gcc/dwarf2out.c @@ -11853,6 +11853,9 @@ dwarf2out_finish (input_filename) add_child_die (origin->die_parent, die); else if (die == comp_unit_die) ; + else if (errorcount > 0 || sorrycount > 0) + /* It's OK to be confused by errors in the input. */ + add_child_die (comp_unit_die, die); else abort (); } |