[RFA] expand from SSA form (1/2)

H.J. Lu hjl.tools@gmail.com
Mon Apr 27 14:43:00 GMT 2009


On Mon, Apr 27, 2009 at 7:11 AM, David Edelsohn <dje.gcc@gmail.com> wrote:
> Michael,
>
> A patch in the last 24 hours has caused a mis-optimization on PowerPC.
>  The error appears as a failure while compiling libobjc/linking.m.
>
> A function in cgraphunit.c is being mis-compiled, probably
> 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.
>
> Darwin displays a similar error earlier in bootstrap.
>
> Jakub tested his patch on PowerPC and Geoff's tester failed before
> Honza's patch, so the "expand from SSA" patch appears to be the likely
> culprit.
>
> Both Darwin and AIX are bootstrapping in 32 bit mode.  Richi suggested
> on IRC that this may be related to some known CONST_INT issue for
> which you already have a patch.
>

It could be:

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39922


-- 
H.J.



More information about the Gcc-patches mailing list