diff options
author | Uros Bizjak <uros@gcc.gnu.org> | 2016-05-22 19:20:10 +0200 |
---|---|---|
committer | Uros Bizjak <uros@gcc.gnu.org> | 2016-05-22 19:20:10 +0200 |
commit | 41a6c071413f59fb54484202b565b93afe75684a (patch) | |
tree | 79de3076a968de2196eaf488054b9afdde954a9c /gcc/config | |
parent | af120161421cdc935ff98a0e5038775f22a1ca90 (diff) | |
download | gcc-41a6c071413f59fb54484202b565b93afe75684a.zip gcc-41a6c071413f59fb54484202b565b93afe75684a.tar.gz gcc-41a6c071413f59fb54484202b565b93afe75684a.tar.bz2 |
revert: re PR target/70738 (Add -mgeneral-regs-only option)
Revert:
gcc/
PR target/70738
* common/config/i386/i386-common.c
(OPTION_MASK_ISA_GENERAL_REGS_ONLY_UNSET): New.
(ix86_handle_option): Disable MPX, MMX, SSE and x87 instructions
for -mgeneral-regs-only.
* config/i386/i386.c (ix86_option_override_internal): Don't
enable x87 instructions if only the general registers are
allowed.
* config/i386/i386.opt: Add -mgeneral-regs-only.
* doc/invoke.texi: Document -mgeneral-regs-only.
gcc/testsuite/
PR target/70738
* gcc.target/i386/pr70738-1.c: Likewise.
* gcc.target/i386/pr70738-2.c: Likewise.
* gcc.target/i386/pr70738-3.c: Likewise.
* gcc.target/i386/pr70738-4.c: Likewise.
* gcc.target/i386/pr70738-5.c: Likewise.
* gcc.target/i386/pr70738-6.c: Likewise.
* gcc.target/i386/pr70738-7.c: Likewise.
* gcc.target/i386/pr70738-8.c: Likewise.
* gcc.target/i386/pr70738-9.c: Likewise.
From-SVN: r236570
Diffstat (limited to 'gcc/config')
-rw-r--r-- | gcc/config/i386/i386.c | 5 | ||||
-rw-r--r-- | gcc/config/i386/i386.opt | 4 |
2 files changed, 1 insertions, 8 deletions
diff --git a/gcc/config/i386/i386.c b/gcc/config/i386/i386.c index 5448316..1cb88d6 100644 --- a/gcc/config/i386/i386.c +++ b/gcc/config/i386/i386.c @@ -5337,10 +5337,7 @@ ix86_option_override_internal (bool main_args_p, && !(opts->x_ix86_isa_flags_explicit & OPTION_MASK_ISA_PKU)) opts->x_ix86_isa_flags |= OPTION_MASK_ISA_PKU; - /* Don't enable x87 instructions if only the general registers - are allowed. */ - if (!(opts_set->x_target_flags & MASK_GENERAL_REGS_ONLY) - && !(opts_set->x_target_flags & MASK_80387)) + if (!(opts_set->x_target_flags & MASK_80387)) { if (processor_alias_table[i].flags & PTA_NO_80387) opts->x_target_flags &= ~MASK_80387; diff --git a/gcc/config/i386/i386.opt b/gcc/config/i386/i386.opt index d12b29a..36dd4bd 100644 --- a/gcc/config/i386/i386.opt +++ b/gcc/config/i386/i386.opt @@ -897,7 +897,3 @@ Enum(stack_protector_guard) String(global) Value(SSP_GLOBAL) mmitigate-rop Target Var(flag_mitigate_rop) Init(0) Attempt to avoid generating instruction sequences containing ret bytes. - -mgeneral-regs-only -Target Report RejectNegative Mask(GENERAL_REGS_ONLY) Save -Generate code which uses only the general registers. |