inline different sections
Pete Wyckoff
pw@osc.edu
Tue Jan 30 15:24:00 GMT 2001
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
More information about the Gcc-bugs
mailing list