From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 12779 invoked by alias); 7 Jan 2013 17:28:24 -0000 Received: (qmail 12724 invoked by uid 48); 7 Jan 2013 17:27:57 -0000 From: "jakub at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug middle-end/54120] [4.8 Regression] FAIL: gfortran.fortran-torture/execute/random_2.f90 execution Date: Mon, 07 Jan 2013 17:28: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-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: jakub at gcc dot gnu.org X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Priority: P1 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: 4.8.0 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/msg00548.txt.bz2 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54120 --- Comment #12 from Jakub Jelinek 2013-01-07 17:27:56 UTC --- Created attachment 29100 --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=29100 gcc48-pr54120.patch So, I wrote a fix against r189366, only to find out that Richard Sandiford already fixed it the same way (just different comment): http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=194800 I'm thus attaching just the unimportant other two changes (unimportant because right now range_fits_type_p is always called with unsigned_p = false (so the first problem never happens, the issue is that while say unsigned 8-bit src_type always fits into signed 16-bit, the same isn't true for signed 8-bit src_type and unsigned 16-bit - if min or max is negative in the signed type, it won't fit). And the second issue is after r189366 only pure consistency issue, as CODE_FOR_nothing is always 0. I'd say after with r194800 or later you shouldn't get this failure.