This is the mail archive of the crossgcc@sourceware.org mailing list for the crossgcc project.

See the CrossGCC FAQ for lots more information.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: gcc 4.0.x arm softfloat difficulties


On Wed, Jan 04, 2006 at 06:54:40PM -0000, Dave Korn wrote:

> >>   So just out of curiosity (here's where I either say something very
> >> very stupid or solve the problem for you), if old versions of gcc didn't
> >> have soft float, and you've taken a new version of gcc, and tried to
> >> add soft float, and got an error from having _two_ versions of the
> >> softfloat functions ... 
> >> 
> >>  ... doesn't that mean that someone else has _already_ added soft float
> >> to gcc, sometime between 3.3 and 4.0.1, and your patch was unneccessary?
> > 
> > gcc 3.4 comes with softfloat support, but needs the patch that I quoted
> > to prevent it from giving an error about undefined symbols.  The end
> > product works fine.
> > 
> > gcc 4.0 also comes with softfloat support, but doesn't work without the
> > patch (gives an error about undefined symbols) nor with the patch (gives
> > an error about duplicate symbols.)
> > 
> 
>   Hm.  Adding those things to LIB1ASMFUNCS is the wrong thing, I think,
> normally you just add the DPBIT/FPBIT macros.  I don't have the relevant files
> to hand, but what happens if you compare the gcc-3.4 version of t-linux
> against the gcc-4.0 version of t-linux (without the patch applied); it's
> almost certain to be the case that _something_ related has been changed
> 'beneath your feet' between 3.4 and 4.0.x that is now causing this new
> problem.  If you haven't read it yet, the relevant chapter of the gcc
> internals docs is 12.1, "Target Makefile Fragments"

I don't see any relevant changes:

$ diff -u gcc-{3.4.1,4.0.1}/gcc/config/arm/t-linux
--- gcc-3.4.1/gcc/config/arm/t-linux    2003-09-21 00:09:07.000000000 +0300
+++ gcc-4.0.1/gcc/config/arm/t-linux    2004-05-15 15:41:35.000000000 +0300
@@ -9,11 +9,6 @@
 # MULTILIB_OPTIONS = mhard-float/msoft-float
 # MULTILIB_DIRNAMES = hard-float soft-float

-# If you want to build both APCS variants as multilib options this is how
-# to do it.
-# MULTILIB_OPTIONS += mapcs-32/mapcs-26
-# MULTILIB_DIRNAMES += apcs-32 apcs-26
-
 # EXTRA_MULTILIB_PARTS = crtbegin.o crtend.o

 # LIBGCC = stmp-multilib
$ 


cheers,
Lennert


------
Want more information?  See the CrossGCC FAQ, http://www.objsw.com/CrossGCC/
Want to unsubscribe? Send a note to crossgcc-unsubscribe@sources.redhat.com


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]