Re: PATCH: PR target/49128: -mtune=native generates unsupported instructions

2011-05-24 Thread Tobias Burnus
This patch caused a boot-strap failure as it should be -mno-sse4.2 and not -mno-msse4.2, cf. http://gcc.gnu.org/ml/gcc/2011-05/msg00271.html H.J. Lu wrote: Here is the updated patch. It also handles FMA. OK for trunk and 4.6 if there are no regressions? [...] 2011-05-23 H.J. Lu

Re: PATCH: PR target/49128: -mtune=native generates unsupported instructions

2011-05-24 Thread Uros Bizjak
On Mon, May 23, 2011 at 8:25 PM, H.J. Lu wrote: >>> +      const char *sse4_2 = has_sse4_2 ? " -msse4.2" : " -msse4.2"; >>> +      const char *sse4_1 = has_sse4_1 ? " -msse4.1" : " -msse4.1"; >> >> Missing "no-" here on both lines. >> > > Here is the updated patch.  It also handles FMA.  OK for t

Re: PATCH: PR target/49128: -mtune=native generates unsupported instructions

2011-05-23 Thread H.J. Lu
On Mon, May 23, 2011 at 11:16 AM, Jakub Jelinek wrote: > On Mon, May 23, 2011 at 11:10:26AM -0700, H.J. Lu wrote: >> +      const char *sse4_2 = has_sse4_2 ? " -msse4.2" : " -msse4.2"; >> +      const char *sse4_1 = has_sse4_1 ? " -msse4.1" : " -msse4.1"; > > Missing "no-" here on both lines. > H

Re: PATCH: PR target/49128: -mtune=native generates unsupported instructions

2011-05-23 Thread Jakub Jelinek
On Mon, May 23, 2011 at 11:10:26AM -0700, H.J. Lu wrote: > + const char *sse4_2 = has_sse4_2 ? " -msse4.2" : " -msse4.2"; > + const char *sse4_1 = has_sse4_1 ? " -msse4.1" : " -msse4.1"; Missing "no-" here on both lines. Jakub

PATCH: PR target/49128: -mtune=native generates unsupported instructions

2011-05-23 Thread H.J. Lu
Hi, We use processor model and family to detect processor. But some processors may have some ISAs disabled. This patch always adds -mno-XXX. OK for trunk and 4.6 if there are no regressions? Thanks. H.J. --- 2011-05-23 H.J. Lu PR target/49128 * config/i386/driver-i386.c (h