From b2b015430788921873b1937a1420f6245e87ccbc Mon Sep 17 00:00:00 2001 From: Bernd Schmidt Date: Tue, 2 Nov 2010 12:34:02 +0000 Subject: [PATCH] Tune alignment for Intel Core i7 * config/i386.h (TARGET_COREI7{_32,_64,}): New macros. (enum processor_type): Update comment. Add entries for Core i7. * config/i386-c.c (ix86_target_macros_internal): Update. * config/i386.c (m_COREI7{_32,_64}): New macros. (m_GENERIC32, m_GENERIC64): Use generic tuning for Core i7. (processor_target_table): Tune alignment for Core i7. (ix86_option_override_internal): Use PROCESSOR_COREI7_*. * doc/invoke.texi: Document "corei7" option value. Co-Authored-By: Maxim Kuvyrkov From-SVN: r166177 --- gcc/ChangeLog | 15 +++++++++++++++ gcc/config/i386/i386-c.c | 9 +++++++++ gcc/config/i386/i386.c | 17 ++++++++++++++--- gcc/config/i386/i386.h | 8 ++++++-- gcc/doc/invoke.texi | 3 +++ 5 files changed, 47 insertions(+), 5 deletions(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index b97cf78b4a7..83aa17691b3 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,18 @@ +2010-11-02 Bernd Schmidt + Maxim Kuvyrkov + + Tune alignment for Intel Core i7 + + * config/i386.h (TARGET_COREI7{_32,_64,}): New macros. + (enum processor_type): Update comment. Add entries for Core i7. + * config/i386-c.c (ix86_target_macros_internal): Update. + * config/i386.c (m_COREI7{_32,_64}): New macros. + (m_GENERIC32, m_GENERIC64): Use generic tuning for Core i7. + (processor_target_table): Tune alignment for Core i7. + (ix86_option_override_internal): Use PROCESSOR_COREI7_*. + + * doc/invoke.texi: Document "corei7" option value. + 2010-11-02 Bernd Schmidt Maxim Kuvyrkov H.J. Lu diff --git a/gcc/config/i386/i386-c.c b/gcc/config/i386/i386-c.c index 1846efbe617..3b4409e889a 100644 --- a/gcc/config/i386/i386-c.c +++ b/gcc/config/i386/i386-c.c @@ -122,6 +122,11 @@ ix86_target_macros_internal (int isa_flag, def_or_undef (parse_in, "__core2"); def_or_undef (parse_in, "__core2__"); break; + case PROCESSOR_COREI7_32: + case PROCESSOR_COREI7_64: + def_or_undef (parse_in, "__corei7"); + def_or_undef (parse_in, "__corei7__"); + break; case PROCESSOR_ATOM: def_or_undef (parse_in, "__atom"); def_or_undef (parse_in, "__atom__"); @@ -197,6 +202,10 @@ ix86_target_macros_internal (int isa_flag, case PROCESSOR_CORE2: def_or_undef (parse_in, "__tune_core2__"); break; + case PROCESSOR_COREI7_32: + case PROCESSOR_COREI7_64: + def_or_undef (parse_in, "__tune_corei7__"); + break; case PROCESSOR_ATOM: def_or_undef (parse_in, "__tune_atom__"); break; diff --git a/gcc/config/i386/i386.c b/gcc/config/i386/i386.c index 47c3bfe80d9..84317e08a09 100644 --- a/gcc/config/i386/i386.c +++ b/gcc/config/i386/i386.c @@ -1642,6 +1642,8 @@ const struct processor_costs *ix86_cost = &pentium_cost; #define m_PENT4 (1<