------- 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