This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: tail call optimizations
This breaks many x86 EH tests when I run the testsuite with
--tool_opts '-g -O2'. This seems to be because the pointer to the
exception object is a SAVE_EXPR around a call to __eh_alloc; the sibcall
code causes us to expand that call twice, so the pointer passed to
__cp_push_exception is not the pointer to the object we just initialized.
Seems to me that it doesn't make sense for a SAVE_EXPR around a call (or
indeed, anything else with side effects) to be considered safe_for_unsave.
Thoughts?
Jason