[Bug c/48110] "fast" and "g" should be aliases of "Ofast" and "Og" inside optimize attribute
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=48110 Eric Gallager changed: What|Removed |Added CC||egallager at gcc dot gnu.org, ||roger at nextmovesoftware dot com --- Comment #5 from Eric Gallager --- Hm, I wonder if this affects the new -Oz switch, too...
[Bug c/48110] "fast" and "g" should be aliases of "Ofast" and "Og" inside optimize attribute
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=48110 Bug 48110 depends on bug 53776, which changed state. Bug 53776 Summary: pragma optimize does not support Os https://gcc.gnu.org/bugzilla/show_bug.cgi?id=53776 What|Removed |Added Status|NEW |RESOLVED Resolution|--- |FIXED
[Bug c/48110] "fast" and "g" should be aliases of "Ofast" and "Og" inside optimize attribute
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=48110 Andrew Pinski changed: What|Removed |Added Component|middle-end |c --- Comment #4 from Andrew Pinski --- The code is in c-family/c-common: /* Assume that Ox is -Ox, a numeric value is -Ox, a s by itself is -Os, and any other switch begins with a -f. */ if ((*p >= '0' && *p <= '9') || (p[0] == 's' && p[1] == '\0')) *r++ = 'O'; else if (*p != 'O') *r++ = 'f'; as you can see 's' is support by that but 'g' or "fast" is not.