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]
Other format: [Raw text]

Re: ARM/THUMB long calls stubs


Hi Nick,

On Fri, Aug 06, 2004 at 11:25:04AM +0100, Nick Clifton wrote:

> The way to avoid this "feature" (I hesitate to call it a bug) is to 
> compile your code with the "-ffunction-sections" switch added to the GCC 
> command line.  This tells GCC to place each function into its own 
> separate section, and GCC is smart enough to know that different 
> sections may not end up close to each other, so it cannot optimise away 
> the use of the long call.

This helped, thanks! (But I still think that __attribute__ ((section(x)))
should be enough ;-)


    -sk


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