This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/20505] [4.0/4.1 Regression] internal error when compiling with -ggdb2 and no error with -ggdb1
- 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: 1 Apr 2005 04:04:58 -0000
- Subject: [Bug c++/20505] [4.0/4.1 Regression] internal error when compiling with -ggdb2 and no error with -ggdb1
- References: <20050316221112.20505.ivanr@syncad.com>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From wilson at gcc dot gnu dot org 2005-04-01 04:04 -------
Fixed on mainline. Still needs to be fixed on the gcc-4.0 branch, which I
assume Nathan is doing.
I had to back off a bit from my earlier plans. Aggregate types and constructor
initializers pose complications that don't appear to be worth fixing, so I only
handle integral types, scalar real types, and STRING_CST. I commonized the code
in rtl_for_decl_location and tree_add_const_value_attribute so that they both
work the same.
The testcase by the way isn't portable. It requires that int and pointer be the
same size. I had to do s/int/long to make it work on my ia64 and x86_64
systems. But still that assumes long and pointers are the same size which is
not true for all ABIs supported by all targets. This is why I didn't already
add the testcase to the testsuite on mainline.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=20505