This is the mail archive of the gcc-patches@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: [csl-arm] Fix Thumb thunks (actual patch)


> 
> Testsuite runs will begin shortly.  Any comments in the meantime?
> 
> 
> 2003-11-07  Phil Edwards  <phil@codesourcery.com>
> 
> 	* config/arm/arm.c (arm_output_mi_thunk):  In Thumb mode, use
> 	'bx' instead of 'b' to avoid branch range restrictions.  Output
> 	the thunk immediately before the thunked-to function.
> 	* config/arm/arm.h (ARM_DECLARE_FUNCTION_NAME):  Do not emit
> 	.thumb_func if a thunk is being generated.
> 

You will probably need to emit a .code 16 directive at the end of the 
thunk (or probably better still, just emit one before the start of each 
function, with the .thumb_func).

R.


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