------- Comment #2 from dje at gcc dot gnu dot org 2009-04-27 13:54 ------- This also fails on AIX. On AIX, the error appears as a failure while compiling libobjc/linking.m.
A function in cgraphunit.c is being mis-compiled, possibly build_cdtor(). This causes cgraph_build_static_cdtor() to be called with an invalid priority of "-1", instead of 65535. The priority should not be negative. This negative priority value generates an invalid global file function name: _GLOBAL__I_-00001_0___objc_linking A function name should not contain a minus sign, which is a syntax error. Recompiling cgarphunit.c without optimization fixes the miscompilation. An incorrect priority is calculated from decl_fini_priority_lookup(), but recompiling tree.c does not change the failure. -- dje at gcc dot gnu dot org changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |dje at gcc dot gnu dot org Status|UNCONFIRMED |NEW Ever Confirmed|0 |1 GCC build triplet|powerpc-apple-darwin9 |powerpc-apple- | |darwin9,powerpc-ibm-aix GCC host triplet|powerpc-apple-darwin9 |powerpc-apple- | |darwin9,powerpc-ibm-aix GCC target triplet|powerpc-apple-darwin9 |powerpc-apple- | |darwin9,powerpc-ibm-aix Priority|P3 |P1 Last reconfirmed|0000-00-00 00:00:00 |2009-04-27 13:54:23 date| | Summary|[4.5 Regression] |[4.5 Regression] |Bootstrapping fails at stage|Bootstrapping fails at stage |1 on powerpc-apple-darwin9 |1 on powerpc-apple-darwin9 | |and powerpc-ibm-aix http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39929