i386: move alignment defaults to processor_costs.
authorMartin Liska <mliska@suse.cz>
Mon, 17 Sep 2018 08:47:38 +0000 (10:47 +0200)
committerMartin Liska <marxin@gcc.gnu.org>
Mon, 17 Sep 2018 08:47:38 +0000 (08:47 +0000)
commit7dc58b50536223fefe18c38cde7c759ae528f934
tree6f6cba92048d869a2b31cde2a3957bc36978450f
parentca32d61bab85b4df400d463ff891e4f833bad8ec
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
gcc/ChangeLog
gcc/common/config/i386/i386-common.c
gcc/config/i386/i386.c
gcc/config/i386/i386.h
gcc/config/i386/x86-tune-costs.h