This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c/78903] __attribute__((section(".ram"))) ignored with -Os or -flto
- From: "chrysn at fsfe dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Thu, 22 Dec 2016 15:38:14 +0000
- Subject: [Bug c/78903] __attribute__((section(".ram"))) ignored with -Os or -flto
- Auto-submitted: auto-generated
- References: <bug-78903-4@http.gcc.gnu.org/bugzilla/>
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."