From: Richard Guenther <richard.guenther@gmail.com>
To: "Joseph S. Myers" <joseph@codesourcery.com>
Cc: gcc-patches@gcc.gnu.org, rth@redhat.com, jh@suse.cz, ubizjak@gmail.com
Subject: Re: [22/25] Specs cleanup: -msse5
Date: Fri, 14 Jan 2011 10:40:00 -0000 [thread overview]
Message-ID: <AANLkTi=oA6JXcKXhBc7_AQUUvgTv4Yb8i6H9D1GfahNa@mail.gmail.com> (raw)
In-Reply-To: <Pine.LNX.4.64.1101140017460.6059@digraph.polyomino.org.uk>
On Fri, Jan 14, 2011 at 1:19 AM, Joseph S. Myers
<joseph@codesourcery.com> wrote:
> config/i386/i386.h makes -msse5 into an alias for -mavx, that gives a
> warning, via specs. But 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. OK to commit?
Ok.
Thanks,
Richard.
> 2011-01-13 Joseph Myers <joseph@codesourcery.com>
>
> * config/i386/i386.h (CC1_CPU_SPEC_1): Don't handle -msse5.
> * config/i386/i386.opt (msse5): New Alias.
>
> diff -rupN --exclude=.svn gcc-mainline-21/gcc/config/i386/i386.h gcc-mainline/gcc/config/i386/i386.h
> --- gcc-mainline-21/gcc/config/i386/i386.h 2011-01-07 13:21:15.000000000 -0800
> +++ gcc-mainline/gcc/config/i386/i386.h 2011-01-12 15:08:42.000000000 -0800
> @@ -553,9 +553,7 @@ extern const char *host_detect_local_cpu
> /* Specs for the compiler proper */
>
> #ifndef CC1_CPU_SPEC
> -#define CC1_CPU_SPEC_1 "\
> -%{msse5:-mavx \
> -%n'-msse5' was removed\n}"
> +#define CC1_CPU_SPEC_1 ""
>
> #ifndef HAVE_LOCAL_CPU_DETECT
> #define CC1_CPU_SPEC CC1_CPU_SPEC_1
> diff -rupN --exclude=.svn gcc-mainline-21/gcc/config/i386/i386.opt gcc-mainline/gcc/config/i386/i386.opt
> --- gcc-mainline-21/gcc/config/i386/i386.opt 2010-11-12 15:28:10.000000000 -0800
> +++ gcc-mainline/gcc/config/i386/i386.opt 2011-01-12 15:08:05.000000000 -0800
> @@ -320,6 +320,10 @@ mno-sse4
> Target RejectNegative Report InverseMask(ISA_SSE4_1) MaskExists Var(ix86_isa_flags) Save
> Do not support SSE4.1 and SSE4.2 built-in functions and code generation
>
> +msse5
> +Target Undocumented Alias(mavx) Warn(%<-msse5%> was removed)
> +;; Deprecated
> +
> mavx
> Target Report Mask(ISA_AVX) Var(ix86_isa_flags)
> Support MMX, SSE, SSE2, SSE3, SSSE3, SSE4.1, SSE4.2 and AVX built-in functions and code generation
>
> --
> Joseph S. Myers
> joseph@codesourcery.com
>
next prev parent reply other threads:[~2011-01-14 10:13 UTC|newest]
Thread overview: 74+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-01-14 0:03 [00/25] Specs cleanup: introduction Joseph S. Myers
2011-01-14 0:04 ` [01/25] Specs cleanup: -b (ARM) Joseph S. Myers
2011-01-14 10:09 ` Richard Earnshaw
2011-01-14 0:05 ` [02/25] Specs cleanup: assembler -v/-V (SPARC) Joseph S. Myers
2011-01-14 9:18 ` Eric Botcazou
2011-01-14 18:18 ` Joseph S. Myers
2011-01-14 0:06 ` [03/25] Specs cleanup: -version Joseph S. Myers
2011-01-14 10:13 ` Richard Earnshaw
2011-01-14 0:07 ` [04/25] Specs cleanup: -Yd, Joseph S. Myers
2011-01-14 9:47 ` Eric Botcazou
2011-01-26 18:18 ` Ping " Joseph S. Myers
2011-01-26 19:34 ` Richard Guenther
2011-01-14 0:07 ` [05/25] Specs cleanup: -ibcs Joseph S. Myers
2011-01-14 10:37 ` Richard Guenther
2011-01-14 0:08 ` [06/25] Specs cleanup: %{save-temps: } Joseph S. Myers
2011-01-14 7:58 ` Michael Eager
2011-01-14 12:02 ` Richard Guenther
2011-01-14 0:09 ` [07/25] Specs cleanup: -gline Joseph S. Myers
2011-01-14 8:37 ` Michael Eager
2011-01-14 0:10 ` [09/25] Specs cleanup: CRIS Joseph S. Myers
2011-01-14 3:28 ` Hans-Peter Nilsson
2011-01-14 18:27 ` Joseph S. Myers
2011-01-14 19:41 ` Hans-Peter Nilsson
2011-01-14 21:31 ` Joseph S. Myers
2011-01-14 23:28 ` Hans-Peter Nilsson
2011-01-15 0:30 ` Joseph S. Myers
2011-01-15 1:14 ` Hans-Peter Nilsson
2011-01-15 9:08 ` Joseph S. Myers
2011-01-25 9:23 ` RFC: change the default for cross-targets to --with-sysroot=yes Hans-Peter Nilsson
2011-01-14 0:10 ` [08/25] Specs cleanup: AVR Joseph S. Myers
2011-01-14 5:37 ` Weddington, Eric
2011-01-14 0:11 ` [10/25] Specs cleanup: NetWare Joseph S. Myers
2011-01-14 0:12 ` [12/25] Specs cleanup: microblaze Joseph S. Myers
2011-01-14 7:27 ` Michael Eager
2011-01-14 0:12 ` [11/25] Specs cleanup: config/m32r/little.h Joseph S. Myers
2011-01-14 12:07 ` Nick Clifton
2011-01-14 0:13 ` [13/25] Specs cleanup: MIPS -bestGnum -no_archive -exact_version Joseph S. Myers
2011-01-14 0:14 ` [14/25] Specs cleanup: MIPS -call_shared -non_shared Joseph S. Myers
2011-01-14 12:58 ` Richard Sandiford
2011-01-14 18:42 ` Joseph S. Myers
2011-01-15 14:24 ` Richard Sandiford
2011-01-14 0:15 ` [15/25] Specs cleanup: config/rs6000/sysv4.h SHARED_LIB_SUPPORT Joseph S. Myers
2011-01-17 16:38 ` David Edelsohn
2011-01-25 23:10 ` Joseph S. Myers
2011-01-14 0:16 ` [16/25] Specs cleanup: config/rs6000/sysv4.h LINK_PATH_SPEC Joseph S. Myers
2011-01-17 17:00 ` David Edelsohn
2011-01-14 0:17 ` [17/25] Specs cleanup: rs6000 -profile Joseph S. Myers
2011-01-14 8:57 ` Nathan Sidwell
2011-01-26 18:26 ` Ping " Joseph S. Myers
2011-01-27 19:13 ` Krister Walfridsson
2011-01-14 0:17 ` [18/25] Specs cleanup: rs6000/vxworks.h -fvec* Joseph S. Myers
2011-01-14 9:03 ` Nathan Sidwell
2011-01-14 0:19 ` [19/25] Specs cleanup: SPARC -mcpu aliases Joseph S. Myers
2011-01-14 9:20 ` Eric Botcazou
2011-01-15 21:29 ` Eric Botcazou
2011-01-14 0:20 ` [21/25] Specs cleanup: SPU Joseph S. Myers
2011-01-17 17:06 ` Ulrich Weigand
2011-01-25 23:12 ` Joseph S. Myers
2011-01-27 9:23 ` [commit, spu] Remove ASM_SPEC (Re: [21/25] Specs cleanup: SPU) Ulrich Weigand
2011-01-14 0:20 ` [20/25] Specs cleanup: SPARC -sun4 -target Joseph S. Myers
2011-01-14 9:21 ` Eric Botcazou
2011-01-14 0:21 ` [22/25] Specs cleanup: -msse5 Joseph S. Myers
2011-01-14 10:40 ` Richard Guenther [this message]
2011-01-14 0:23 ` [23/25] Specs cleanup: -YP, Joseph S. Myers
2011-01-26 18:29 ` Ping " Joseph S. Myers
2011-01-26 19:37 ` Richard Guenther
2011-01-14 0:50 ` [24/25] Specs cleanup: -Ym, Joseph S. Myers
2011-01-14 9:44 ` Eric Botcazou
2011-01-26 18:40 ` Ping " Joseph S. Myers
2011-01-26 19:40 ` Richard Guenther
2011-01-14 0:56 ` [25/25] Specs cleanup: -Qn/-Qy Joseph S. Myers
2011-01-14 9:45 ` Eric Botcazou
2011-01-26 18:55 ` Ping " Joseph S. Myers
2011-01-26 19:44 ` Richard Guenther
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='AANLkTi=oA6JXcKXhBc7_AQUUvgTv4Yb8i6H9D1GfahNa@mail.gmail.com' \
--to=richard.guenther@gmail.com \
--cc=gcc-patches@gcc.gnu.org \
--cc=jh@suse.cz \
--cc=joseph@codesourcery.com \
--cc=rth@redhat.com \
--cc=ubizjak@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).