From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 19728 invoked by alias); 14 Jan 2011 10:13:18 -0000 Received: (qmail 19720 invoked by uid 22791); 14 Jan 2011 10:13:17 -0000 X-SWARE-Spam-Status: No, hits=-2.2 required=5.0 tests=AWL,BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,TW_AV X-Spam-Check-By: sourceware.org Received: from mail-iy0-f175.google.com (HELO mail-iy0-f175.google.com) (209.85.210.175) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Fri, 14 Jan 2011 10:13:13 +0000 Received: by iyj18 with SMTP id 18so2525125iyj.20 for ; Fri, 14 Jan 2011 02:13:11 -0800 (PST) MIME-Version: 1.0 Received: by 10.231.16.200 with SMTP id p8mr491174iba.181.1294999991680; Fri, 14 Jan 2011 02:13:11 -0800 (PST) Received: by 10.231.35.134 with HTTP; Fri, 14 Jan 2011 02:13:11 -0800 (PST) In-Reply-To: References: Date: Fri, 14 Jan 2011 10:40:00 -0000 Message-ID: Subject: Re: [22/25] Specs cleanup: -msse5 From: Richard Guenther To: "Joseph S. Myers" Cc: gcc-patches@gcc.gnu.org, rth@redhat.com, jh@suse.cz, ubizjak@gmail.com Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-IsSubscribed: yes Mailing-List: contact gcc-patches-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-patches-owner@gcc.gnu.org X-SW-Source: 2011-01/txt/msg00950.txt.bz2 On Fri, Jan 14, 2011 at 1:19 AM, Joseph S. Myers wrote: > config/i386/i386.h makes -msse5 into an alias for -mavx, that gives a > warning, via specs. =A0But this doesn't actually work, since the > original option is still passed to cc1 and gives an error for not > being in a .opt file. > > Presuming the intent was not to give an error, this patch changes > -msse5 into an alias in the .opt file. =A0OK to commit? Ok. Thanks, Richard. > 2011-01-13 =A0Joseph Myers =A0 > > =A0 =A0 =A0 =A0* config/i386/i386.h (CC1_CPU_SPEC_1): Don't handle -msse5. > =A0 =A0 =A0 =A0* config/i386/i386.opt (msse5): New Alias. > > diff -rupN --exclude=3D.svn gcc-mainline-21/gcc/config/i386/i386.h gcc-ma= inline/gcc/config/i386/i386.h > --- gcc-mainline-21/gcc/config/i386/i386.h =A0 =A0 =A02011-01-07 13:21:15= .000000000 -0800 > +++ gcc-mainline/gcc/config/i386/i386.h 2011-01-12 15:08:42.000000000 -08= 00 > @@ -553,9 +553,7 @@ extern const char *host_detect_local_cpu > =A0/* Specs for the compiler proper */ > > =A0#ifndef CC1_CPU_SPEC > -#define CC1_CPU_SPEC_1 "\ > -%{msse5:-mavx \ > -%n'-msse5' was removed\n}" > +#define CC1_CPU_SPEC_1 "" > > =A0#ifndef HAVE_LOCAL_CPU_DETECT > =A0#define CC1_CPU_SPEC CC1_CPU_SPEC_1 > diff -rupN --exclude=3D.svn gcc-mainline-21/gcc/config/i386/i386.opt gcc-= mainline/gcc/config/i386/i386.opt > --- gcc-mainline-21/gcc/config/i386/i386.opt =A0 =A02010-11-12 15:28:10.0= 00000000 -0800 > +++ gcc-mainline/gcc/config/i386/i386.opt =A0 =A0 =A0 2011-01-12 15:08:05= .000000000 -0800 > @@ -320,6 +320,10 @@ mno-sse4 > =A0Target RejectNegative Report InverseMask(ISA_SSE4_1) MaskExists Var(ix= 86_isa_flags) Save > =A0Do not support SSE4.1 and SSE4.2 built-in functions and code generation > > +msse5 > +Target Undocumented Alias(mavx) Warn(%<-msse5%> was removed) > +;; Deprecated > + > =A0mavx > =A0Target Report Mask(ISA_AVX) Var(ix86_isa_flags) > =A0Support MMX, SSE, SSE2, SSE3, SSSE3, SSE4.1, SSE4.2 and AVX built-in f= unctions and code generation > > -- > Joseph S. Myers > joseph@codesourcery.com >