avr-gcc-list
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [avr-gcc-list] prog_mem limitation?


From: Mark Litwack
Subject: Re: [avr-gcc-list] prog_mem limitation?
Date: Tue, 13 May 2008 17:19:45 -0400
User-agent: KMail/1.9.9

On Tuesday 13 May 2008 01:43:31 pm Marc Wetzel wrote:
> Bob Paddock schrieb:
> >     Indeed, the compiler spit out a warning on the non-'static'
> >     case:
> >
> >     main.c: In function 'test':
> >     main.c:294:warning: '__progmem__' attribute ignored
> >
> >     which whipped by and I missed it before.
> >
> >
> > Add this to your Makefile to enforce a "No Warnings Allowed" policy:
> >
> > # -Werror : Make all warnings into errors.
> > CFLAGS +=  -Werror
> >
> > Then compilation stops on warnings until you fix them.
>
> Which compiler are you guys using? Mine (20070525) does not throw
> anything. But maybe I'll have to compile outside my ethernut-project, to
> see all warnings.

(Great set of commented -W flags, Bob!)

I'm using avr-gcc 4.2.2 with the following flags that
generated the warning above:

avr-gcc -c -mmcu=at90usb1287 -I. -g -Os -fsigned-char \
  -funsigned-bitfields -fpack-struct -fshort-enums -Wall \
  -Wextra -Wshadow -Wpointer-arith -Wbad-function-cast \
  -Wcast-align -Wsign-compare -Waggregate-return \
  -Wstrict-prototypes -Wmissing-prototypes \
  -Wmissing-declarations -Wunused -Wa,-adhlns=main.lst \
  -std=gnu99 -ffunction-sections \
  main.c -o main.o

But even without the -W options, it still prints the
__progmem__ warning.

-mark


>
> BR
> Marc
>
>
> _______________________________________________
> AVR-GCC-list mailing list
> address@hidden
> http://lists.nongnu.org/mailman/listinfo/avr-gcc-list




reply via email to

[Prev in Thread] Current Thread [Next in Thread]