From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 10940 invoked by alias); 15 Dec 2014 13:11:13 -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 10875 invoked by uid 48); 15 Dec 2014 13:11:08 -0000 From: "rguenth at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/14541] [tree-ssa] built-in math functions are not fully optimized at tree level Date: Mon, 15 Dec 2014 13:11:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: tree-optimization X-Bugzilla-Version: tree-ssa X-Bugzilla-Keywords: missed-optimization X-Bugzilla-Severity: enhancement X-Bugzilla-Who: rguenth at gcc dot gnu.org X-Bugzilla-Status: ASSIGNED X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: rguenth at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: 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: 2014-12/txt/msg01735.txt.bz2 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=14541 --- Comment #24 from Richard Biener --- (In reply to ktkachov from comment #23) > (In reply to Richard Biener from comment #22) > > (In reply to ktkachov from comment #21) > > > Created attachment 34215 [details] > > > Link errors output for aarch64 > > > > > > > Which one exactly? That is, what is the failing link output? > > > > > > All of them AFAICS. I'm attaching the link failures log. > > > > > > The test PASSes at -O2 -flto and -O2 -flto -flto-partition=none > > > > > > but FAILs on all other torture options > > > > With a cross to aarch64-linux and compiling with -O1+ -ffast-math the > > result is as expected (optimized to empty functions). How exactly > > do you configure? I used > > > > /space/rguenther/src/svn/trunk2/configure --target=aarch64-suse-linux > > --enable-languages=c,c++,fortran --enable-checking > > Hmmm... My compiler is a bare-metal one: aarch64-none-elf (and I still see > these failures). > > With an aarch64-none-linux-gnu compiler the testcase works fine... I have opened PR64313 for this regression.