From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 31397 invoked by alias); 24 Jan 2009 09:27:31 -0000 Received: (qmail 31365 invoked by uid 48); 24 Jan 2009 09:27:19 -0000 Date: Sat, 24 Jan 2009 09:27:00 -0000 Message-ID: <20090124092719.31364.qmail@sourceware.org> X-Bugzilla-Reason: CC References: Subject: [Bug middle-end/38851] [4.4 regression] Compiler warns about uninitialized variable that is an object with a constructor In-Reply-To: Reply-To: gcc-bugzilla@gcc.gnu.org To: gcc-bugs@gcc.gnu.org From: "rguenth at gcc dot gnu dot org" 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: 2009-01/txt/msg02524.txt.bz2 ------- Comment #9 from rguenth at gcc dot gnu dot org 2009-01-24 09:27 ------- I am testing the following. @@ -4195,7 +4184,8 @@ gimplify_modify_expr (tree *expr_p, gimp side as statements and throw away the assignment. Do this after gimplify_modify_expr_rhs so we handle TARGET_EXPRs of addressable types properly. */ - if (zero_sized_type (TREE_TYPE (*from_p)) && !want_value) + if (int_expr_size (*from_p) == 0 + && !want_value) { gimplify_stmt (from_p, pre_p); gimplify_stmt (to_p, pre_p); -- rguenth at gcc dot gnu dot org changed: What |Removed |Added ---------------------------------------------------------------------------- AssignedTo|unassigned at gcc dot gnu |rguenth at gcc dot gnu dot |dot org |org Status|NEW |ASSIGNED Last reconfirmed|2009-01-21 22:19:31 |2009-01-24 09:27:19 date| | http://gcc.gnu.org/bugzilla/show_bug.cgi?id=38851