On Thu, Aug 05, 2021 at 06:49:21PM +0200, Martin Liška wrote: > On 8/5/21 5:39 PM, Segher Boessenkool wrote: > >>>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. > >> > >>Ah, got your point. All right, let's use then 'optimize(1)'. > >> > >>Is it fine with the adjustment? > > > >You are saying the compiler's behaviour is broken, but are changing the > >testcase to avoid exhibiting that behaviour? > > No, both selections of the 'optimize' attribute trigger the ICE. The reason > is that any optimize attribute triggers eventually > cl_target_option_save/restore > mechanism which is what the patch addresses.
Aha. So say that in the test case! That the test case is to check if the bug fixed in XXXXXXXXXXXX has been reintroduced (or describe the bug more precisely if needed). Okay for trunk with that fixed. Thanks! Segher