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]

inline different sections


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

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