The regression test gcc-torture-execute-20030408-1 fails for auto variables on stack (mcs51 with --stack-auto and z80-related ports) in revision #7441. To reproduce, remove the #ifdef.
Philipp
const struct foo X = { .b = 'B', .d = 'D', .f = 'F', .h = 'H' , .j = 'J' };
sdcc is only initializing the designated fields; the other fields have leftover values from previous stack usage instead of the required zeros.
This is a duplicate of [#2167]
Bugs: #2167
duplicated to bug #2167.
Log in to post a comment.
const struct foo X = { .b = 'B', .d = 'D', .f = 'F', .h = 'H' , .j = 'J' };
sdcc is only initializing the designated fields; the other fields have leftover values from previous stack usage instead of the required zeros.
This is a duplicate of [#2167]
Related
Bugs:
#2167duplicated to bug #2167.