Blame SOURCES/gcc10-pr96939-2.patch

52d91f
2020-09-09  Jakub Jelinek  <jakub@redhat.com>
52d91f
52d91f
	* config/arm/arm.c (arm_override_options_after_change_1): Add opts_set
52d91f
	argument, test opts_set->x_str_align_functions rather than
52d91f
	opts->x_str_align_functions.
52d91f
	(arm_override_options_after_change, arm_option_override_internal,
52d91f
	arm_set_current_function): Adjust callers.
52d91f
52d91f
--- gcc/config/arm/arm.c.jj	2020-09-09 09:19:42.911419411 +0200
52d91f
+++ gcc/config/arm/arm.c	2020-09-09 09:28:02.392897384 +0200
52d91f
@@ -3024,10 +3024,11 @@ static GTY(()) bool thumb_flipper;
52d91f
 static GTY(()) tree init_optimize;
52d91f
 
52d91f
 static void
52d91f
-arm_override_options_after_change_1 (struct gcc_options *opts)
52d91f
+arm_override_options_after_change_1 (struct gcc_options *opts,
52d91f
+				     struct gcc_options *opts_set)
52d91f
 {
52d91f
   /* -falign-functions without argument: supply one.  */
52d91f
-  if (opts->x_flag_align_functions && !opts->x_str_align_functions)
52d91f
+  if (opts->x_flag_align_functions && !opts_set->x_str_align_functions)
52d91f
     opts->x_str_align_functions = TARGET_THUMB_P (opts->x_target_flags)
52d91f
       && opts->x_optimize_size ? "2" : "4";
52d91f
 }
52d91f
@@ -3037,7 +3038,7 @@ arm_override_options_after_change_1 (str
52d91f
 static void
52d91f
 arm_override_options_after_change (void)
52d91f
 {
52d91f
-  arm_override_options_after_change_1 (&global_options);
52d91f
+  arm_override_options_after_change_1 (&global_options, &global_options_set);
52d91f
 }
52d91f
 
52d91f
 /* Implement TARGET_OPTION_SAVE.  */
52d91f
@@ -3065,7 +3066,7 @@ static void
52d91f
 arm_option_override_internal (struct gcc_options *opts,
52d91f
 			      struct gcc_options *opts_set)
52d91f
 {
52d91f
-  arm_override_options_after_change_1 (opts);
52d91f
+  arm_override_options_after_change_1 (opts, opts_set);
52d91f
 
52d91f
   if (TARGET_INTERWORK && !bitmap_bit_p (arm_active_target.isa, isa_bit_thumb))
52d91f
     {
52d91f
@@ -32335,7 +32336,7 @@ arm_set_current_function (tree fndecl)
52d91f
 
52d91f
   save_restore_target_globals (new_tree);
52d91f
 
52d91f
-  arm_override_options_after_change_1 (&global_options);
52d91f
+  arm_override_options_after_change_1 (&global_options, &global_options_set);
52d91f
 }
52d91f
 
52d91f
 /* Implement TARGET_OPTION_PRINT.  */