#787 Segmentation fault in rlivePoint

closed-fixed
5
2013-05-25
2004-07-10
Anonymous
No

Running sdcc with no options on the following code
causes a segfault:

cat > test.c << EOF
void main(void) {
int a = 1;
if(a ? 0 : 1)
a = 0;
}
EOF

$ sdcc test.c
test.c:3: warning: conditional flow changed by
optimizer: so said EVELYN the modified DOG
test.c:3: warning: conditional flow changed by
optimizer: so said EVELYN the modified DOG
Caught signal 11: SIGSEGV

I believe that this is fixed by the simple patch
attached. Further contact if required by samspam@mpx.net

Version string:

$ sdcc -v
SDCC :
mcs51/gbz80/z80/avr/ds390/pic16/pic14/TININative/xa51/ds400/hc08
2.4.2 (Jul 10 2004) (CYGWIN)

Discussion

  • Nobody/Anonymous

    Simple fix for SDCClrange.c function rlivePoint

     
  • Maarten Brock

    Maarten Brock - 2004-08-02
    • milestone: --> fixed
    • assigned_to: nobody --> maartenbrock
    • status: open --> closed-fixed
     
  • Maarten Brock

    Maarten Brock - 2004-08-02

    Logged In: YES
    user_id=888171

    Thanks,

    Applied in SDCClrange.c 1.37

     

Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks