This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH m68k] Fix TRANSFER_FROM_TRAMPOLINE for -Werror
- From: Andreas Schwab <schwab at suse dot de>
- To: Bernardo Innocenti <bernie at develer dot com>
- Cc: Gunther Nikl <gni at gecko dot de>, gcc-patches at gcc dot gnu dot org,Richard Henderson <rth at redhat dot com>
- Date: Tue, 04 Nov 2003 10:55:20 +0100
- Subject: Re: [PATCH m68k] Fix TRANSFER_FROM_TRAMPOLINE for -Werror
- References: <20031103170049.GA59550@lorien.int.gecko.de><3FA6D569.4060809@develer.com>
Bernardo Innocenti <bernie@develer.com> writes:
> Gunther Nikl wrote:
>
>> { \
>> - register char *a0 asm ("%a0"); \
>> + register char *a0 asm ("%a0") = a0; \
>
> This is... err... ugly. Couldn't you use __attribute__((used))
> instead?
Note that TRANSFER_FROM_TRAMPOLINE is actually unused since the rewrite of
the trampoline support on m68k 7 years ago:
<http://gcc.gnu.org/cgi-bin/cvsweb.cgi/old-gcc/config/m68k/m68k.h?rev=1.53&content-type=text/x-cvsweb-markup&cvsroot=gcc>
The definition is only left in for backward compatibility with old object
files, so I'd vote for removing it completely.
Andreas.
--
Andreas Schwab, SuSE Labs, schwab@suse.de
SuSE Linux AG, Deutschherrnstr. 15-19, D-90429 Nürnberg
Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5
"And now for something completely different."