public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c/63600] New: ice in ix86_expand_sse2_abs
@ 2014-10-20 9:04 dcb314 at hotmail dot com
2014-10-20 12:18 ` [Bug target/63600] [5 Regression] " jakub at gcc dot gnu.org
` (5 more replies)
0 siblings, 6 replies; 7+ messages in thread
From: dcb314 at hotmail dot com @ 2014-10-20 9:04 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63600
Bug ID: 63600
Summary: ice in ix86_expand_sse2_abs
Product: gcc
Version: 5.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c
Assignee: unassigned at gcc dot gnu.org
Reporter: dcb314 at hotmail dot com
Created attachment 33760
--> https://gcc.gnu.org/bugzilla/attachment.cgi?id=33760&action=edit
C source code
I just tried to compile the attached code
on gcc trunk dated 20141019 on an AMD x86_64 box.
The compiler said
bug168.c: In function ‘long_unary_op’:
bug168.c:11345:32: internal compiler error: in ix86_expand_sse2_abs, at
config/i386/i386.c:45977
for (n = 0; n < na; n++) b[n] = (((a[n]) >= 0) ? (a[n]) : -(a[n]));
^
0xf9ff5e ix86_expand_sse2_abs(rtx_def*, rtx_def*)
../../src/trunk/gcc/config/i386/i386.c:45977
0x10c707a gen_absv2di2(rtx_def*, rtx_def*)
../../src/trunk/gcc/config/i386/sse.md:13834
0xb1dc09 insn_gen_fn::operator()(rtx_def*, rtx_def*) const
../../src/trunk/gcc/recog.h:308
0xb1dc09 maybe_gen_insn(insn_code, unsigned int, expand_operand*)
../../src/trunk/gcc/optabs.c:8348
0xb1dc09 expand_unop_direct
Flag -O3 required. The attached code is the same source
code was provided for bug #53749.
>From gcc-bugs-return-464491-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Oct 20 09:04:37 2014
Return-Path: <gcc-bugs-return-464491-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 23046 invoked by alias); 20 Oct 2014 09:04:37 -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 23013 invoked by uid 48); 20 Oct 2014 09:04:32 -0000
From: "sneves at dei dot uc.pt" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/63601] New: Segfault on usage of 'this' in unevaluated context inside lambda
Date: Mon, 20 Oct 2014 09:12:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: new
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: c++
X-Bugzilla-Version: 5.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: sneves at dei dot uc.pt
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
Message-ID: <bug-63601-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-10/txt/msg01512.txt.bz2
Content-length: 575
https://gcc.gnu.org/bugzilla/show_bug.cgi?idc601
Bug ID: 63601
Summary: Segfault on usage of 'this' in unevaluated context
inside lambda
Product: gcc
Version: 5.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c++
Assignee: unassigned at gcc dot gnu.org
Reporter: sneves at dei dot uc.pt
The following minimal example results in an 'ICE: Segmentation fault' in g++
4.8.1, 4.9.1, and 5.0.0 20141019:
auto f = []{ sizeof(this); };
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug target/63600] [5 Regression] ice in ix86_expand_sse2_abs
2014-10-20 9:04 [Bug c/63600] New: ice in ix86_expand_sse2_abs dcb314 at hotmail dot com
@ 2014-10-20 12:18 ` jakub at gcc dot gnu.org
2014-10-22 13:05 ` kyukhin at gcc dot gnu.org
` (4 subsequent siblings)
5 siblings, 0 replies; 7+ messages in thread
From: jakub at gcc dot gnu.org @ 2014-10-20 12:18 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63600
Jakub Jelinek <jakub at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Last reconfirmed| |2014-10-20
CC| |jakub at gcc dot gnu.org
Target Milestone|--- |5.0
Summary|ice in ix86_expand_sse2_abs |[5 Regression] ice in
| |ix86_expand_sse2_abs
Ever confirmed|0 |1
--- Comment #1 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Started with r216255. Reduced testcase for -O3:
long *a, b;
int c;
void
foo (void)
{
for (c = 0; c < 64; c++)
a[c] = b >= 0 ? b : -b;
}
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug target/63600] [5 Regression] ice in ix86_expand_sse2_abs
2014-10-20 9:04 [Bug c/63600] New: ice in ix86_expand_sse2_abs dcb314 at hotmail dot com
2014-10-20 12:18 ` [Bug target/63600] [5 Regression] " jakub at gcc dot gnu.org
@ 2014-10-22 13:05 ` kyukhin at gcc dot gnu.org
2014-10-22 14:23 ` kyukhin at gcc dot gnu.org
` (3 subsequent siblings)
5 siblings, 0 replies; 7+ messages in thread
From: kyukhin at gcc dot gnu.org @ 2014-10-22 13:05 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63600
--- Comment #2 from Kirill Yukhin <kyukhin at gcc dot gnu.org> ---
Created attachment 33779
--> https://gcc.gnu.org/bugzilla/attachment.cgi?id=33779&action=edit
Patch is under testing now.
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug target/63600] [5 Regression] ice in ix86_expand_sse2_abs
2014-10-20 9:04 [Bug c/63600] New: ice in ix86_expand_sse2_abs dcb314 at hotmail dot com
2014-10-20 12:18 ` [Bug target/63600] [5 Regression] " jakub at gcc dot gnu.org
2014-10-22 13:05 ` kyukhin at gcc dot gnu.org
@ 2014-10-22 14:23 ` kyukhin at gcc dot gnu.org
2014-10-23 11:51 ` kyukhin at gcc dot gnu.org
` (2 subsequent siblings)
5 siblings, 0 replies; 7+ messages in thread
From: kyukhin at gcc dot gnu.org @ 2014-10-22 14:23 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63600
--- Comment #4 from Kirill Yukhin <kyukhin at gcc dot gnu.org> ---
(In reply to Jakub Jelinek from comment #3)
> I would have expected VI instead of IV in the iterator name, but I never
> understood the rules for i?86 iterator names.
> And, you want the testcase in the testsuite too.
Agh, right! Thanks. I'll post patch w/ renamed iterator and
a testcase (from this bug)
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug target/63600] [5 Regression] ice in ix86_expand_sse2_abs
2014-10-20 9:04 [Bug c/63600] New: ice in ix86_expand_sse2_abs dcb314 at hotmail dot com
` (2 preceding siblings ...)
2014-10-22 14:23 ` kyukhin at gcc dot gnu.org
@ 2014-10-23 11:51 ` kyukhin at gcc dot gnu.org
2014-10-23 11:54 ` kyukhin at gcc dot gnu.org
2014-10-23 11:59 ` jakub at gcc dot gnu.org
5 siblings, 0 replies; 7+ messages in thread
From: kyukhin at gcc dot gnu.org @ 2014-10-23 11:51 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63600
--- Comment #5 from Kirill Yukhin <kyukhin at gcc dot gnu.org> ---
Created attachment 33793
--> https://gcc.gnu.org/bugzilla/attachment.cgi?id=33793&action=edit
Updated patch + regtest
Will check in after testing is over
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug target/63600] [5 Regression] ice in ix86_expand_sse2_abs
2014-10-20 9:04 [Bug c/63600] New: ice in ix86_expand_sse2_abs dcb314 at hotmail dot com
` (3 preceding siblings ...)
2014-10-23 11:51 ` kyukhin at gcc dot gnu.org
@ 2014-10-23 11:54 ` kyukhin at gcc dot gnu.org
2014-10-23 11:59 ` jakub at gcc dot gnu.org
5 siblings, 0 replies; 7+ messages in thread
From: kyukhin at gcc dot gnu.org @ 2014-10-23 11:54 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63600
--- Comment #6 from Kirill Yukhin <kyukhin at gcc dot gnu.org> ---
(In reply to Kirill Yukhin from comment #5)
> Created attachment 33793 [details]
> Updated patch + regtest
>
> Will check in after testing is over
Checked into main trunk (forgot to put PR into ChangeLogs).
https://gcc.gnu.org/ml/gcc-cvs/2014-10/msg00853.html
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug target/63600] [5 Regression] ice in ix86_expand_sse2_abs
2014-10-20 9:04 [Bug c/63600] New: ice in ix86_expand_sse2_abs dcb314 at hotmail dot com
` (4 preceding siblings ...)
2014-10-23 11:54 ` kyukhin at gcc dot gnu.org
@ 2014-10-23 11:59 ` jakub at gcc dot gnu.org
5 siblings, 0 replies; 7+ messages in thread
From: jakub at gcc dot gnu.org @ 2014-10-23 11:59 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63600
Jakub Jelinek <jakub at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution|--- |FIXED
--- Comment #7 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Author: kyukhin
Date: Thu Oct 23 11:50:19 2014
New Revision: 216591
URL: https://gcc.gnu.org/viewcvs?rev=216591&root=gcc&view=rev
Log:
AVX. Fix block absq emit for non AVX-512 targets.
gcc/
* config/i386/sse.md (define_mode_iterator VI1248_AVX512VL_AVX512BW):
New.
(define_insn "*abs<mode>2"): Use VI1248_AVX512VL_AVX512BW mode
iterator.
(define_expand "abs<mode>2"): Ditto.
gcc/testsuite/
* gcc.target/i386/pr63600.c: New.
Added:
trunk/gcc/testsuite/gcc.target/i386/pr63600.c
Modified:
trunk/gcc/ChangeLog
trunk/gcc/config/i386/sse.md
trunk/gcc/testsuite/ChangeLog
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2014-10-23 11:54 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-10-20 9:04 [Bug c/63600] New: ice in ix86_expand_sse2_abs dcb314 at hotmail dot com
2014-10-20 12:18 ` [Bug target/63600] [5 Regression] " jakub at gcc dot gnu.org
2014-10-22 13:05 ` kyukhin at gcc dot gnu.org
2014-10-22 14:23 ` kyukhin at gcc dot gnu.org
2014-10-23 11:51 ` kyukhin at gcc dot gnu.org
2014-10-23 11:54 ` kyukhin at gcc dot gnu.org
2014-10-23 11:59 ` 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).