From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 29811 invoked by alias); 19 Oct 2010 23:01:02 -0000 Received: (qmail 29802 invoked by uid 22791); 19 Oct 2010 23:01:01 -0000 X-SWARE-Spam-Status: No, hits=-2.4 required=5.0 tests=ALL_TRUSTED,AWL,BAYES_00,MISSING_MID X-Spam-Check-By: sourceware.org Received: from localhost (HELO gcc.gnu.org) (127.0.0.1) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Tue, 19 Oct 2010 23:00:58 +0000 From: "zsojka at seznam dot cz" To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/44776] FAIL: gcc.dg/matrix/transpose-3.c execution, -fprofile-use -fipa-matrix-reorg -fdump-ipa-matrix-reorg -O3 -fwhole-program X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: tree-optimization X-Bugzilla-Keywords: wrong-code X-Bugzilla-Severity: normal X-Bugzilla-Who: zsojka at seznam dot cz X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Changed-Fields: CC In-Reply-To: References: X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated Content-Type: text/plain; charset="UTF-8" MIME-Version: 1.0 Date: Tue, 19 Oct 2010 23:01:00 -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 X-SW-Source: 2010-10/txt/msg01610.txt.bz2 Message-ID: <20101019230100.ljcxZyVABzoDnhiObbJiz4ySpCMl6lPBubHLLKU3Qvs@z> http://gcc.gnu.org/bugzilla/show_bug.cgi?id=44776 Zdenek Sojka changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |zsojka at seznam dot cz --- Comment #11 from Zdenek Sojka 2010-10-19 23:00:48 UTC --- I am able to reproduce this at x86_64-pc-linux-gnu. Crashes with -fprofile-use with r165699 and r163636. However, valgrind reports invalid operations even without -fprofile-*: (-g is not needed to reproduce) $ gcc -O -fipa-matrix-reorg -fwhole-program transpose-3.i -g $ valgrind -q ./a.out >/dev/null ==28612== Invalid free() / delete / delete[] ==28612== at 0x4C25A2D: free (in /usr/lib64/valgrind/vgpreload_memcheck-amd64-linux.so) ==28612== by 0x40098D: main (transpose-3.c:45) ==28612== Address 0x5185100 is 0 bytes inside a block of size 16 free'd ==28612== at 0x4C25A2D: free (in /usr/lib64/valgrind/vgpreload_memcheck-amd64-linux.so) ==28612== by 0x40098D: main (transpose-3.c:45) ==28612== Removing any of these flags (except -g) makes the problem disappear.