public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
From: "su at cs dot ucdavis.edu" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c/64809] New: ICE at -O3 with -g enabled on x86_64-linux-gnu (in 32-bit mode)
Date: Tue, 27 Jan 2015 01:11:00 -0000	[thread overview]
Message-ID: <bug-64809-4@http.gcc.gnu.org/bugzilla/> (raw)

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

            Bug ID: 64809
           Summary: ICE at -O3 with -g enabled on x86_64-linux-gnu (in
                    32-bit mode)
           Product: gcc
           Version: 5.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c
          Assignee: unassigned at gcc dot gnu.org
          Reporter: su at cs dot ucdavis.edu

Created attachment 34586
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=34586&action=edit
reduced test case

The attached code causes an ICE when compiled with the current gcc trunk at -O3
with -g enabled on x86_64-linux-gnu in the 32-bit mode (but not in 64-bit
mode). 

This test has been very tough to reduce; the attached (with 6130 bytes) is the
best I was able to get so far. 

This 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 20150126 (experimental) [trunk revision 220102] (GCC) 
$ 
$ rm -f ./a.out 
$ gcc-4.9 -m32 -O3 -g small.c >/dev/null 2>&1
$ ls ./a.out
./a.out
$ rm -f ./a.out
$ gcc-trunk -m32 -O3 small.c >/dev/null 2>&1
$ ls ./a.out
./a.out
$ rm -f ./a.out
$ 
$ 
$ gcc-trunk -m32 -O3 -g small.c > out.txt 2>&1 
$ tail -n 16 out.txt
small.c: In function ‘main’:
small.c:348:1: internal compiler error: Segmentation fault
 main ()
 ^
0xa85e5f crash_signal
    ../../gcc-trunk/gcc/toplev.c:383
0x6afd5b reorder_operands
    ../../gcc-trunk/gcc/cfgexpand.c:5031
0x6bc971 expand_gimple_basic_block
    ../../gcc-trunk/gcc/cfgexpand.c:5091
0x6bdd77 execute
    ../../gcc-trunk/gcc/cfgexpand.c:6003
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.
$
>From gcc-bugs-return-474988-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Jan 27 01:20:20 2015
Return-Path: <gcc-bugs-return-474988-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 4343 invoked by alias); 27 Jan 2015 01:20:18 -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 4272 invoked by uid 48); 27 Jan 2015 01:20:09 -0000
From: "dmalcolm at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug jit/64810] New: jit not working on armv7hl
Date: Tue, 27 Jan 2015 01:20:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: new
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: jit
X-Bugzilla-Version: 5.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: dmalcolm at gcc dot gnu.org
X-Bugzilla-Status: UNCONFIRMED
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: dmalcolm 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 cf_gcchost cf_gcctarget cf_gccbuild
Message-ID: <bug-64810-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: 2015-01/txt/msg02982.txt.bz2
Content-length: 1839

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

            Bug ID: 64810
           Summary: jit not working on armv7hl
           Product: gcc
           Version: 5.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: jit
          Assignee: dmalcolm at gcc dot gnu.org
          Reporter: dmalcolm at gcc dot gnu.org
              Host: armv7hl-redhat-linux-gnueabi
            Target: armv7hl-redhat-linux-gnueabi
             Build: armv7hl-redhat-linux-gnueabi

Jakub did a test build of the jit on armv7hl-redhat-linux-gnueabi:
http://koji.fedoraproject.org/scratch/jakub/task_8710312/logs/armv7hl/build.log

All of the jit test logs show linker failures when creating the "fake.so", of
the form:

    PASSED: test-hello-world.c.exe iteration 1 of 5: set_up_logging: logfile is
non-null
PASS:  test-hello-world.c.exe iteration 1 of 5: set_up_logging: logfile is
non-null
    NOTE: test-hello-world.c.exe iteration 1 of 5: writing reproducer to
./test-hello-world.c.exe.reproducer.c
ld: error: /tmp/libgccjit-ZGemdr/fake.so uses VFP register arguments,
/tmp/ccJFCBsE.o does not
ld: failed to merge target specific data of file /tmp/ccJFCBsE.o
./test-hello-world.c.exe: error: error invoking gcc driver: exit_status: 256
err: 0
./test-hello-world.c.exe: error: whilst attempting to run a driver named:
armv7hl-redhat-linux-gnueabi-gcc-5.0.0
./test-hello-world.c.exe: error: PATH was:
/builddir/build/BUILD/gcc-5.0.0-20150123/obj-armv7hl-redhat-linux-gnueabi/gcc:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/sbin:/builddir/.local/bin:/builddir/bin
    FAILED: test-hello-world.c.exe iteration 1 of 5: verify_code: result is
NULL
FAIL:  test-hello-world.c.exe iteration 1 of 5: verify_code: result is NULL
FAIL: test-hello-world.c.exe killed: 526 exp7 0 0 CHILDKILLED SIGABRT SIGABRT


             reply	other threads:[~2015-01-27  1:11 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-01-27  1:11 su at cs dot ucdavis.edu [this message]
2015-01-27  7:11 ` [Bug middle-end/64809] " trippels at gcc dot gnu.org
2015-01-27  7:14 ` trippels at gcc dot gnu.org
2015-01-27  9:15 ` [Bug middle-end/64809] [5 Regression] " jakub at gcc dot gnu.org
2015-01-27  9:43 ` trippels at gcc dot gnu.org
2015-01-27 10:16 ` jakub at gcc dot gnu.org
2015-01-27 11:13 ` rguenth at gcc dot gnu.org
2015-01-27 16:41 ` ysrumyan at gmail dot com
2015-01-28 11:47 ` ienkovich at gcc dot gnu.org
2015-01-28 14:02 ` jakub at gcc dot gnu.org
2015-01-29 12:21 ` ienkovich at gcc dot gnu.org

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=bug-64809-4@http.gcc.gnu.org/bugzilla/ \
    --to=gcc-bugzilla@gcc.gnu.org \
    --cc=gcc-bugs@gcc.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).