ppc64 minimal-toc problem.

Geoff Keating geoffk@geoffk.org
Tue Jul 17 02:31:00 GMT 2001


> Date: Tue, 17 Jul 2001 16:59:01 +0930
> From: Alan Modra <amodra@bigpond.net.au>
> Cc: gcc-patches@gnu.gcc.org, dje@watson.ibm.com
> Mail-Followup-To: Geoff Keating <geoffk@redhat.com>,
> 	gcc-patches@gnu.gcc.org, dje@watson.ibm.com
> Content-Disposition: inline
> User-Agent: Mutt/1.3.17i
> 
> On Tue, Jul 17, 2001 at 12:21:25AM -0700, Geoff Keating wrote:
> > 
> > which is pretty much what I'd expect, although I suspect 'mfcr' is not
> > an instruction GCC should really be using...
> 
> I was using 3.0 branch sources, unchanged.  configured with
> --host=i686-linux --target=powerpc-ibm-aix5.1 --enable-languages=c,
> gcc/Makefile modified to set {,MAYBE_}USE_COLLECT2 null to get around a
> build problem, then "-O2 -maix64 -mminimal-toc" gives me
> 
> .foo:
>         ld 30,LCTOC..1(2)
>         ld 0,0(3)
>         ld 9,LC..0(30)
>         and. 9,0,9
>         mfcr 3
>         rlwinm 3,3,3,1
>         blr

That's interesting.  Have you tried debugging the problem?  As I said,
it seems to work on the mainline.

-- 
- Geoffrey Keating <geoffk@geoffk.org>



More information about the Gcc-patches mailing list