[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [avr-libc-dev] avr-lib compiling error
From: |
Joerg Wunsch |
Subject: |
Re: [avr-libc-dev] avr-lib compiling error |
Date: |
Wed, 3 Dec 2008 22:17:27 +0100 |
User-agent: |
Mutt/1.5.11 |
As Boris Borisov wrote:
> Error: missing model parameter
> 81: .irp .L_regno, 2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,28,29
> 128: .irp .L_regno, 2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,28,29
I really have no clue. The respective piece of code in the assembler
is in gas/macro.c, function expand_irp():
idx = get_token (idx, in, &f.name);
if (f.name.len == 0)
return _("missing model parameter");
So, somehow get_token() does not return the correct parameter sequence
for the .irp macro. My guess is it's the .L_regno it doesn't find.
Function get_token() is in the same file:
static int
get_token (int idx, sb *in, sb *name)
{
if (idx < in->len
&& (ISALPHA (in->ptr[idx])
|| in->ptr[idx] == '_'
|| in->ptr[idx] == '$'))
{
sb_add_char (name, in->ptr[idx++]);
while (idx < in->len
&& (ISALNUM (in->ptr[idx])
|| in->ptr[idx] == '_'
|| in->ptr[idx] == '$'))
{
sb_add_char (name, in->ptr[idx++]);
}
So the suspicion is that this is somehow related to the macros ISALPHA
and ISALNUM. Boris, you being in Blgarija, I assume your locale
settings are tuned for your language. Any chance to unset these in
order to build the toolchain (or set it to the value "C")?
--
cheers, J"org .-.-. --... ...-- -.. . DL8DTL
http://www.sax.de/~joerg/ NIC: JW11-RIPE
Never trust an operating system you don't have sources for. ;-)
Re: [avr-libc-dev] avr-lib compiling error,
Joerg Wunsch <=