Commit 8536ebb5 by Eric Christopher

config.gcc: Add i386/t-fprules-softfp64 and soft-fp/t-softfp to x86-darwin configurations.

2007-05-25  Eric Christopher  <echristo@apple.com>

	    * config.gcc: Add i386/t-fprules-softfp64 and soft-fp/t-softfp
	    to x86-darwin configurations.
	    * config/i386/t-darwin: Add softfp support.
	    * config/i386/t-darwin64: Ditto.
	    * config/i386/sfp-machine.h: If mach then don't use
	    aliasing, emit a stub to call.

From-SVN: r125085
parent 9a3e1f0a
2007-05-25 Eric Christopher <echristo@apple.com>
* config.gcc: Add i386/t-fprules-softfp64 and soft-fp/t-softfp
to x86-darwin configurations.
* config/i386/t-darwin: Add softfp support.
* config/i386/t-darwin64: Ditto.
* config/i386/sfp-machine.h: If mach then don't use
aliasing, emit a stub to call.
2007-05-25 Kazu Hirata <kazu@codesourcery.com> 2007-05-25 Kazu Hirata <kazu@codesourcery.com>
* cfglayout.c, cgraphunit.c, config/avr/avr.c, fold-const.c, * cfglayout.c, cgraphunit.c, config/avr/avr.c, fold-const.c,
......
...@@ -1052,11 +1052,12 @@ i[34567]86-*-darwin*) ...@@ -1052,11 +1052,12 @@ i[34567]86-*-darwin*)
# support. # support.
with_arch=${with_arch:-nocona} with_arch=${with_arch:-nocona}
with_cpu=${with_cpu:-generic} with_cpu=${with_cpu:-generic}
tmake_file="${tmake_file} i386/t-fprules-softfp64 soft-fp/t-softfp"
;; ;;
x86_64-*-darwin*) x86_64-*-darwin*)
with_arch=${with_arch:-nocona} with_arch=${with_arch:-nocona}
with_cpu=${with_cpu:-generic} with_cpu=${with_cpu:-generic}
tmake_file="t-darwin ${cpu_type}/t-darwin64 t-slibgcc-darwin" tmake_file="t-darwin ${cpu_type}/t-darwin64 t-slibgcc-darwin i386/t-fprules-softfp64 soft-fp/t-softfp"
tm_file="${tm_file} ${cpu_type}/darwin64.h" tm_file="${tm_file} ${cpu_type}/darwin64.h"
;; ;;
i[34567]86-*-elf*) i[34567]86-*-elf*)
......
...@@ -127,6 +127,13 @@ struct fenv ...@@ -127,6 +127,13 @@ struct fenv
#define __BYTE_ORDER __LITTLE_ENDIAN #define __BYTE_ORDER __LITTLE_ENDIAN
/* Define ALIASNAME as a strong alias for NAME. */ /* Define ALIASNAME as a strong alias for NAME. */
#if defined __MACH__
/* Mach-O doesn't support aliasing. If these functions ever return
anything but int we need to revisit this... */
#define strong_alias(name, aliasname) \
int aliasname (TFtype a, TFtype b) { return name(a, b); }
#else
# define strong_alias(name, aliasname) _strong_alias(name, aliasname) # define strong_alias(name, aliasname) _strong_alias(name, aliasname)
# define _strong_alias(name, aliasname) \ # define _strong_alias(name, aliasname) \
extern __typeof (name) aliasname __attribute__ ((alias (#name))); extern __typeof (name) aliasname __attribute__ ((alias (#name)));
#endif
...@@ -2,3 +2,6 @@ MULTILIB_OPTIONS = m64 ...@@ -2,3 +2,6 @@ MULTILIB_OPTIONS = m64
MULTILIB_DIRNAMES = x86_64 MULTILIB_DIRNAMES = x86_64
LIB2_SIDITI_CONV_FUNCS=yes LIB2_SIDITI_CONV_FUNCS=yes
LIB2FUNCS_EXTRA = $(srcdir)/config/darwin-64.c LIB2FUNCS_EXTRA = $(srcdir)/config/darwin-64.c
softfp_wrap_start := '\#ifdef __x86_64__'
softfp_wrap_end := '\#endif'
LIB2_SIDITI_CONV_FUNCS=yes LIB2_SIDITI_CONV_FUNCS=yes
LIB2FUNCS_EXTRA = $(srcdir)/config/darwin-64.c LIB2FUNCS_EXTRA = $(srcdir)/config/darwin-64.c
softfp_wrap_start := '\#ifdef __x86_64__'
softfp_wrap_end := '\#endif'
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment