This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug target/9552] accepts invalid code for attribute section
- From: "dank at kegel dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 10 May 2004 21:09:07 -0000
- Subject: [Bug target/9552] accepts invalid code for attribute section
- References: <20030203191601.9552.csd_ob@daudt.org>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From dank at kegel dot com 2004-05-10 21:09 -------
With gcc-3.4.0, at least, the ICE depends on the build system's toolchain!
You can predict whether the ICE will occur by running with -S and grepping for
eh_frame. The ICE occurs if the first eh_frame's w attribute disagrees with the
const attribute of the __EH_FRAME_BEGIN__ in the test case.
Here's the annoying part:
with gcc-3.4.0, at least, the first eh_frame's 'w' attribute
*seems to depend on the build system's binutils or glibc*!
eh_frame has 'w' when gcc-3.4.0 is built on a system using
gcc-3.3.3/glibc-2.1.3/binutils-2.14.90.0.5, and lacks the 'w'
when built on a system using
gcc-3.2.2/glibc-2.3.2/binutils-2.13.90.0.18.
Thus one system's workaround (adding a 'const') seems to be another system's poison.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=9552