diff options
author | H.J. Lu <hongjiu.lu@intel.com> | 2012-08-22 19:46:28 +0000 |
---|---|---|
committer | H.J. Lu <hjl@gcc.gnu.org> | 2012-08-22 12:46:28 -0700 |
commit | c637141af07b7719c1b4c870373944929bcc34b6 (patch) | |
tree | 236b8d81975f925b0d2373ea51609df62083694d /libgcc | |
parent | a8a68bb00acf28a07497e7d233f13f4e5097d21a (diff) | |
download | gcc-c637141af07b7719c1b4c870373944929bcc34b6.zip gcc-c637141af07b7719c1b4c870373944929bcc34b6.tar.gz gcc-c637141af07b7719c1b4c870373944929bcc34b6.tar.bz2 |
Add -mlong-double-64/-mlong-double-80 to i386
gcc/
* doc/invoke.texi: Document -mlong-double-64/-mlong-double-80.
* config/i386/i386.c (flag_opts): Add -mlong-double-64.
(TARGET_HAS_BIONIC): Default long double to 64-bit for Bionic.
* config/i386/i386.h (LONG_DOUBLE_TYPE_SIZE): Use 64 if
TARGET_LONG_DOUBLE_64 is true.
(LIBGCC2_LONG_DOUBLE_TYPE_SIZE): New macro.
(WIDEST_HARDWARE_FP_SIZE): Defined to 80.
* config/i386/i386.opt (mlong-double-80): New option.
(mlong-double-64): Likewise.
* config/i386/i386-c.c (ix86_target_macros): Define
__LONG_DOUBLE_64__ for TARGET_LONG_DOUBLE_64.
gcc/testsuite/
* gcc.target/i386/long-double-64-1.c: New file.
* gcc.target/i386/long-double-64-2.c: Likewise.
* gcc.target/i386/long-double-64-3.c: Likewise.
* gcc.target/i386/long-double-64-4.c: Likewise.
* gcc.target/i386/long-double-80-1.c: Likewise.
* gcc.target/i386/long-double-80-2.c: Likewise.
* gcc.target/i386/long-double-80-3.c: Likewise.
* gcc.target/i386/long-double-80-4.c: Likewise.
* gcc.target/i386/long-double-80-5.c: Likewise.
* gcc.target/i386/long-double-80-6.c: Likewise.
* gcc.target/i386/long-double-80-7.c: Likewise.
libgcc/
* config/i386/t-linux (HOST_LIBGCC2_CFLAGS): New.
From-SVN: r190599
Diffstat (limited to 'libgcc')
-rw-r--r-- | libgcc/ChangeLog | 4 | ||||
-rw-r--r-- | libgcc/config/i386/t-linux | 2 |
2 files changed, 6 insertions, 0 deletions
diff --git a/libgcc/ChangeLog b/libgcc/ChangeLog index 0d4d78d..d59a455 100644 --- a/libgcc/ChangeLog +++ b/libgcc/ChangeLog @@ -1,3 +1,7 @@ +2012-08-22 H.J. Lu <hongjiu.lu@intel.com> + + * config/i386/t-linux (HOST_LIBGCC2_CFLAGS): New. + 2012-08-22 Joseph Myers <joseph@codesourcery.com> * Makefile.in (vis_hide, gen-hide-list): Do not make definitions diff --git a/libgcc/config/i386/t-linux b/libgcc/config/i386/t-linux index 29b4c22..4f47f7b 100644 --- a/libgcc/config/i386/t-linux +++ b/libgcc/config/i386/t-linux @@ -2,3 +2,5 @@ # Need to support TImode for x86. Override the settings from # t-slibgcc-elf-ver and t-linux SHLIB_MAPFILES = libgcc-std.ver $(srcdir)/config/i386/libgcc-glibc.ver + +HOST_LIBGCC2_CFLAGS += -mlong-double-80 |