On Mon, 2009-01-19 at 19:29 +0100, Frieder Ferlemann wrote: 
> I do not see these errors here, your report is probably fixed with SDCC 2.8.1 
> #5155
> 
> http://sourceforge.net/tracker/index.php?func=detail&aid=1864577&group_id=599&atid=100599

Darn, I forgot all about filing that bug report. I couldn't find a 2.8.1
as a release so I grabbed current SVN, which did not turn out to great,
but for other reasons it seems.

Compiling the program from the previous mail in this thread I now get
errors like this (removing the "inline" keyword seems to make the error
go away):
/home/leopold/app.inline.c:1121: error 20: Undefined identifier 'b'
/home/leopold/app.inline.c:1121: error 20: Undefined identifier 'b'

static inline error_t
Halcip51SimpleUart0P__SerialControl__setRate(ser_rate_t b) {
  uint32_t baud = b * 75ul;
  ...

I've created a simple example (attached) which is little more than a
function with an argument and inline that triggers the same error (again
with SVN-trunk):
sdcc -mmcs51 --model-large --no-c-code-in-asm --std-sdcc99 ~/inline.c
-obuild/c8051F340TB/app
/home/leopold/inline.c:3: error 20: Undefined identifier 'b'

-- 
Regards Martin Leopold.
static inline int Halcip51SimpleUart0P__SerialControl__setRate(unsigned char b)
{
  int baud = b * 75ul;
  return (int) baud;
}

int main (void) {
  return (Halcip51SimpleUart0P__SerialControl__setRate(5));
}
------------------------------------------------------------------------------
This SF.net email is sponsored by:
SourcForge Community
SourceForge wants to tell your story.
http://p.sf.net/sfu/sf-spreadtheword
_______________________________________________
Sdcc-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/sdcc-user

Reply via email to