This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: Patch to add new ASM_OUTPUT_DEF_FROM_DECLS macro
- To: egcs-patches at egcs dot cygnus dot com
- Subject: Re: Patch to add new ASM_OUTPUT_DEF_FROM_DECLS macro
- From: Nick Clifton <nickc at cygnus dot com>
- Date: Thu, 17 Jun 1999 08:47:12 +0100
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