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]
Other format: [Raw text]

Re: [PATCH m68k] Fix TRANSFER_FROM_TRAMPOLINE for -Werror


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


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