https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101324
Martin Liška <marxin at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |ASSIGNED --- Comment #9 from Martin Liška <marxin at gcc dot gnu.org> --- > So what is the status with this? IIUC, looking at the thread, it seems like > you and richi agreed that the optimize flags should be treated as if they > were appended to the command line, but that doesn't seem how trunk works > right now. So does GCC still need fixing or is the test case using the > attribute optimize incorrectly or ??? The issue is still present and I can reproduce it. You are right, the flags are treated as if they were appended to the command line. We need a better place where the -mrop-protect is handled, let me take a look.