diff mbox

PATCH: PR target/48171: Missing "Save" on -mavx and -mfma

Message ID 20110317175135.GA19417@intel.com
State New
Headers show

Commit Message

H.J. Lu March 17, 2011, 5:51 p.m. UTC
Hi,

All i386 ISA options, except for -mavx and -mfma, have Save.  This patch
fixes it.  OK for trunk and 4.6?

Thanks.


H.J.
---
2011-03-17  H.J. Lu  <hongjiu.lu@intel.com>
 
 	PR target/48171
	* config/i386/i386.opt: Add Save to -mavx and -mfma.

Comments

Uros Bizjak March 17, 2011, 6:42 p.m. UTC | #1
On Thu, Mar 17, 2011 at 6:51 PM, H.J. Lu <hongjiu.lu@intel.com> wrote:

> All i386 ISA options, except for -mavx and -mfma, have Save.  This patch
> fixes it.  OK for trunk and 4.6?
>
> 2011-03-17  H.J. Lu  <hongjiu.lu@intel.com>
>
>        PR target/48171
>        * config/i386/i386.opt: Add Save to -mavx and -mfma.

OK for 4.7 and 4.6 with the approval from RM.

Thanks,
Uros.
Richard Biener March 18, 2011, 8:22 a.m. UTC | #2
On Thu, Mar 17, 2011 at 7:42 PM, Uros Bizjak <ubizjak@gmail.com> wrote:
> On Thu, Mar 17, 2011 at 6:51 PM, H.J. Lu <hongjiu.lu@intel.com> wrote:
>
>> All i386 ISA options, except for -mavx and -mfma, have Save.  This patch
>> fixes it.  OK for trunk and 4.6?
>>
>> 2011-03-17  H.J. Lu  <hongjiu.lu@intel.com>
>>
>>        PR target/48171
>>        * config/i386/i386.opt: Add Save to -mavx and -mfma.
>
> OK for 4.7 and 4.6 with the approval from RM.

Ok for 4.6 (and the 4.5 branch if it applies there).

Thanks,
Richard.

> Thanks,
> Uros.
>
diff mbox

Patch

diff --git a/gcc/config/i386/i386.opt b/gcc/config/i386/i386.opt
index 0563bc1..2b1ffc3 100644
--- a/gcc/config/i386/i386.opt
+++ b/gcc/config/i386/i386.opt
@@ -329,11 +329,11 @@  Target Undocumented Alias(mavx) Warn(%<-msse5%> was removed)
 ;; Deprecated
 
 mavx
-Target Report Mask(ISA_AVX) Var(ix86_isa_flags)
+Target Report Mask(ISA_AVX) Var(ix86_isa_flags) Save
 Support MMX, SSE, SSE2, SSE3, SSSE3, SSE4.1, SSE4.2 and AVX built-in functions and code generation
 
 mfma
-Target Report Mask(ISA_FMA) Var(ix86_isa_flags)
+Target Report Mask(ISA_FMA) Var(ix86_isa_flags) Save
 Support MMX, SSE, SSE2, SSE3, SSSE3, SSE4.1, SSE4.2, AVX and FMA built-in functions and code generation
 
 msse4a