https://gcc.gnu.org/bugzilla/show_bug.cgi?id=128960
--- Comment #3 from Uroš Bizjak <ubizjak at gmail dot com> ---
-mstackrealing has the same problem.
--cut here--
diff --git a/gcc/config/i386/i386-options.cc b/gcc/config/i386/i386-options.cc
index 1be18a50cc1..62d35235c11 100644
--- a/gcc/config/i386/i386-options.cc
+++ b/gcc/config/i386/i386-options.cc
@@ -1578,6 +1578,10 @@ ix86_valid_target_attribute_p (tree fndecl,
func_options_set.x_ix86_stack_protector_guard
= global_options_set.x_ix86_stack_protector_guard;
+ /* Likewise for -m[no-]stackrealign. */
+ func_options_set.x_ix86_force_align_arg_pointer
+ = global_options_set.x_ix86_force_align_arg_pointer;
+
/* FLAGS == 1 is used for target_clones attribute. */
new_target
= ix86_valid_target_attribute_tree (fndecl, args, &func_options,
--cut here--