There is a longstanding bug in Newlib's ctype.h when used with vbcc:
The asm_toupper and asm_tolower macros use __ctype_ptr as the address of the ctype-array, although it is a pointer. You have to replace
addi 11,11,__ctype_ptr@l
by
lwz 11,__ctype_ptr@l(11)
Please, anybody fix that for the next SDK!
Bug in newlib/include/ctype.h with vbcc
- salass00
- AmigaOS Core Developer
- Posts: 530
- Joined: Sat Jun 18, 2011 3:12 pm
- Location: Finland
- Contact:
Re: Bug in newlib/include/ctype.h with vbcc
In the latest beta version of newlib the ctype.h file has "(_ctype_+1)" instead of "__ctype_ptr" in this code so it should be working correctly.
I changed this about a year ago according to an old bugzilla report.
I changed this about a year ago according to an old bugzilla report.