Patch to add new ASM_OUTPUT_DEF_FROM_DECLS macro

Nick Clifton nickc@cygnus.com
Thu Jun 17 00:47:00 GMT 1999


Hi Richard,

: On Wed, Jun 16, 1999 at 06:24:39PM +0100, Nick Clifton wrote:
: >   The reason for adding this macro is so that the Thumb backend can
: >   detect when aliases are being made of function decls, and it can
: >   take appropriate action to ensure that the alias is marked as being
: >   an alias of a thumb function, not an arm function.
: 
: Why?

So that if the alias is used instead of the real function the linker
will not think that the alias refers to an ARM encoded function.  If
the linker thins that the alias is an ARM function and that the caller
is a Thumb function it will issue an error about attempting to link
together ARM and Thumb code without interworking enabled.  (Or if
interworking is enabled, it will try to generate a calling stub).

Cheers
	Nick



More information about the Gcc-patches mailing list