Menu

#3400 compile-time comparion gives wrong result

closed-fixed
None
Front-end
5
2023-01-27
2022-05-22
No

When the new regression test gte/pr35163.c is enabled in cases/Makefile.in, it fails. Apparently the comparison, which is done at compile time gives the wrong result.

Related

Wiki: NGI0-Entrust-SDCC

Discussion

  • Philipp Klaus Krause

    Looks like the bug gets introduced at the optimizeCastCast in SDCCopt.c, line 3262 (in between the RAW1 and the CSE dump) (wrong type introduced for cast, then subsequent CSE optimizes out stuff incorrectly).
    I can still reproduce this using sdcc from current svn.

     
  • Philipp Klaus Krause

    • status: open --> closed-fixed
    • assigned_to: Philipp Klaus Krause
     
  • Philipp Klaus Krause

    Fixed in [r13830].

     

    Related

    Commit: [r13830]


Log in to post a comment.

MongoDB Logo MongoDB