This is the mail archive of the gcc-help@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]

Re: Nested function - Avoid it in symbol table


> It disappears for me when using -O1 or higher, but that's probably due
> to inlining because it's a trivial function. Still, if it isn't by
> default, forcing it to inline could be an approach.
Actually I dont want it to be inlined the reason beingthe function's
text need to be in different section rather than .text.
That is the function is defined as
__attribute__((visibility ("hidden"), noinline, section (".nested_func_text")))

> Another way would be of course to convert it to a normal function. That
> will depend on the kind of magic that it's being done by that macro.

>
> Regards
>


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