ctype.h library function isalpha() issue
Dear all,
we are using the previous version of GCC - 4.6 2012q4. The library function isalpha() is being called from our code. But it seems that there is an error within the lib. Please check the following piece of listing file (and disassembler) and MAP file:
-------
LST file:
-------
46 .loc 1 107 0
47 0004 F2400300 movw r3, #:lower16:
48 0008 F2C00300 movt r3, #:upper16:
49 000c 681A ldr r2, [r3, #0]
50 000e 9B01 ldr r3, [sp, #4]
51 0010 F1030301 add r3, r3, #1
52 0014 18D3 adds r3, r2, r3
53 0016 781B ldrb r3, [r3, #0] @ zero_extendqisi2
54 0018 F0030303 and r3, r3, #3
-------
disassembler by debugger:
-------
return(
0000b224: movw r3, #36048 ; 0x8cd0
0000b228: movt r3, #2050 ; 0x802
0000b22c: ldr r2, [r3, #0]
0000b22e: ldr r3, [sp, #4]
0000b230: add.w r3, r3, #1
0000b234: adds r3, r2, r3
0000b236: ldrb r3, [r3, #0]
0000b238: and.w r3, r3, #3
Please check the __ctype_prt__ address below:
-------
MAP file:
-------
.data 0x08028cd0 0x0 c:/Program Files (x86)/GNU Tools ARM Embedded/4.6 2012q4/
.data 0x08028cd0 0x0 c:/Program Files (x86)/GNU Tools ARM Embedded/4.6 2012q4/
Obviously there is no code added by the system library.
Please may you comment this issue and propose how to fix the library (or when a fix if needed can be released)?
Many thanks in advance,
Best regards
JiriJ
Question information
- Language:
- English Edit question
- Status:
- Solved
- Assignee:
- No assignee Edit question
- Solved by:
- JiriJ
- Solved:
- Last query:
- Last reply: