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]

Re: Patch to add new ASM_OUTPUT_DEF_FROM_DECLS macro


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


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