Hi! On Fri, Jul 23, 2021 at 07:47:54AM +0200, Martin Liška wrote: > On 7/12/21 7:20 PM, Segher Boessenkool wrote: > >>>>+static __attribute__ ((optimize ("-fno-stack-protector"))) __typeof > >>>>(f) * > >>> > >>>-fno-stack-protector is default. > >> > >>Yes, but one needs an optimize attribute in order to trigger > >>cl_target_option_save/restore > >>mechanism. > > > >So it behaves differently if you select the default than if you do not > >select anything? That is wrong, no? > > Sorry, I don't get your example, please explain it.
If -mbork is the default, the coompiler whould behave the same if you invoke it with -mbork as when you do not. And the optimize attribute should work exactly the same as command line options. Or perhaps you are saying you have this in the testcase only to exercise the option save/restore code paths? Please document that then, in the testcase. Segher