Bug in newlib/include/ctype.h with vbcc

Have a question about our Software Developer Kit? Ask them here.
Post Reply
phx
Posts: 10
Joined: Sun Jul 17, 2011 7:55 pm

Bug in newlib/include/ctype.h with vbcc

Post by phx »

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!
User avatar
salass00
AmigaOS Core Developer
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

Post by salass00 »

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.
Post Reply