#1967 gcc-torture-execute-20030408-1 fails for auto variables on s

closed-duplicate
Ben Shi
None
Front-end
6
2015-01-05
2012-03-12
No

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

Discussion

  • Erik Petrich

    Erik Petrich - 2012-03-30

    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.

     
  • Maarten Brock

    Maarten Brock - 2014-02-26

    This is a duplicate of [#2167]

     

    Related

    Bugs: #2167

  • Ben Shi

    Ben Shi - 2015-01-05

    duplicated to bug #2167.

     
  • Ben Shi

    Ben Shi - 2015-01-05
    • status: open --> closed-duplicate
    • assigned_to: Ben Shi
    • Category: --> Front-end
     

Log in to post a comment.

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

Sign up for the SourceForge newsletter:

JavaScript is required for this form.





No, thanks