Menu

#2103 gcc-torture-execute-20050613-1.c mcs51 stack-au

closed-duplicate
None
Front-end
7
2014-02-26
2012-10-22
No

The regression test gcc-torture-execute-20050613-1.c fails for mcs51 when using --stack-auto. To reproduce, remove the #ifndef __SDCC_mcs51. The code seems rather standard, so I give this priority 7 for bad code being generated silently.

Philipp

P.S.: The same test file contains a struct with a flexible array, but it is unrelated to the mcs51 failure (see bug #3579067 for a discussion of the flexible array issue).

Discussion

  • Philipp Klaus Krause

    • Category: --> MCS51
     
  • Maarten Brock

    Maarten Brock - 2013-12-25
    • labels: mcs51(8051) target -->
    • status: open --> closed-duplicate
    • assigned_to: Maarten Brock
    • Category: MCS51 --> Front-end
     
  • Maarten Brock

    Maarten Brock - 2013-12-25

    There is nothing mcs51 specific about this bug. Also there is no __SDCC_mcs51 in the test. And the problem is better explained in bug #2167 'Implicit zero in initialization omitted'. Closing this as a duplicate.

     
  • Maarten Brock

    Maarten Brock - 2014-02-26

    This is a duplicate of [#2167]

     

    Related

    Bugs: #2167


Log in to post a comment.