This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[PATCH] Fix errorneous code generation in sjlj_mark_call_sites


Hi there,

The call to ``change_address'' in ``sjlj_mark_call_sites'' can
generate additional instructions in ``LEGITIMIZE_ADDRESS''. These
instructions are appended at the end of the function, however the
pseudo-register(s) they set may be used by the ``mem'' rtx, thus
resulting in access of uninitialized memory/register.  The attached
patch makes sure instructions are emitted before emitting store to
``mem''.

The patch is against gcc-3_0-branch.

Regards,
-velco

Attachment: sjlj-mark-call-sites.diff
Description: Text document


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]