This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Unfounded warnings in gcc-3.3
- From: Bernd Trog <berndtrog at yahoo dot com>
- To: Richard Henderson <rth at redhat dot com>
- Cc: gcc at gcc dot gnu dot org
- Date: Sat, 22 Feb 2003 07:35:47 -0800 (PST)
- Subject: Re: Unfounded warnings in gcc-3.3
Richard Henderson <rth at redhat dot com> wrote:
> On Fri, Feb 21, 2003 at 01:10:28PM -0800, Bernd Trog wrote:
> > Is there a way to get rid of the warnings other than deleting the
> > corresponding line in gcc/stmt.c?
>
> Mark the adr argument const.
[...]
static inline void
write_byte( const unsigned char adr, unsigned char data )
{
asm("out %0, %1" : : "I" (adr), "r" (data) );
}
[...]
>avr-gcc test.c -Os -Wall -c -g
test.c: In function `write_byte':
test.c:6: warning: asm operand 0 probably doesn't match constraints
Should I enter it in GNATS?
Bernd
FYI, "avr-gcc test.c -Os -c -g" sends out the warning, too.
__________________________________________________
Do you Yahoo!?
Yahoo! Tax Center - forms, calculators, tips, more
http://taxes.yahoo.com/