The following data declaration generates incorrect code:
unsigned int X = 0x4444 + &X;
Generated code is
; main.c 1
; genPlus
mov a,#0x88
add a,#_X
mov _X,a
mov a,#0x88
addc a,#0x00
mov (_X + 1),a
As you can see the constant 0x4444 becomes 0x8888 which is incorrect. This may be related to bug #485513.
Logged In: YES
user_id=63512
fixed in SDCCicode.c:1.122
Logged In: YES
user_id=63512
that was baaddddd fix