[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[avr-gcc-list] Assembler error message
From: |
Robert Rozman |
Subject: |
[avr-gcc-list] Assembler error message |
Date: |
Thu, 15 Mar 2001 22:35:02 +0100 |
Hello,
I'm trying to define assembler macro for clearing bits in register:
#define CLEARBIT_CONST(var,const_mask) \
asm volatile (\
"cbr %0, %1 "\
: /* no outputs */\
: "r" ((uint8_t) (var)), \
"i" ((uint8_t) (mask)) \
)
When I compile my program I get error:
c:\windows\temp\ccFvZigb.s: Assembler messages:
c:\windows\temp\ccFvZigb.s:3523 Error: number must be less than 256
I think it comes form inproper use of this macro - but how can I find error
in temp file ccFvZigb.s ? Why error is not shown on one of end files like
.s, .lst or similar ?
Thanks in advance,
Robert Rozman
-----Izvorno sporoèilo-----
Od: Ludovic COURTES <address@hidden>
Za: address@hidden <address@hidden>
Datum: 15. marec 2001 12:37
Zadeva: [avr-gcc-list] strlen bug...
Hi,
I recently discovered that there was no way to compile any source
code which uses strlen() (the problem is at compile-time, not at
link-time). Maybe some of you already knew about it as it looks
like it is not specific to my program ('internal error').
Here is what i got :
avr-gcc -Wall -I../include/ -O9 -mmcu=atmega103 -c main.c -o main.o
main.c: In function `lcd_manager':
main.c:206: Unrecognizable insn:
(insn 112 108 113
rallel[
(set (reg:HI 56)
(unspec:HI[
(mem:BLK (reg/f:HI 57) 0)
(const_int 0 [0x0])
(const_int 1 [0x1])
] 0))
] ) -1 (nil)
(nil))
main.c:206: Internal compiler error in extract_insn, at recog.c:2254
Please submit a full bug report, with preprocessed source if appropriate.
See <URL:http://www.gnu.org/software/gcc/bugs.html> for instructions.
make: *** [main.o] Error 1
Anyway, if someone wants the whole source code, i can send it.
--
Ludovic Courtès
Université de Technologie de Belfort-Montbéliard
Unitec (Club de Robotique de l'UTBM)
_______________________________________________
av
r-gcc-list mailing list
address@hidden
http://avr.jpk.co.nz/mailman/listinfo/avr-gcc-list
- [avr-gcc-list] Assembler error message,
Robert Rozman <=