From 2d6b2e283126b5daa50ec9cc67a55378c165a73f Mon Sep 17 00:00:00 2001 From: "H.J. Lu" Date: Fri, 25 Sep 2015 11:24:07 +0000 Subject: [PATCH] Rename IA MCU processor lakemount to lakemont IA MCU processor name is lakemont, not lakemount. gcc/ * config.gcc (x86_archs): Replace lakemount with lakemont. (with_cpu): Likewise. (with_arch): Likewise. * config/i386/i386-c.c (ix86_target_macros_internal): Replace PROCESSOR_LAKEMOUNT with PROCESSOR_LAKEMONT. Replace __tune_lakemount__ with __tune_lakemont__. * config/i386/i386.c (lakemount_cost): Renamed to ... (lakemont_cost): This. (m_LAKEMOUNT): Renamed to ... (m_LAKEMONT): This. (initial_ix86_arch_features): Replace m_LAKEMOUNT with m_LAKEMONT. (processor_target_table): Replace "lakemount" with "lakemont". (processor_alias_table): Likewise. (ix86_issue_rate): Replace PROCESSOR_LAKEMOUNT with PROCESSOR_LAKEMONT. (ix86_adjust_cost): Likewise. (ia32_multipass_dfa_lookahead): Likewise. * config/i386/i386.h (processor_type): Likewise. * config/i386/x86-tune.def: Replace m_LAKEMOUNT with m_LAKEMONT. * doc/invoke.texi: Replace lakemount with lakemont. Replace Lakemount with Lakemont. gcc/testsuite/ * gcc.target/i386/pr66749.c (dg-options): Replace -mtune=lakemount with -mtune=lakemont. * gcc.target/i386/pr66821.c (dg-options): Likewise. * gcc.target/i386/pr67329.c (dg-options): Likewise. From-SVN: r228115 --- gcc/ChangeLog | 24 +++++++++++++++++++++++ gcc/config.gcc | 6 +++--- gcc/config/i386/i386-c.c | 6 +++--- gcc/config/i386/i386.c | 16 +++++++-------- gcc/config/i386/i386.h | 2 +- gcc/config/i386/x86-tune.def | 26 ++++++++++++------------- gcc/doc/invoke.texi | 4 ++-- gcc/testsuite/ChangeLog | 7 +++++++ gcc/testsuite/gcc.target/i386/pr66749.c | 2 +- gcc/testsuite/gcc.target/i386/pr66821.c | 2 +- gcc/testsuite/gcc.target/i386/pr67329.c | 2 +- 11 files changed, 64 insertions(+), 33 deletions(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 9a6ea3b49ae..fbc353d381d 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,27 @@ +2015-09-25 H.J. Lu + + * config.gcc (x86_archs): Replace lakemount with lakemont. + (with_cpu): Likewise. + (with_arch): Likewise. + * config/i386/i386-c.c (ix86_target_macros_internal): Replace + PROCESSOR_LAKEMOUNT with PROCESSOR_LAKEMONT. Replace + __tune_lakemount__ with __tune_lakemont__. + * config/i386/i386.c (lakemount_cost): Renamed to ... + (lakemont_cost): This. + (m_LAKEMOUNT): Renamed to ... + (m_LAKEMONT): This. + (initial_ix86_arch_features): Replace m_LAKEMOUNT with m_LAKEMONT. + (processor_target_table): Replace "lakemount" with "lakemont". + (processor_alias_table): Likewise. + (ix86_issue_rate): Replace PROCESSOR_LAKEMOUNT with + PROCESSOR_LAKEMONT. + (ix86_adjust_cost): Likewise. + (ia32_multipass_dfa_lookahead): Likewise. + * config/i386/i386.h (processor_type): Likewise. + * config/i386/x86-tune.def: Replace m_LAKEMOUNT with m_LAKEMONT. + * doc/invoke.texi: Replace lakemount with lakemont. Replace + Lakemount with Lakemont. + 2015-09-24 H.J. Lu * config.gcc (x86_archs): Replace iamcu with lakemount. diff --git a/gcc/config.gcc b/gcc/config.gcc index 41814b8f934..c4c11f979e0 100644 --- a/gcc/config.gcc +++ b/gcc/config.gcc @@ -587,7 +587,7 @@ tm_defines="$tm_defines LIBC_GLIBC=1 LIBC_UCLIBC=2 LIBC_BIONIC=3 LIBC_MUSL=4" x86_archs="athlon athlon-4 athlon-fx athlon-mp athlon-tbird \ athlon-xp k6 k6-2 k6-3 geode c3 c3-2 winchip-c6 winchip2 i386 i486 \ i586 i686 pentium pentium-m pentium-mmx pentium2 pentium3 pentium3m \ -pentium4 pentium4m pentiumpro prescott lakemount" +pentium4 pentium4m pentiumpro prescott lakemont" # 64-bit x86 processors supported by --with-arch=. Each processor # MUST be separated by exactly one space. @@ -3287,7 +3287,7 @@ esac if test x$with_cpu = x ; then case ${target} in i[34567]86-*-elfiamcu) - with_cpu=lakemount + with_cpu=lakemont ;; i[34567]86-*-*|x86_64-*-*) with_cpu=$cpu @@ -3385,7 +3385,7 @@ if test x$with_arch = x ; then # and TARGET_SUBTARGET64_ISA_DEFAULT in config/i386/darwin.h. ;; i[34567]86-*-elfiamcu) - with_arch=lakemount + with_arch=lakemont ;; i[34567]86-*-*) # --with-fpmath sets the default ISA to SSE2, which is the same diff --git a/gcc/config/i386/i386-c.c b/gcc/config/i386/i386-c.c index 86f24267be4..58db7eba0ea 100644 --- a/gcc/config/i386/i386-c.c +++ b/gcc/config/i386/i386-c.c @@ -63,7 +63,7 @@ ix86_target_macros_internal (HOST_WIDE_INT isa_flag, def_or_undef (parse_in, "__i486"); def_or_undef (parse_in, "__i486__"); break; - case PROCESSOR_LAKEMOUNT: + case PROCESSOR_LAKEMONT: /* Intel MCU is based on Intel Pentium CPU. */ case PROCESSOR_PENTIUM: def_or_undef (parse_in, "__i586"); @@ -293,8 +293,8 @@ ix86_target_macros_internal (HOST_WIDE_INT isa_flag, case PROCESSOR_SKYLAKE_AVX512: def_or_undef (parse_in, "__tune_skylake_avx512__"); break; - case PROCESSOR_LAKEMOUNT: - def_or_undef (parse_in, "__tune_lakemount__"); + case PROCESSOR_LAKEMONT: + def_or_undef (parse_in, "__tune_lakemont__"); break; case PROCESSOR_INTEL: case PROCESSOR_GENERIC: diff --git a/gcc/config/i386/i386.c b/gcc/config/i386/i386.c index 193cabff9a3..d370521430b 100644 --- a/gcc/config/i386/i386.c +++ b/gcc/config/i386/i386.c @@ -417,7 +417,7 @@ struct processor_costs pentium_cost = { }; static const -struct processor_costs lakemount_cost = { +struct processor_costs lakemont_cost = { COSTS_N_INSNS (1), /* cost of an add instruction */ COSTS_N_INSNS (1) + 1, /* cost of a lea instruction */ COSTS_N_INSNS (1), /* variable shift costs */ @@ -2085,7 +2085,7 @@ const struct processor_costs *ix86_cost = &pentium_cost; #define m_386 (1< + + * gcc.target/i386/pr66749.c (dg-options): Replace + -mtune=lakemount with -mtune=lakemont. + * gcc.target/i386/pr66821.c (dg-options): Likewise. + * gcc.target/i386/pr67329.c (dg-options): Likewise. + 2015-09-25 Marek Polacek * c-c++-common/ubsan/bounds-11.c: New test. diff --git a/gcc/testsuite/gcc.target/i386/pr66749.c b/gcc/testsuite/gcc.target/i386/pr66749.c index 27c02ad5053..adc3fbba4ec 100644 --- a/gcc/testsuite/gcc.target/i386/pr66749.c +++ b/gcc/testsuite/gcc.target/i386/pr66749.c @@ -1,7 +1,7 @@ /* { dg-do compile } */ /* { dg-require-effective-target ia32 } */ /* { dg-require-effective-target nonpic } */ -/* { dg-options "-O2 -miamcu -mtune=lakemount" } */ +/* { dg-options "-O2 -miamcu -mtune=lakemont" } */ char a[10], b[10]; diff --git a/gcc/testsuite/gcc.target/i386/pr66821.c b/gcc/testsuite/gcc.target/i386/pr66821.c index 9d08b1a2af0..a04e86292f4 100644 --- a/gcc/testsuite/gcc.target/i386/pr66821.c +++ b/gcc/testsuite/gcc.target/i386/pr66821.c @@ -1,5 +1,5 @@ /* { dg-do compile { target ia32 } } */ -/* { dg-options "-O2 -fdump-tree-optimized -mtune=lakemount" } */ +/* { dg-options "-O2 -fdump-tree-optimized -mtune=lakemont" } */ void bar (void); diff --git a/gcc/testsuite/gcc.target/i386/pr67329.c b/gcc/testsuite/gcc.target/i386/pr67329.c index fec94eb86d3..b4b61900ec1 100644 --- a/gcc/testsuite/gcc.target/i386/pr67329.c +++ b/gcc/testsuite/gcc.target/i386/pr67329.c @@ -1,5 +1,5 @@ /* { dg-do compile { target ia32 } } */ -/* { dg-options "-O3 -fno-tree-fre -fno-tree-pre -fdump-tree-optimized -mtune=lakemount" } */ +/* { dg-options "-O3 -fno-tree-fre -fno-tree-pre -fdump-tree-optimized -mtune=lakemont" } */ int foo () -- 2.30.2