This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


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: soft-float support


> 
> Graeme Peterson writes:
>  > Hi, all.
>  > 
>  > I have done some searching, and it seems that gcc (in this case 
>  > 2.95.3 targetting ppc-QNX6) does not have support for statically
>  > linked software emulated floating point instructions.
>  > 
>  > Can someone clarify for me what is required to get this going?  Do 
>  > I need to implement the floating point emulation and tell gcc to 
>  > use it in place of the fadd in the __adddf3 call?  If so, how do I
>  > do that?
> 
> You need to specify the multilibs in your target file for qnx.
> 
> For example, in the current gcc source, gcc/config/rs6000/t-rs6000
> contains
> 
> MULTILIB_OPTIONS = msoft-float
> MULTILIB_DIRNAMES = soft-float
> 
> Andrew.
> 

Here is our gcc/config/rs6000/t-nto file.  I _think_ we had it set up
ok.

Thanks.
GP


  CRTSTUFF_T_CFLAGS = -msdata=none -fPIC -fno-omit-frame-pointer
  TARGET_LIBGCC2_CFLAGS = -fPIC -fno-honor-std
  FIXPROTO_DEFINES = -D__QNX__ -D__QNXNTO__ -D__PPC__ -D__GNUC__
  
  MULTILIB_OPTIONS        = msoft-float fPIC fexceptions
  MULTILIB_DIRNAMES       = nof pic exceptions
  MULTILIB_EXCEPTIONS     =
  MULTILIB_MATCHES        = ${MULTILIB_MATCHES_FLOAT} \
                            fPIC=mrelocatable-lib \
                            fPIC=mrelocatable \
                            fPIC=shared \
                            fPIC=fpic
  
  USER_H = $(EXTRA_HEADERS) $(LANG_EXTRA_HEADERS)
  LIBGCC=stmp-multilib
  INSTALL_LIBGCC=install-multilib
  CROSS_LIBGCC1 = libgcc1.a
  EXTRA_PARTS = crtbeginC++.o crtendC++.o
  LIB2FUNCS_EXTRA = tramp.S
  
  tramp.S: $(srcdir)/config/rs6000/tramp.asm
          cat $(srcdir)/config/rs6000/tramp.asm > tramp.S
  
  $(T)crtbeginC++.o: crtbegin.o
          cp crtbegin.o crtbeginC++.o
  
  $(T)crtendC++.o: crtend.o
          cp crtend.o crtendC++.o


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