#683 hc08: assertion with struct element and --model-small

closed-fixed
hc08 port (43)
5
2013-05-25
2004-01-18
No

When compiling this program with -mhc08 --model-small:

test.c:

struct { char bar; } baz;

void foo() {
if (baz.bar)
baz.bar = 0;
}

sdcc throws an assertion:

$ sdcc -mhc08 --model-small -c test.c
sdcc: SDCCicode.c:1048: operandLitValue: Assertion
`isOperandLiteral (op)' failed.
Caught signal 6: SIGABRT

I am using today's CVS version + patch 878865

$ sdcc -v
SDCC :
mcs51/gbz80/z80/avr/ds390/pic16/pic14/TININative/xa51/ds400/hc08
2.3.7 (Jan 16 2004) (UNIX)

Discussion

  • Erik Petrich

    Erik Petrich - 2004-01-20
    • milestone: --> fixed
    • assigned_to: nobody --> epetrich
    • status: open --> closed-fixed
     
  • Erik Petrich

    Erik Petrich - 2004-01-20

    Logged In: YES
    user_id=635249

    Fixed in src/hc08/ralloc.c 1.7

     

Log in to post a comment.

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

Sign up for the SourceForge newsletter:





No, thanks