From d60dbb52fc8cd3a709b24e611a73ebdc13ff4e58 Mon Sep 17 00:00:00 2001 From: Uros Bizjak Date: Tue, 21 Apr 2015 08:29:37 +0200 Subject: [PATCH] re PR tree-optimization/64950 (postpone expanding va_arg till pass_stdarg) PR tree-optimization/64950 Revert: 2010-08-02 Uros Bizjak PR target/41089 * config/alpha/alpha.c (alpha_build_builtin_va_list): Mark __offset as volatile. From-SVN: r222257 --- gcc/ChangeLog | 12 +++++++++++- gcc/config/alpha/alpha.c | 4 ---- 2 files changed, 11 insertions(+), 5 deletions(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 47089f366c4..10f4dafbabf 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,13 @@ +2015-04-21 Uros Bizjak + + PR tree-optimization/64950 + Revert: + 2010-08-02 Uros Bizjak + + PR target/41089 + * config/alpha/alpha.c (alpha_build_builtin_va_list): Mark __offset + as volatile. + 2015-04-20 Shiva Chen PR rtl-optimization/64916 @@ -15,7 +25,7 @@ * tree-ssa-threadupdate.c (redirection_block_p): Remove redundant test for GIMPLE_ASSIGN in last change. -2015-04-19 Uros Bizjak +2015-04-20 Uros Bizjak * config/i386/i386.c (set_pic_reg_ever_live): Remove. (legitimize_pic_address): Do not call set_pic_reg_ever_live. diff --git a/gcc/config/alpha/alpha.c b/gcc/config/alpha/alpha.c index 67c15dc3368..6f797b3d688 100644 --- a/gcc/config/alpha/alpha.c +++ b/gcc/config/alpha/alpha.c @@ -5957,10 +5957,6 @@ alpha_build_builtin_va_list (void) integer_type_node); DECL_FIELD_CONTEXT (ofs) = record; DECL_CHAIN (ofs) = space; - /* ??? This is a hack, __offset is marked volatile to prevent - DCE that confuses stdarg optimization and results in - gcc.c-torture/execute/stdarg-1.c failure. See PR 41089. */ - TREE_THIS_VOLATILE (ofs) = 1; base = build_decl (BUILTINS_LOCATION, FIELD_DECL, get_identifier ("__base"), -- 2.30.2