From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 7847 invoked by alias); 29 Jan 2013 17:46:43 -0000 Received: (qmail 7774 invoked by uid 48); 29 Jan 2013 17:46:22 -0000 From: "rth at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/55939] [4.6/4.7/4.8 regression] gcc miscompiles gmp-5.0.5 on m68k-linux Date: Tue, 29 Jan 2013 17:46:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: target X-Bugzilla-Keywords: wrong-code X-Bugzilla-Severity: normal X-Bugzilla-Who: rth 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: 4.6.4 X-Bugzilla-Changed-Fields: Message-ID: 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 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: 2013-01/txt/msg02673.txt.bz2 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55939 --- Comment #13 from Richard Henderson 2013-01-29 17:46:21 UTC --- All hail extended precision, and lack of proper rounding operations (until the 68040 anyway). Aldy's analysis in #c11 suggests that compiling (all of gmp, including the testcase) with -ffloat-store will probably fix this test case. I can't immediately see the bug in gmp, as it looks as if most of the double extraction should be done via integer arithmetic, but perhaps if something went wrong in the configuration one of the fp arithmetic fallback paths is being used accidentially...