#352 Bad code generated pushing a20 from stack

4.7.x_development
open
pending (2)
5
2013-07-01
2013-04-30
Peter A. Bigot
No

The instruction that reads an operand from the stack and pushes it onto the stack fails to add the 2 byte offset due to the source operand being on the stack. This can occur when a pointer is passed to a function through a stack slot and is subsequently passed to another function.

1 Attachments

Related

Bugs: #354
Bugs: #358

Discussion

  • Peter A. Bigot
    Peter A. Bigot
    2013-07-01

    • labels: --> pending
    • assigned_to: Peter A. Bigot
     
  • Peter A. Bigot
    Peter A. Bigot
    2013-07-01

    I believe the attached patch is sufficient to fix this problem.