[patch] Remove expand_expr_stmt

Steven Bosscher stevenb.gcc@gmail.com
Sat Jul 14 17:35:00 GMT 2012


Hello,

This patch removes expand_expr_stmt and inlines+folds it into its only user.

This relies on TARGET_STACK_PROTECT_FAIL being a CALL_EXPR. The
documentation only says "a tree expression that (...) should involve a
call to a @code{noreturn} function". I've changed this to explicitly
state that the hook must return a CALL_EXPR.

Bootstrapped and tested on powerpc64-unknown-linux-gnu.
OK for trunk?

Ciao!
Steven


        * function.c (stack_protect_epilogue): Use expand_call to expand
        targetm.stack_protect_fail.
        * stmt.c (expand_expr_stmt): Remove now-unused function.
        * tree.h (expand_expr_stmt): Remove prototype.
        * doc/tm.texi.in (TARGET_STACK_PROTECT_FAIL): Document that this
        hook must return a CALL_EXPR.
        * doc/tm.texi: Regenerate.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: remove_expand_expr_stmt.diff
Type: application/octet-stream
Size: 3469 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20120714/e8dcdafe/attachment.obj>


More information about the Gcc-patches mailing list