Stay compatible after the GCC PR fortran/29635 fix.

* dwarf2read.c (process_die <DW_TAG_imported_module>)
	(process_die <DW_TAG_imported_module>): Do not assert anything about
	these unsupported tags.
This commit is contained in:
Jan Kratochvil 2008-09-01 22:24:05 +00:00
parent 70296270a4
commit d68209e4d0
2 changed files with 10 additions and 3 deletions

View File

@ -1,3 +1,10 @@
2008-09-01 Jan Kratochvil <jan.kratochvil@redhat.com>
Stay compatible after the GCC PR fortran/29635 fix.
* dwarf2read.c (process_die <DW_TAG_imported_module>)
(process_die <DW_TAG_imported_module>): Do not assert anything about
these unsupported tags.
2008-08-29 Tom Tromey <tromey@redhat.com> 2008-08-29 Tom Tromey <tromey@redhat.com>
* maint.c (_initialize_maint_cmds): Fix typo. * maint.c (_initialize_maint_cmds): Fix typo.

View File

@ -2760,10 +2760,10 @@ process_die (struct die_info *die, struct dwarf2_cu *cu)
information contained in these. DW_TAG_imported_declaration information contained in these. DW_TAG_imported_declaration
dies shouldn't have children; DW_TAG_imported_module dies dies shouldn't have children; DW_TAG_imported_module dies
shouldn't in the C++ case, but conceivably could in the shouldn't in the C++ case, but conceivably could in the
Fortran case, so we'll have to replace this gdb_assert if Fortran case. */
Fortran compilers start generating that info. */
processing_has_namespace_info = 1; processing_has_namespace_info = 1;
gdb_assert (die->child == NULL); complaint (&symfile_complaints, _("unsupported tag: '%s'"),
dwarf_tag_name (die->tag));
break; break;
default: default:
new_symbol (die, NULL, cu); new_symbol (die, NULL, cu);