diff options
author | Uros Bizjak <ubizjak@gmail.com> | 2010-05-20 20:52:03 +0200 |
---|---|---|
committer | Uros Bizjak <uros@gcc.gnu.org> | 2010-05-20 20:52:03 +0200 |
commit | 953c29f73eb8ad665a5e1324bb0b66f98a8e6839 (patch) | |
tree | d47931631b96026df91e43bfebc53d8b19e29baf /gcc/config/i386/i386.md | |
parent | 8961e01e953ce0ea2f91572bb3bd1d5ee0d82044 (diff) | |
download | gcc-953c29f73eb8ad665a5e1324bb0b66f98a8e6839.zip gcc-953c29f73eb8ad665a5e1324bb0b66f98a8e6839.tar.gz gcc-953c29f73eb8ad665a5e1324bb0b66f98a8e6839.tar.bz2 |
re PR target/43733 (bootstrap fails on Solaris 10 x86 with GNU as 2.15 and --with-arch=core2)
PR target/43733
* configure.ac (gcc_cv_as_ix86_sahf): Switch to 64bit mode.
* configure: Regenerate.
* config.in: Regenerate.
* config/i386/i386.md (x86_sahf_1): Conditionally output 0x9e
instead of sahf only for 64bit targets.
From-SVN: r159636
Diffstat (limited to 'gcc/config/i386/i386.md')
-rw-r--r-- | gcc/config/i386/i386.md | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/gcc/config/i386/i386.md b/gcc/config/i386/i386.md index 35b2f21..2dd6699a 100644 --- a/gcc/config/i386/i386.md +++ b/gcc/config/i386/i386.md @@ -1428,11 +1428,12 @@ UNSPEC_SAHF))] "TARGET_SAHF" { -#ifdef HAVE_AS_IX86_SAHF - return "sahf"; -#else - return ASM_BYTE "0x9e"; +#ifndef HAVE_AS_IX86_SAHF + if (TARGET_64BIT) + return ASM_BYTE "0x9e"; + else #endif + return "sahf"; } [(set_attr "length" "1") (set_attr "athlon_decode" "vector") |