From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 1984 invoked by alias); 1 Aug 2010 12:50:36 -0000 Received: (qmail 1915 invoked by uid 48); 1 Aug 2010 12:50:21 -0000 Date: Sun, 01 Aug 2010 12:50:00 -0000 Message-ID: <20100801125021.1914.qmail@sourceware.org> X-Bugzilla-Reason: CC References: Subject: [Bug tree-optimization/41089] [4.5/4.6 Regression] stdarg pass produces wrong code In-Reply-To: Reply-To: gcc-bugzilla@gcc.gnu.org To: gcc-bugs@gcc.gnu.org From: "ubizjak at gmail dot com" Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org X-SW-Source: 2010-08/txt/msg00022.txt.bz2 ------- Comment #47 from ubizjak at gmail dot com 2010-08-01 12:50 ------- (In reply to comment #39) > or alpha could make the va_list struct copies volatile. Or we can > schedule tree-stdarg earlier. Well, following patch fixes remaining gcc.c-torture/execute/stdarg-1.c failure as well: Index: alpha/alpha.c =================================================================== --- alpha/alpha.c (revision 162794) +++ alpha/alpha.c (working copy) @@ -5948,6 +5948,7 @@ alpha_build_builtin_va_list (void) ofs = build_decl (BUILTINS_LOCATION, FIELD_DECL, get_identifier ("__offset"), integer_type_node); + TREE_THIS_VOLATILE (ofs) = 1; DECL_FIELD_CONTEXT (ofs) = record; DECL_CHAIN (ofs) = space; Does this patch makes sense w.r.t to stdarg optimizations? -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=41089