Commit d4aa4f4b by Ian Lance Taylor Committed by Ian Lance Taylor

i386.c (ix86_function_specific_save): Test that fields match values...

	* config/i386/i386.c (ix86_function_specific_save): Test that
	fields match values, rather than testing the values are in a
	certain range.

From-SVN: r148721
parent 9b88236b
2009-06-19 Ian Lance Taylor <iant@google.com>
* config/i386/i386.c (ix86_function_specific_save): Test that
fields match values, rather than testing the values are in a
certain range.
2009-06-19 Richard Guenther <rguenther@suse.de> 2009-06-19 Richard Guenther <rguenther@suse.de>
* tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Handle * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Handle
......
...@@ -3424,12 +3424,6 @@ override_options (bool main_args_p) ...@@ -3424,12 +3424,6 @@ override_options (bool main_args_p)
static void static void
ix86_function_specific_save (struct cl_target_option *ptr) ix86_function_specific_save (struct cl_target_option *ptr)
{ {
gcc_assert (IN_RANGE (ix86_arch, 0, 255));
gcc_assert (IN_RANGE (ix86_schedule, 0, 255));
gcc_assert (IN_RANGE (ix86_tune, 0, 255));
gcc_assert (IN_RANGE (ix86_fpmath, 0, 255));
gcc_assert (IN_RANGE (ix86_branch_cost, 0, 255));
ptr->arch = ix86_arch; ptr->arch = ix86_arch;
ptr->schedule = ix86_schedule; ptr->schedule = ix86_schedule;
ptr->tune = ix86_tune; ptr->tune = ix86_tune;
...@@ -3439,6 +3433,14 @@ ix86_function_specific_save (struct cl_target_option *ptr) ...@@ -3439,6 +3433,14 @@ ix86_function_specific_save (struct cl_target_option *ptr)
ptr->arch_specified = ix86_arch_specified; ptr->arch_specified = ix86_arch_specified;
ptr->ix86_isa_flags_explicit = ix86_isa_flags_explicit; ptr->ix86_isa_flags_explicit = ix86_isa_flags_explicit;
ptr->target_flags_explicit = target_flags_explicit; ptr->target_flags_explicit = target_flags_explicit;
/* The fields are char but the variables are not; make sure the
values fit in the fields. */
gcc_assert (ptr->arch == ix86_arch);
gcc_assert (ptr->schedule == ix86_schedule);
gcc_assert (ptr->tune == ix86_tune);
gcc_assert (ptr->fpmath == ix86_fpmath);
gcc_assert (ptr->branch_cost == ix86_branch_cost);
} }
/* Restore the current options */ /* Restore the current options */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment