diff options
author | Martin Liska <mliska@suse.cz> | 2018-09-17 10:47:38 +0200 |
---|---|---|
committer | Martin Liska <marxin@gcc.gnu.org> | 2018-09-17 08:47:38 +0000 |
commit | 7dc58b50536223fefe18c38cde7c759ae528f934 (patch) | |
tree | 6f6cba92048d869a2b31cde2a3957bc36978450f /gcc/config/i386/i386.h | |
parent | ca32d61bab85b4df400d463ff891e4f833bad8ec (diff) | |
download | gcc-7dc58b50536223fefe18c38cde7c759ae528f934.tar.gz |
i386: move alignment defaults to processor_costs.
2018-09-17 Martin Liska <mliska@suse.cz>
* common/config/i386/i386-common.c (ix86_get_valid_option_values):
Use processor_names table.
* config/i386/i386.c (ix86_default_align): Use
processor_cost_table for alignment values.
(ix86_option_override_internal): Use processor_names.
(ix86_function_specific_print): Likewise.
* config/i386/i386.h (struct processor_costs):
Add alignment values.
(struct ptt): Remove and replace with const char *.
* config/i386/x86-tune-costs.h (struct processor_costs):
Declare default alignments for all costs.
From-SVN: r264359
Diffstat (limited to 'gcc/config/i386/i386.h')
-rw-r--r-- | gcc/config/i386/i386.h | 22 |
1 files changed, 9 insertions, 13 deletions
diff --git a/gcc/config/i386/i386.h b/gcc/config/i386/i386.h index 382323d385b..01eba5dd01f 100644 --- a/gcc/config/i386/i386.h +++ b/gcc/config/i386/i386.h @@ -311,6 +311,14 @@ struct processor_costs { cost model. */ const int cond_not_taken_branch_cost;/* Cost of not taken branch for vectorizer cost model. */ + + /* The "0:0:8" label alignment specified for some processors generates + secondary 8-byte alignment only for those label/jump/loop targets + which have primary alignment. */ + const char *const align_loop; /* Loop alignment. */ + const char *const align_jump; /* Jump alignment. */ + const char *const align_label; /* Label alignment. */ + const char *const align_func; /* Function alignment. */ }; extern const struct processor_costs *ix86_cost; @@ -2278,19 +2286,7 @@ enum processor_type }; #if !defined(IN_LIBGCC2) && !defined(IN_TARGET_LIBS) && !defined(IN_RTS) -/* Processor target table, indexed by processor number */ -struct ptt -{ - const char *const name; /* processor name */ - - /* Default alignments. */ - const char *const align_loop; - const char *const align_jump; - const char *const align_label; - const char *const align_func; -}; - -extern const struct ptt processor_target_table[PROCESSOR_max]; +extern const char *const processor_names[PROCESSOR_max]; #include "wide-int-bitmask.h" |