public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug tree-optimization/63835] New: ICE on valid code at -Os and above on x86_64-linux-gnu
@ 2014-11-12 17:28 su at cs dot ucdavis.edu
  2014-11-12 18:57 ` [Bug tree-optimization/63835] " hjl at gcc dot gnu.org
  0 siblings, 1 reply; 2+ messages in thread
From: su at cs dot ucdavis.edu @ 2014-11-12 17:28 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63835

            Bug ID: 63835
           Summary: ICE on valid code at -Os and above on x86_64-linux-gnu
           Product: gcc
           Version: 5.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: tree-optimization
          Assignee: unassigned at gcc dot gnu.org
          Reporter: su at cs dot ucdavis.edu

The following code causes an ICE when compiled with the current gcc trunk at
-Os and above on x86_64-linux-gnu in both 32-bit and 64-bit modes. 

It is a regression from 4.9.x. 

$ gcc-trunk -v
Using built-in specs.
COLLECT_GCC=gcc-trunk
COLLECT_LTO_WRAPPER=/usr/local/gcc-trunk/libexec/gcc/x86_64-unknown-linux-gnu/5.0.0/lto-wrapper
Target: x86_64-unknown-linux-gnu
Configured with: ../gcc-trunk/configure --prefix=/usr/local/gcc-trunk
--enable-languages=c,c++ --disable-werror --enable-multilib
Thread model: posix
gcc version 5.0.0 20141111 (experimental) [trunk revision 217365] (GCC) 

$ 
$ gcc-trunk -O1 -c small.c
$ gcc-4.9 -Os -c small.c
$ 
$ gcc-trunk -Os -c small.c
small.c: In function ‘fn2’:
small.c:13:1: error: non-trivial conversion at assignment
 }
 ^
int
unsigned int
_6 = a.1_3;
small.c:13:1: error: non-trivial conversion at assignment
int
unsigned int
_7 = a.1_3;
small.c:13:1: internal compiler error: verify_gimple failed
0xa87644 verify_gimple_in_cfg(function*, bool)
    ../../gcc-trunk/gcc/tree-cfg.c:5039
0x98fa56 execute_function_todo
    ../../gcc-trunk/gcc/passes.c:1868
0x9904c3 execute_todo
    ../../gcc-trunk/gcc/passes.c:1925
Please submit a full bug report,
with preprocessed source if appropriate.
Please include the complete backtrace with any bug report.
See <http://gcc.gnu.org/bugs.html> for instructions.
$ 


------------------


int a;

int
fn1 (int p)
{
  return -p;
}

void
fn2 ()
{
  fn1 (-(unsigned int) a);
}
>From gcc-bugs-return-466543-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Nov 12 17:53:53 2014
Return-Path: <gcc-bugs-return-466543-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 6031 invoked by alias); 12 Nov 2014 17:53:53 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 5656 invoked by uid 48); 12 Nov 2014 17:53:48 -0000
From: "hjl.tools at gmail dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug tree-optimization/63836] New: [5 Regression] r217349 caused segfault building 178.galgel from cpu2000
Date: Wed, 12 Nov 2014 17:53:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: new
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: tree-optimization
X-Bugzilla-Version: 5.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: hjl.tools at gmail dot com
X-Bugzilla-Status: UNCONFIRMED
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: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter cc
Message-ID: <bug-63836-4@http.gcc.gnu.org/bugzilla/>
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-11/txt/msg01015.txt.bz2
Content-length: 894

https://gcc.gnu.org/bugzilla/show_bug.cgi?idc836

            Bug ID: 63836
           Summary: [5 Regression] r217349 caused segfault building
                    178.galgel from cpu2000
           Product: gcc
           Version: 5.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: tree-optimization
          Assignee: unassigned at gcc dot gnu.org
          Reporter: hjl.tools at gmail dot com
                CC: rguenther at suse dot de

On Linux/x86, r217349 caused:

gfortran -c -o lapak.o  -ffixed-form  -ffixed-line-length-132
-DSPEC_CPU2000_LP64         -O3 -funroll-loops -ffast-math   lapak.f90
...
lapak.f90:10714:0: internal compiler error: verify_gimple failed
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://gcc.gnu.org/bugs.html> for instructions.
specmake: *** [lapak.o] Error 1


^ permalink raw reply	[flat|nested] 2+ messages in thread

* [Bug tree-optimization/63835] ICE on valid code at -Os and above on x86_64-linux-gnu
  2014-11-12 17:28 [Bug tree-optimization/63835] New: ICE on valid code at -Os and above on x86_64-linux-gnu su at cs dot ucdavis.edu
@ 2014-11-12 18:57 ` hjl at gcc dot gnu.org
  0 siblings, 0 replies; 2+ messages in thread
From: hjl at gcc dot gnu.org @ 2014-11-12 18:57 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63835

--- Comment #2 from hjl at gcc dot gnu.org <hjl at gcc dot gnu.org> ---
Author: hjl
Date: Wed Nov 12 18:56:50 2014
New Revision: 217441

URL: https://gcc.gnu.org/viewcvs?rev=217441&root=gcc&view=rev
Log:
Add a testcase for PR tree-optimization/63835

    PR tree-optimization/63835
    * gcc.dg/pr63835.c: New test.

Added:
    trunk/gcc/testsuite/gcc.dg/pr63835.c
Modified:
    trunk/gcc/testsuite/ChangeLog


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2014-11-12 18:57 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-11-12 17:28 [Bug tree-optimization/63835] New: ICE on valid code at -Os and above on x86_64-linux-gnu su at cs dot ucdavis.edu
2014-11-12 18:57 ` [Bug tree-optimization/63835] " hjl at gcc dot gnu.org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).