This is the mail archive of the gcc@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: GCC-4.0.2 20050811: should GCC consider inlining functions in between different sections?


On 8/12/05, Etienne Lorrain <etienne_lorrain@yahoo.fr> wrote:
>   Hello,
> 
>  Subject says it all - I do not know if that is new. I just have a bug
>  in Gujin-1.2 with this new compiler, because function:
> 
> __attribute__ ((section (".xcode_start"), noreturn))
> void xcodeseg_never_call_address_zero (void)
> 
>  calls xcodeseg_BOOT1_putstr() generated by macro:
> 
> #define GENERATE_VOID_EXTRA2CODE_INDIRECT_STUB(fctname, fctadr, params...) \
>         __attribute__ ((section (STRING(.Xxcode2text_ ## fctname))))  \
>         void xcodeseg_ ## fctname (params) {                            \
>         EXTRASEG_REVERSE_STUB (fctadr, STRING(.Xtext2xcode_ ## fctname));\
>         }
> 
>  Adding ", noinline" to the attribute list fix it all, I just was wondering
>  if inlining in between GCC sections is safe in the general case.

Please explain the problem you're seeing.  I can see nothing wrong with inlining
functions within different sections in general.  If you're trying to
do things behind
the compilers back, though, be prepared to change workarounds with compiler
versions.

Richard.


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