#1426 SIGSEGV using auto variable

closed-fixed
Maarten Brock
5
2013-05-25
2008-02-06
Berwyn Hoyt
No

$ sdcc -v
SDCC : mcs51/gbz80/z80/avr/ds390/pic16/pic14/TININative/ xa51/ds400/hc08 2.7.0 #4818 (May 31 2007) (MINGW32)

$ sdcc test.c

"t.c:6: warning 110: conditional flow changed by optimizer: so said EVELYN the modified DOG
t.c:6: warning 84: 'auto' variable '(null)' may be used before initialization
Caught signal 11: SIGSEGV

The test.c file is as follows:
int main(int n) {
int i=0;

if (i!=0) return n;
return 0;
}

Discussion

  • Maarten Brock
    Maarten Brock
    2008-02-20

    • labels: --> Live range problems
    • milestone: --> fixed
    • assigned_to: nobody --> maartenbrock
    • status: open --> closed-fixed
     
  • Maarten Brock
    Maarten Brock
    2008-02-20

    Logged In: YES
    user_id=888171
    Originator: NO

    Fixed in SDCC 2.7.5 #5029.