patch-gcc_config_rs6000_t-openbsd 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. $OpenBSD: patch-gcc_config_rs6000_t-openbsd,v 1.1.1.1 2014/06/26 16:30:17 pascal Exp $
  2. --- gcc/config/rs6000/t-openbsd.orig Mon Nov 14 12:16:44 2011
  3. +++ gcc/config/rs6000/t-openbsd Mon Nov 14 13:23:24 2011
  4. @@ -0,0 +1,48 @@
  5. +# include t-rs6000 too
  6. +# this is taken from t-ppccomm
  7. +# but crt* removed.
  8. +
  9. +
  10. +LIB2FUNCS_EXTRA = tramp.S
  11. +
  12. +# This one can't end up in shared libgcc
  13. +LIB2FUNCS_STATIC_EXTRA = eabi.S
  14. +
  15. +# We want fine grained libraries, so use the new code to build the
  16. +# floating point emulation libraries.
  17. +FPBIT = fp-bit.c
  18. +DPBIT = dp-bit.c
  19. +
  20. +
  21. +dp-bit.c: $(srcdir)/config/fp-bit.c
  22. + cat $(srcdir)/config/fp-bit.c > dp-bit.c
  23. +
  24. +fp-bit.c: $(srcdir)/config/fp-bit.c
  25. + echo '#define FLOAT' > fp-bit.c
  26. + cat $(srcdir)/config/fp-bit.c >> fp-bit.c
  27. +
  28. +eabi.S: $(srcdir)/config/rs6000/eabi.asm
  29. + cat $(srcdir)/config/rs6000/eabi.asm > eabi.S
  30. +
  31. +tramp.S: $(srcdir)/config/rs6000/tramp.asm
  32. + cat $(srcdir)/config/rs6000/tramp.asm > tramp.S
  33. +
  34. +# Switch synonyms
  35. +MULTILIB_MATCHES_FLOAT = msoft-float=mcpu?401 \
  36. + msoft-float=mcpu?403 \
  37. + msoft-float=mcpu?ec603e \
  38. + msoft-float=mcpu?801 \
  39. + msoft-float=mcpu?821 \
  40. + msoft-float=mcpu?823 \
  41. + msoft-float=mcpu?860
  42. +MULTILIB_MATCHES_ENDIAN = mlittle=mlittle-endian mbig=mbig-endian
  43. +MULTILIB_MATCHES_SYSV = mcall-sysv=mcall-sysv-eabi mcall-sysv=mcall-sysv-noeabi mcall-sysv=mcall-linux mcall-sysv=mcall-netbsd
  44. +
  45. +LIBGCC = stmp-multilib
  46. +INSTALL_LIBGCC = install-multilib
  47. +
  48. +# It is important that crtbegin.o, etc., aren't surprised by stuff in .sdata.
  49. +CRTSTUFF_T_CFLAGS = -msdata=none
  50. +# Make sure crt*.o are built with -fPIC even if configured with
  51. +# --enable-shared --disable-multilib
  52. +CRTSTUFF_T_CFLAGS_S = -fPIC -msdata=none