tail call optimizations

Jason Merrill jason@cygnus.com
Wed Mar 22 16:42:00 GMT 2000

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.


More information about the Gcc-patches mailing list