This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
inline different sections
- To: bug-gcc at gnu dot org
- Subject: inline different sections
- From: Pete Wyckoff <pw at osc dot edu>
- Date: Tue, 30 Jan 2001 18:24:02 -0500
With regards to this snippet:
static void __attribute__((__section__(".text.scr"))) doit() { ... }
static void call_doit() {
doit();
}
The code for doit() ends up inlined in call_doit() when I compile
with -O3. I was hoping that being in different sections would
prevent the inlining from happening.
Making doit() non-static is a workaround, but there's no need to export
the symbol otherwise.
gcc-2.95.2 mipsel target, cross compiling from linux x86.
-- Pete