Support Xilinx PowerPC single-precision FPU

Michael Eager eager@eagercon.com
Fri Oct 10 01:08:00 GMT 2008


Peter Bergner wrote:
> On Thu, 2008-10-09 at 09:24 -0500, Peter Bergner wrote:
>> On Wed, 2008-10-08 at 13:29 -0700, Michael Eager wrote:
>>> The attached patch adds support for Xilinx PPC 405/440
>>> with a single-precision FPU.
>> I'll bootstrap and regtest your patch (actually your fixed patch given
>> Joseph's comment) on my powerpc64-linux system.
> 
> The build failed for me using your patch from:
> 
>   http://gcc.gnu.org/ml/gcc-patches/2008-10/msg00349.html
> 
> with:
> 
> gcc  -g -fkeep-inline-functions -DIN_GCC   -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wcast-qual -Wold-style-definition -Wc++-compat -Wmissing-format-attribute -fno-common  -DHAVE_CONFIG_H  -o cc1-dummy c-lang.o stub-objc.o attribs.o c-errors.o c-lex.o c-pragma.o c-decl.o c-typeck.o c-convert.o c-aux-info.o c-common.o c-opts.o c-format.o c-semantics.o c-ppoutput.o c-cppbuiltin.o c-objc-common.o c-dump.o c-pch.o c-parser.o rs6000-c.o c-gimplify.o tree-mudflap.o c-pretty-print.o c-omp.o dummy-checksum.o \
>   main.o tree-browser.o libbackend.a ../libcpp/libcpp.a ../libdecnumber/libdecnumber.a ../libcpp/libcpp.a   ../libiberty/libiberty.a ../libdecnumber/libdecnumber.a -L/usr/local/gmp/lib -L/usr/local/mpfr/lib -lmpfr -lgmp   -L/usr/local/gmp/lib -L/usr/local/mpfr/lib -lmpfr -lgmp
> libbackend.a(rs6000.o): In function `rs6000_hard_regno_mode_ok':
> /home/bergner/gcc/gcc-mainline-xilinx/gcc/config/rs6000/rs6000.c:1318: multiple definition of `rs6000_xilinx_fpu'
> libbackend.a(options.o):/home/bergner/gcc/build/gcc-mainline-xilinx/gcc/options.c:5711: first defined here
> collect2: ld returned 1 exit status

The attached replacement patch eliminates the duplicate definition.
I'm unclear why this only appeared when building with target=
powerpc64-linux and not with target=powerpc-eabisim.

Also attached is the correct changelog.


-- 
Michael Eager	 eager@eagercon.com
1960 Park Blvd., Palo Alto, CA 94306  650-325-8077
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: changelog
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20081010/c5a95c57/attachment.ksh>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: gcc.patch
Type: text/x-patch
Size: 27701 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20081010/c5a95c57/attachment.bin>


More information about the Gcc-patches mailing list