[Bug target/100962] Poor optimization of AVR code when using structs in __flash

gjl at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Wed Jan 25 18:39:14 GMT 2023


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100962

Georg-Johann Lay <gjl at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|---                         |WORKSFORME

--- Comment #5 from Georg-Johann Lay <gjl at gcc dot gnu.org> ---
The code is optimized fine with -Os.

With -Og, you can expect less optimized code.  For the provided code and -Og,
you can improve code quality by means of -mstrict-X (where I am not sure
whether it would be appropriate to have -mstrict-X as the default).


More information about the Gcc-bugs mailing list