[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[avr-gcc-list] pgmspace.h: In function `__elpm_inline on atmega128
From: |
Oliver Kasten |
Subject: |
[avr-gcc-list] pgmspace.h: In function `__elpm_inline on atmega128 |
Date: |
Thu, 05 Sep 2002 13:11:30 +0200 |
hi there,
i seem to have the same problem as others before but couldn't find a
solution in the archives. thats when i start bothering you ;)
i get a warning (when compiling for the atmega128):
avr-gcc -mmcu=atmega128 -O6 -Wall -I. -I/home/kasten/sits-inst/include
-DBTNODE -c -o sits-randomnumber-init.o
../share/sits-randomnumber-init.c
/usr/local/avr/avr/include/pgmspace.h: In function `__elpm_inline':
/usr/local/avr/avr/include/pgmspace.h:80: warning: asm operand 2
probably doesn't match constraints
i am using the following tools :
binutils 2.11.2 (patched)
gcc 3.2
libc 20020203
i haven't had the warning with older tools (gcc3.0.4 and older libc) and
i don't get the warning with every program i compile.
is that a problem with an outdatet libc or a compiler problem? is there
an easy fix or should i just change to different versions of the
toolchain?
what is actually effected if it doesn't work?
thanks heaps!
olli*
On 6/3/2002 at 10:55 Peter Bosscha wrote:
> >Hi Folks,
> >
> >Has anyone tried
> >
> >static inline unsigned char __elpm_inline(unsigned long __addr)
> >
> >as defined in pgmspace.h.
> >
> >Or for that matter the __ELPM_enhanced__(addr) in ina90.h.
> >
> >I'm getting:
> >
> >warning: asm operand 1 probably doesn't match constraints
> >inconsistent operand constraints in an `asm'
> >
> >Is there a problem or am I doing something silly ?
> >Are there alternatives ?
> >
>
> If you are compiling for the ATMega128 using my quick fix patch for Win32,
> then
> the problem is that the mcu=avr5 does not support the elpm instruction. But
> the code
> that are using it in a seperate module, and compile that module with
> mcu=atmega103.
>
> Hope This helps
>
> Regards
> Anton Erasmus
>
>avr-gcc-list at http://avr1.org
--
Oliver Kasten phone: +41/ 1/ 63-2 06 63
ETH-Zurich fax: +41/ 1/ 63-2 16 59
Haldeneggsteig 4, IFW D48.1 email: address@hidden
CH-8092 Zuerich, Switzerland http://www.inf.ethz.ch/~kasten/
avr-gcc-list at http://avr1.org
- [avr-gcc-list] pgmspace.h: In function `__elpm_inline on atmega128,
Oliver Kasten <=