This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug debug/31230] debug information depends on gc parameters
- From: "wilson at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 30 Mar 2007 21:44:07 -0000
- Subject: [Bug debug/31230] debug information depends on gc parameters
- References: <bug-31230-230@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #2 from wilson at gcc dot gnu dot org 2007-03-30 22:44 -------
I can reproduce the problem using the provided testcase.
It looks like all we have to do is mark the array type TYPE_DOMAIN as used, to
prevent it from being garbage collected. This just requires adding an
equate_type_number_to_die call, which should be harmless by itself, I think.
This solves the problem for the provided testcase. I haven't done a bootstrap
or gdb testsuite run to test the patch yet.
It might be nice to try to reuse this info, via lookup_type_die, now that we
have saved it. Unfortunately, the dwarf3 standard doesn't have any provision
for this.
--
wilson at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |wilson at gcc dot gnu dot
| |org
Status|UNCONFIRMED |NEW
Ever Confirmed|0 |1
Last reconfirmed|0000-00-00 00:00:00 |2007-03-30 22:44:06
date| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=31230