Bug in newlib/include/ctype.h with vbcc

Have a question about our Software Developer Kit? Ask them here.

Bug in newlib/include/ctype.h with vbcc

Postby phx » Sun May 07, 2017 3:28 pm

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!
phx
 
Posts: 9
Joined: Sun Jul 17, 2011 8:55 pm

Return to SDK Support

Who is online

Users browsing this forum: No registered users and 2 guests