This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


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."

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]