Remove target_cpu_default/cpu_names
authorH.J. Lu <hongjiu.lu@intel.com>
Wed, 25 Dec 2013 22:44:04 +0000 (22:44 +0000)
committerH.J. Lu <hjl@gcc.gnu.org>
Wed, 25 Dec 2013 22:44:04 +0000 (14:44 -0800)
commitb97de419c269933d065a5b30ea2c828966eb30c8
tree766b102d9ba673a155504f35213060130819ee18
parentce2b81bfce5da65fc02acd319b3f0552d9fa9868
Remove target_cpu_default/cpu_names

Add processor names to processor_target_table and use it instead of
target_cpu_default and cpu_names.

PR target/59587
* config/i386/i386.c (struct ptt): Add a field for processor
name.
(processor_target_table): Sync with processor_type.  Add
processor names.
(cpu_names): Removed.
(ix86_option_override_internal): Default x_ix86_tune_string
to processor_target_table[TARGET_CPU_DEFAULT].name.
(ix86_function_specific_print): Assert arch and tune <
PROCESSOR_max.  Use processor_target_table to print arch and
tune names.
* config/i386/i386.h (TARGET_CPU_DEFAULT): Default to
PROCESSOR_GENERIC.
(target_cpu_default): Removed.
(processor_type): Reordered.

From-SVN: r206202
gcc/ChangeLog
gcc/config/i386/i386.c
gcc/config/i386/i386.h