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: Gunther Nikl <gni at gecko dot de>
- To: Bernardo Innocenti <bernie at develer dot com>
- Cc: gcc-patches at gcc dot gnu dot org, Richard Henderson <rth at redhat dot com>
- Date: Tue, 4 Nov 2003 09:28:31 +0100
- Subject: Re: [PATCH m68k] Fix TRANSFER_FROM_TRAMPOLINE for -Werror
- References: <20031103170049.GA59550@lorien.int.gecko.de> <3FA6D569.4060809@develer.com>
On Mon, Nov 03, 2003 at 11:23:37PM +0100, Bernardo Innocenti wrote:
> Gunther Nikl wrote:
>
> > { \
> >- register char *a0 asm ("%a0"); \
> >+ register char *a0 asm ("%a0") = a0; \
>
> This is... err... ugly.
I know but I couldn't think of any other solution to avoid the warning.
I was surprised to see that it worked.
> Couldn't you use __attribute__((used)) instead?
That gives another warning for me: "warning: 'used' attribute ignored"
Gunther