diff options
author | Eric Christopher <echristo@apple.com> | 2006-07-20 07:40:12 +0000 |
---|---|---|
committer | Eric Christopher <echristo@gcc.gnu.org> | 2006-07-20 07:40:12 +0000 |
commit | 1cba2b96fdcae86d3f313d0c2ab8a0ba74c29440 (patch) | |
tree | 59264639437c1f666fd9a81424b8b7d819e91131 /gcc/config | |
parent | 96f342c1daf9bb2502e35da04722c1a30fe3bd73 (diff) | |
download | gcc-1cba2b96fdcae86d3f313d0c2ab8a0ba74c29440.tar.gz |
re PR target/26877 (configure switches --with-arch and --with-tune are broken on x86)
2006-07-20 Eric Christopher <echristo@apple.com>
PR target/26877
* config/i386/i386.h (OPTION_DEFAULT_SPECS): Reorder.
From-SVN: r115609
Diffstat (limited to 'gcc/config')
-rw-r--r-- | gcc/config/i386/i386.h | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/gcc/config/i386/i386.h b/gcc/config/i386/i386.h index df1ba2472b6..10b446b5118 100644 --- a/gcc/config/i386/i386.h +++ b/gcc/config/i386/i386.h @@ -281,11 +281,13 @@ extern const char *host_detect_local_cpu (int argc, const char **argv); { "local_cpu_detect", host_detect_local_cpu }, #endif -/* Support for configure-time defaults of some command line options. */ +/* Support for configure-time defaults of some command line options. + The order here is important so that -march doesn't squash the + tune or cpu values. */ #define OPTION_DEFAULT_SPECS \ - {"arch", "%{!march=*:-march=%(VALUE)}"}, \ {"tune", "%{!mtune=*:%{!mcpu=*:%{!march=*:-mtune=%(VALUE)}}}" }, \ - {"cpu", "%{!mtune=*:%{!mcpu=*:%{!march=*:-mtune=%(VALUE)}}}" } + {"cpu", "%{!mtune=*:%{!mcpu=*:%{!march=*:-mtune=%(VALUE)}}}" }, \ + {"arch", "%{!march=*:-march=%(VALUE)}"} /* Specs for the compiler proper */ @@ -2144,7 +2146,7 @@ enum ix86_entity MAX_386_ENTITIES }; -enum ix86_stack_slot +enum ix86_stack_slot { SLOT_TEMP = 0, SLOT_CW_STORED, |