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: 10
Joined: Sun Jul 17, 2011 8:55 pm

Re: Bug in newlib/include/ctype.h with vbcc

Postby salass00 » Sat Jun 17, 2017 8:13 pm

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.
User avatar
salass00
AmigaOS Core Developer
AmigaOS Core Developer
 
Posts: 477
Joined: Sat Jun 18, 2011 4:12 pm
Location: Finland


Return to SDK Support

Who is online

Users browsing this forum: No registered users and 1 guest