Hi, this patch adds optimization attribute to fstack-reuse that is obviously per-function. Bootstrapped/regtested x86_64-linux, commited as obvious.
Honza Index: common.opt =================================================================== --- common.opt (revision 220586) +++ common.opt (working copy) @@ -1372,7 +1372,7 @@ Common Report Var(flag_if_conversion2) O Perform conversion of conditional jumps to conditional execution fstack-reuse= -Common Joined RejectNegative Enum(stack_reuse_level) Var(flag_stack_reuse) Init(SR_ALL) +Common Joined RejectNegative Enum(stack_reuse_level) Var(flag_stack_reuse) Init(SR_ALL) Optimization -fstack-reuse=[all|named_vars|none] Set stack reuse level for local variables. Enum