From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 6318 invoked by alias); 19 Jun 2013 20:24:11 -0000 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 Received: (qmail 6275 invoked by uid 48); 19 Jun 2013 20:24:05 -0000 From: "meadori at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug middle-end/39246] FAIL: gcc.dg/uninit-13.c Date: Wed, 19 Jun 2013 20:24:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: middle-end X-Bugzilla-Version: 4.4.0 X-Bugzilla-Keywords: diagnostic X-Bugzilla-Severity: normal X-Bugzilla-Who: meadori at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: cc Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2013-06/txt/msg01041.txt.bz2 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39246 meadori at gcc dot gnu.org changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |meadori at gcc dot gnu.org --- Comment #10 from meadori at gcc dot gnu.org --- I just bumped into this again while looking through some XFAILS. I think Andreas' analysis is correct, but I am not sure how to fix the problem. Note that for ARM that the test passes for '-mfloat-abi=hard'. For `arm-none-eabi-gcc -O -Wuninitialized` we get: original ======== { C f; C f; IMAGPART_EXPR = 0.0; return f; } gimple ====== foo () { float D.4063; C f; ; NOTE: The partial store was promoted to a total store which ; introduces the 'REALPART_EXPR ' bit. D.4063 = REALPART_EXPR ; f = COMPLEX_EXPR ; = f; return ; } cplxlower1 ========== foo () { float f$real; C f; : f$real_2 = f$real_6(D); f_3 = COMPLEX_EXPR ; REALPART_EXPR <> = f$real_2; IMAGPART_EXPR <> = 0.0; return ; } dce2 ==== foo () { float f$real; C f; : ; NOTE: Warning about unused variable on next statement, which is ; associated with the 'C f;' declaration because the statements ; below as introduced by cplxlower1 don't have any location info. REALPART_EXPR <> = f$real_6(D); IMAGPART_EXPR <> = 0.0; return ; } For `arm-none-eabi-gcc -O -Wuninitialized -mfloat-abi=hard` things are very similar until we get to complex lowering: gimple ====== foo () { float D.4062; C D.4063; C f; ; NOTE: The partial store was promoted to a total store which ; introduces the 'REALPART_EXPR ' bit. D.4062 = REALPART_EXPR ; f = COMPLEX_EXPR ; D.4063 = f; return D.4063; } cplxlower1 ========== foo () { float f$real; C f; : f$real_2 = f$real_5(D); f_3 = COMPLEX_EXPR ; return f_3; } dce2 ==== foo () { float f$real; C f; : ; NOTE: Warning about unused variable on next statement, ; which is associated with the '__imag__ f = 0;' line. f_3 = COMPLEX_EXPR ; return f_3; }