public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug target/57736] New: [4.8/4.9 Regression] ICE in emit_move_insn with __builtin_ia32_rdtsc
@ 2013-06-27 17:11 amonakov at gcc dot gnu.org
2013-06-27 17:13 ` [Bug target/57736] " amonakov at gcc dot gnu.org
` (3 more replies)
0 siblings, 4 replies; 5+ messages in thread
From: amonakov at gcc dot gnu.org @ 2013-06-27 17:11 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=57736
Bug ID: 57736
Summary: [4.8/4.9 Regression] ICE in emit_move_insn with
__builtin_ia32_rdtsc
Product: gcc
Version: 4.8.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: target
Assignee: unassigned at gcc dot gnu.org
Reporter: amonakov at gcc dot gnu.org
CC: uros at gcc dot gnu.org
Regressed with r192589.
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug target/57736] [4.8/4.9 Regression] ICE in emit_move_insn with __builtin_ia32_rdtsc
2013-06-27 17:11 [Bug target/57736] New: [4.8/4.9 Regression] ICE in emit_move_insn with __builtin_ia32_rdtsc amonakov at gcc dot gnu.org
@ 2013-06-27 17:13 ` amonakov at gcc dot gnu.org
2013-06-27 19:20 ` jakub at gcc dot gnu.org
` (2 subsequent siblings)
3 siblings, 0 replies; 5+ messages in thread
From: amonakov at gcc dot gnu.org @ 2013-06-27 17:13 UTC (permalink / raw)
To: gcc-bugs
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain; charset="UTF-8", Size: 6999 bytes --]
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=57736
--- Comment #1 from Alexander Monakov <amonakov at gcc dot gnu.org> ---
Oops, submitted too soon.
echo 'f(){__builtin_ia32_rdtsc();}' | gcc -xc - -S -o-
<stdin>: In function âfâ:
<stdin>:1:25: internal compiler error: in emit_move_insn, at expr.c:3486
0x6d9c63 emit_move_insn(rtx_def*, rtx_def*)
gcc/expr.c:3485
0xb8063c ix86_expand_builtin
gcc/config/i386/i386.c:31916
0x5ef5ec expand_builtin(tree_node*, rtx_def*, rtx_def*, machine_mode, int)
gcc/builtins.c:5807
0x6d420e expand_expr_real_1(tree_node*, rtx_def*, machine_mode,
expand_modifier, rtx_def**)
gcc/expr.c:10207
0x60e5ab expand_call_stmt
gcc/cfgexpand.c:2119
0x60e5ab expand_gimple_stmt_1
gcc/cfgexpand.c:2157
0x60e5ab expand_gimple_stmt
gcc/cfgexpand.c:2309
0x60f3b3 expand_gimple_basic_block
gcc/cfgexpand.c:4143
0x610f84 gimple_expand_cfg
gcc/cfgexpand.c:4662
>From gcc-bugs-return-425316-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Jun 27 17:27:20 2013
Return-Path: <gcc-bugs-return-425316-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 28240 invoked by alias); 27 Jun 2013 17:27:20 -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 28202 invoked by uid 48); 27 Jun 2013 17:27:14 -0000
From: "evgeny.gavrin at hotmail dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug libgomp/57737] New: -fopenmp + -femit-struct-debug-reduced/baseonly = internal compiler error: Segmentation fault
Date: Thu, 27 Jun 2013 17:27:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: new
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: libgomp
X-Bugzilla-Version: 4.7.2
X-Bugzilla-Keywords:
X-Bugzilla-Severity: critical
X-Bugzilla-Who: evgeny.gavrin at hotmail 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 attachments.created
Message-ID: <bug-57737-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2013-06/txt/msg01695.txt.bz2
Content-length: 2105
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=57737
Bug ID: 57737
Summary: -fopenmp + -femit-struct-debug-reduced/baseonly =
internal compiler error: Segmentation fault
Product: gcc
Version: 4.7.2
Status: UNCONFIRMED
Severity: critical
Priority: P3
Component: libgomp
Assignee: unassigned at gcc dot gnu.org
Reporter: evgeny.gavrin at hotmail dot com
CC: jakub at gcc dot gnu.org
Created attachment 30392
--> http://gcc.gnu.org/bugzilla/attachment.cgi?id=30392&action=edit
File to reproduce bug
Compilation of debug-1.c file from ./libgomp/testsuite with the following
options: -g -fopenmp -O0 -gdwarf-2 -femit-struct-debug-reduced - causes
segfault in the compiler.
The described bug is actual for GCC versions 4.4, 4.6, 4.7.
Works for -femit-struct-debug-reduced and -femit-struct-debug-baseonly
I've attached both problem example and preprocessed file to the report.
Console logs:
egavrin@debian:~/dev/vd-issues/report-omp-failtest$ gcc-4.7 -g -fopenmp -O0
-gdwarf-2 -femit-struct-debug-baseonly ./debug-1.c
./debug-1.c: In function âf7._omp_fn.0â:
./debug-1.c:136:11: internal compiler error: Segmentation fault
Please submit a full bug report,
with preprocessed source if appropriate.
See <file:///usr/share/doc/gcc-4.7/README.Bugs> for instructions.
Preprocessed source stored into /tmp/ccWoFu5C.out file, please attach this to
your bugreport.
egavrin@debian:~/dev/vd-issues/report-omp-failtest$ gcc-4.7 -g -fopenmp -O0
-gdwarf-2 -femit-struct-debug-reduced ./debug-1.c
./debug-1.c: In function âf7._omp_fn.0â:
./debug-1.c:136:11: internal compiler error: Segmentation fault
Please submit a full bug report,
with preprocessed source if appropriate.
See <file:///usr/share/doc/gcc-4.7/README.Bugs> for instructions.
Preprocessed source stored into /tmp/ccw1Cilr.out file, please attach this to
your bugreport.
Host system info:
Linux debian 3.2.0-4-amd64 #1 SMP Debian 3.2.41-2+deb7u2 x86_64 GNU/Linux
>From gcc-bugs-return-425317-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Jun 27 17:28:57 2013
Return-Path: <gcc-bugs-return-425317-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 30168 invoked by alias); 27 Jun 2013 17:28:56 -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 30141 invoked by uid 48); 27 Jun 2013 17:28:54 -0000
From: "evgeny.gavrin at hotmail dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug libgomp/57737] -fopenmp + -femit-struct-debug-reduced/baseonly = internal compiler error: Segmentation fault
Date: Thu, 27 Jun 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: libgomp
X-Bugzilla-Version: 4.7.2
X-Bugzilla-Keywords:
X-Bugzilla-Severity: critical
X-Bugzilla-Who: evgeny.gavrin at hotmail 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: attachments.created
Message-ID: <bug-57737-4-To92NrltSH@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-57737-4@http.gcc.gnu.org/bugzilla/>
References: <bug-57737-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: 2013-06/txt/msg01696.txt.bz2
Content-length: 238
http://gcc.gnu.org/bugzilla/show_bug.cgi?idW737
--- Comment #1 from Evgeny Gavrin <evgeny.gavrin at hotmail dot com> ---
Created attachment 30393
--> http://gcc.gnu.org/bugzilla/attachment.cgi?id0393&actioníit
preprocessed file
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug target/57736] [4.8/4.9 Regression] ICE in emit_move_insn with __builtin_ia32_rdtsc
2013-06-27 17:11 [Bug target/57736] New: [4.8/4.9 Regression] ICE in emit_move_insn with __builtin_ia32_rdtsc amonakov at gcc dot gnu.org
2013-06-27 17:13 ` [Bug target/57736] " amonakov at gcc dot gnu.org
@ 2013-06-27 19:20 ` jakub at gcc dot gnu.org
2013-06-27 19:22 ` jakub at gcc dot gnu.org
2013-06-28 20:27 ` jakub at gcc dot gnu.org
3 siblings, 0 replies; 5+ messages in thread
From: jakub at gcc dot gnu.org @ 2013-06-27 19:20 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=57736
Jakub Jelinek <jakub at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |jakub at gcc dot gnu.org
Target Milestone|--- |4.8.2
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug target/57736] [4.8/4.9 Regression] ICE in emit_move_insn with __builtin_ia32_rdtsc
2013-06-27 17:11 [Bug target/57736] New: [4.8/4.9 Regression] ICE in emit_move_insn with __builtin_ia32_rdtsc amonakov at gcc dot gnu.org
2013-06-27 17:13 ` [Bug target/57736] " amonakov at gcc dot gnu.org
2013-06-27 19:20 ` jakub at gcc dot gnu.org
@ 2013-06-27 19:22 ` jakub at gcc dot gnu.org
2013-06-28 20:27 ` jakub at gcc dot gnu.org
3 siblings, 0 replies; 5+ messages in thread
From: jakub at gcc dot gnu.org @ 2013-06-27 19:22 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=57736
Jakub Jelinek <jakub at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |ASSIGNED
Last reconfirmed| |2013-06-27
Assignee|unassigned at gcc dot gnu.org |jakub at gcc dot gnu.org
Ever confirmed|0 |1
--- Comment #2 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Created attachment 30397
--> http://gcc.gnu.org/bugzilla/attachment.cgi?id=30397&action=edit
gcc49-pr57736.patch
Untested fix. If target == NULL and mode == VOIDmode, then this is a return
value ignored call. Some of the calls like __builtin_nanq etc. are const and
thus will be optimized away even at -O0 when lhs is missing, but as rdtsc{,p}
and rdpmc aren't const/pure, they are kept.
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug target/57736] [4.8/4.9 Regression] ICE in emit_move_insn with __builtin_ia32_rdtsc
2013-06-27 17:11 [Bug target/57736] New: [4.8/4.9 Regression] ICE in emit_move_insn with __builtin_ia32_rdtsc amonakov at gcc dot gnu.org
` (2 preceding siblings ...)
2013-06-27 19:22 ` jakub at gcc dot gnu.org
@ 2013-06-28 20:27 ` jakub at gcc dot gnu.org
3 siblings, 0 replies; 5+ messages in thread
From: jakub at gcc dot gnu.org @ 2013-06-28 20:27 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=57736
Jakub Jelinek <jakub at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|ASSIGNED |RESOLVED
Resolution|--- |FIXED
--- Comment #3 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Author: jakub
Date: Fri Jun 28 20:25:35 2013
New Revision: 200555
URL: http://gcc.gnu.org/viewcvs?rev=200555&root=gcc&view=rev
Log:
PR target/57736
* config/i386/i386.c (ix86_expand_builtin): If target == NULL
and mode is VOIDmode, don't create a VOIDmode pseudo to copy result
into.
* gcc.target/i386/pr57736.c: New test.
Added:
trunk/gcc/testsuite/gcc.target/i386/pr57736.c
Modified:
trunk/gcc/ChangeLog
trunk/gcc/config/i386/i386.c
trunk/gcc/testsuite/ChangeLog
Author: jakub
Date: Fri Jun 28 20:26:27 2013
New Revision: 200556
URL: http://gcc.gnu.org/viewcvs?rev=200556&root=gcc&view=rev
Log:
PR target/57736
* config/i386/i386.c (ix86_expand_builtin): If target == NULL
and mode is VOIDmode, don't create a VOIDmode pseudo to copy result
into.
* gcc.target/i386/pr57736.c: New test.
Added:
branches/gcc-4_8-branch/gcc/testsuite/gcc.target/i386/pr57736.c
Modified:
branches/gcc-4_8-branch/gcc/ChangeLog
branches/gcc-4_8-branch/gcc/config/i386/i386.c
branches/gcc-4_8-branch/gcc/testsuite/ChangeLog
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2013-06-28 20:27 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-06-27 17:11 [Bug target/57736] New: [4.8/4.9 Regression] ICE in emit_move_insn with __builtin_ia32_rdtsc amonakov at gcc dot gnu.org
2013-06-27 17:13 ` [Bug target/57736] " amonakov at gcc dot gnu.org
2013-06-27 19:20 ` jakub at gcc dot gnu.org
2013-06-27 19:22 ` jakub at gcc dot gnu.org
2013-06-28 20:27 ` jakub 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).