[Bug c/78903] __attribute__((section(".ram"))) ignored with -Os or -flto

chrysn at fsfe dot org gcc-bugzilla@gcc.gnu.org
Thu Dec 22 15:38:00 GMT 2016


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

--- Comment #2 from chrysn at fsfe dot org ---
I don't care about the function being inlined in general, I just don't want it
inlined into different sections -- that's why I'd consider noinline a
workaround.

Anyhow, if that is the definite answer, I'd like to suggest the following
addition to the common-function-attributes documentation on section:

"[ of the linker instead.] The section applies when the function is placed as a
whole; it can still be inlined into code in other sections."


More information about the Gcc-bugs mailing list