From: H.J. Lu Date: Fri, 25 Sep 2015 00:18:21 +0000 (+0000) Subject: Change IA MCU processor from iamcu to lakemount X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=89e5941d8c79863857a60a41ce58d6a984df1bdf;p=gcc.git Change IA MCU processor from iamcu to lakemount The first IA MCU processor will be Lakemount. This patch changes IA MCU processor name from iamcu to lakemount. gcc/ * config.gcc (x86_archs): Replace iamcu with lakemount. (with_cpu): Likewise. (with_arch): Likewise. * doc/invoke.texi: Likewise. * config/i386/i386-c.c (ix86_target_macros_internal): Replace PROCESSOR_IAMCU with PROCESSOR_LAKEMOUNT. Replace __tune_iamcu__ with __tune_lakemount__. * config/i386/i386.c (iamcu_cost): Renamed to ... (lakemount_cost): This. (m_IAMCU): Renamed to ... (m_LAKEMOUNT): This. (initial_ix86_arch_features): Replace m_IAMCU with m_LAKEMOUNT. (processor_target_table): Replace "iamcu" with "lakemount". (processor_alias_table): Likewise. (ix86_issue_rate): Replace PROCESSOR_IAMCU with PROCESSOR_LAKEMOUNT. (ix86_adjust_cost): Likewise. (ia32_multipass_dfa_lookahead): Likewise. * config/i386/i386.h (processor_type): Likewise. * config/i386/x86-tune.def: Replace m_IAMCU with m_LAKEMOUNT. gcc/testsuite/ * gcc.target/i386/pr66749.c (dg-options): Replace -mtune=iamcu with -mtune=lakemount. * gcc.target/i386/pr66821.c (dg-options): Likewise. * gcc.target/i386/pr67329.c (dg-options): Likewise. From-SVN: r228109 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index d6ea9677419..9a6ea3b49ae 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,26 @@ +2015-09-24 H.J. Lu + + * config.gcc (x86_archs): Replace iamcu with lakemount. + (with_cpu): Likewise. + (with_arch): Likewise. + * doc/invoke.texi: Likewise. + * config/i386/i386-c.c (ix86_target_macros_internal): Replace + PROCESSOR_IAMCU with PROCESSOR_LAKEMOUNT. Replace + __tune_iamcu__ with __tune_lakemount__. + * config/i386/i386.c (iamcu_cost): Renamed to ... + (lakemount_cost): This. + (m_IAMCU): Renamed to ... + (m_LAKEMOUNT): This. + (initial_ix86_arch_features): Replace m_IAMCU with m_LAKEMOUNT. + (processor_target_table): Replace "iamcu" with "lakemount". + (processor_alias_table): Likewise. + (ix86_issue_rate): Replace PROCESSOR_IAMCU with + PROCESSOR_LAKEMOUNT. + (ix86_adjust_cost): Likewise. + (ia32_multipass_dfa_lookahead): Likewise. + * config/i386/i386.h (processor_type): Likewise. + * config/i386/x86-tune.def: Replace m_IAMCU with m_LAKEMOUNT. + 2015-09-24 John David Anglin * config/pa/pa-linux.h (HAVE_sync_compare_and_swapdi): Define. diff --git a/gcc/config.gcc b/gcc/config.gcc index f060e2f0478..41814b8f934 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 iamcu" +pentium4 pentium4m pentiumpro prescott lakemount" # 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=iamcu + with_cpu=lakemount ;; 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=iamcu + with_arch=lakemount ;; 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 5e583aeb376..86f24267be4 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_IAMCU: + case PROCESSOR_LAKEMOUNT: /* 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_IAMCU: - def_or_undef (parse_in, "__tune_iamcu__"); + case PROCESSOR_LAKEMOUNT: + def_or_undef (parse_in, "__tune_lakemount__"); break; case PROCESSOR_INTEL: case PROCESSOR_GENERIC: diff --git a/gcc/config/i386/i386.c b/gcc/config/i386/i386.c index 8a26f68aca5..193cabff9a3 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 iamcu_cost = { +struct processor_costs lakemount_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=iamcu + with -mtune=lakemount. + * gcc.target/i386/pr66821.c (dg-options): Likewise. + * gcc.target/i386/pr67329.c (dg-options): Likewise. + 2015-09-24 Manuel López-Ibáñez PR driver/67640 diff --git a/gcc/testsuite/gcc.target/i386/pr66749.c b/gcc/testsuite/gcc.target/i386/pr66749.c index affda08de87..27c02ad5053 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=iamcu" } */ +/* { dg-options "-O2 -miamcu -mtune=lakemount" } */ char a[10], b[10]; diff --git a/gcc/testsuite/gcc.target/i386/pr66821.c b/gcc/testsuite/gcc.target/i386/pr66821.c index d32f03d5a96..9d08b1a2af0 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=iamcu" } */ +/* { dg-options "-O2 -fdump-tree-optimized -mtune=lakemount" } */ void bar (void); diff --git a/gcc/testsuite/gcc.target/i386/pr67329.c b/gcc/testsuite/gcc.target/i386/pr67329.c index a29dd5b4f8d..fec94eb86d3 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=iamcu" } */ +/* { dg-options "-O3 -fno-tree-fre -fno-tree-pre -fdump-tree-optimized -mtune=lakemount" } */ int foo ()