* [Bug middle-end/59993] [4.9 Regression] ICE: SSA corruption
2014-01-30 11:26 [Bug tree-optimization/59993] New: ICE: SSA corruption rmansfield at qnx dot com
@ 2014-01-30 11:56 ` rguenth at gcc dot gnu.org
2014-01-30 12:28 ` jakub at gcc dot gnu.org
` (8 subsequent siblings)
9 siblings, 0 replies; 11+ messages in thread
From: rguenth at gcc dot gnu.org @ 2014-01-30 11:56 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59993
Richard Biener <rguenth at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Component|tree-optimization |middle-end
Target Milestone|--- |4.9.0
Summary|ICE: SSA corruption |[4.9 Regression] ICE: SSA
| |corruption
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Bug middle-end/59993] [4.9 Regression] ICE: SSA corruption
2014-01-30 11:26 [Bug tree-optimization/59993] New: ICE: SSA corruption rmansfield at qnx dot com
2014-01-30 11:56 ` [Bug middle-end/59993] [4.9 Regression] " rguenth at gcc dot gnu.org
@ 2014-01-30 12:28 ` jakub at gcc dot gnu.org
2014-01-30 12:39 ` rmansfield at qnx dot com
` (7 subsequent siblings)
9 siblings, 0 replies; 11+ messages in thread
From: jakub at gcc dot gnu.org @ 2014-01-30 12:28 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59993
Jakub Jelinek <jakub at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |jakub at gcc dot gnu.org
--- Comment #1 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Can't reproduce this unfortunately.
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Bug middle-end/59993] [4.9 Regression] ICE: SSA corruption
2014-01-30 11:26 [Bug tree-optimization/59993] New: ICE: SSA corruption rmansfield at qnx dot com
2014-01-30 11:56 ` [Bug middle-end/59993] [4.9 Regression] " rguenth at gcc dot gnu.org
2014-01-30 12:28 ` jakub at gcc dot gnu.org
@ 2014-01-30 12:39 ` rmansfield at qnx dot com
2014-01-30 14:20 ` rguenth at gcc dot gnu.org
` (6 subsequent siblings)
9 siblings, 0 replies; 11+ messages in thread
From: rmansfield at qnx dot com @ 2014-01-30 12:39 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59993
--- Comment #2 from Ryan Mansfield <rmansfield at qnx dot com> ---
Started happening after rev207239
http://gcc.gnu.org/viewcvs/gcc?view=revision&revision=207239
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Bug middle-end/59993] [4.9 Regression] ICE: SSA corruption
2014-01-30 11:26 [Bug tree-optimization/59993] New: ICE: SSA corruption rmansfield at qnx dot com
` (2 preceding siblings ...)
2014-01-30 12:39 ` rmansfield at qnx dot com
@ 2014-01-30 14:20 ` rguenth at gcc dot gnu.org
2014-01-30 14:24 ` ramana at gcc dot gnu.org
` (5 subsequent siblings)
9 siblings, 0 replies; 11+ messages in thread
From: rguenth at gcc dot gnu.org @ 2014-01-30 14:20 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59993
Richard Biener <rguenth at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |ASSIGNED
Last reconfirmed| |2014-01-30
Assignee|unassigned at gcc dot gnu.org |rguenth at gcc dot gnu.org
Ever confirmed|0 |1
--- Comment #3 from Richard Biener <rguenth at gcc dot gnu.org> ---
Mine then.
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Bug middle-end/59993] [4.9 Regression] ICE: SSA corruption
2014-01-30 11:26 [Bug tree-optimization/59993] New: ICE: SSA corruption rmansfield at qnx dot com
` (3 preceding siblings ...)
2014-01-30 14:20 ` rguenth at gcc dot gnu.org
@ 2014-01-30 14:24 ` ramana at gcc dot gnu.org
2014-01-30 14:29 ` ramana at gcc dot gnu.org
` (4 subsequent siblings)
9 siblings, 0 replies; 11+ messages in thread
From: ramana at gcc dot gnu.org @ 2014-01-30 14:24 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59993
Ramana Radhakrishnan <ramana at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |ramana at gcc dot gnu.org
--- Comment #4 from Ramana Radhakrishnan <ramana at gcc dot gnu.org> ---
I am seeing the same with a cross compiler configured with
$SRCDIR/configure --target=arm-none-linux-gnueabi --with-arch=armv7-a
--with-fpu=vfpv3-d16 --with-float=softfp --enable-checking=release and a number
of other unrelated flags in a gdbserver build.
Will attach the testcase as I have it and a reduced one in a few minutes.
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Bug middle-end/59993] [4.9 Regression] ICE: SSA corruption
2014-01-30 11:26 [Bug tree-optimization/59993] New: ICE: SSA corruption rmansfield at qnx dot com
` (4 preceding siblings ...)
2014-01-30 14:24 ` ramana at gcc dot gnu.org
@ 2014-01-30 14:29 ` ramana at gcc dot gnu.org
2014-01-30 14:36 ` rguenth at gcc dot gnu.org
` (3 subsequent siblings)
9 siblings, 0 replies; 11+ messages in thread
From: ramana at gcc dot gnu.org @ 2014-01-30 14:29 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59993
--- Comment #5 from Ramana Radhakrishnan <ramana at gcc dot gnu.org> ---
(In reply to Ramana Radhakrishnan from comment #4)
> I am seeing the same with a cross compiler configured with
>
>
> $SRCDIR/configure --target=arm-none-linux-gnueabi --with-arch=armv7-a
> --with-fpu=vfpv3-d16 --with-float=softfp --enable-checking=release and a
> number of other unrelated flags in a gdbserver build.
>
> Will attach the testcase as I have it and a reduced one in a few minutes.
reduced testcase looks very similar to what's here but here goes.
extern struct _IO_FILE *stderr;
struct __jmp_buf_tag
{
};
typedef struct __jmp_buf_tag jmp_buf[1];
extern jmp_buf toplevel;
int
main (int argc, char *argv[])
{
int bad_attach;
int pid;
char *arg_end, *port;
char **next_arg = &argv[1];
volatile int attach = 0;
if (_setjmp (toplevel))
{
}
next_arg++;
{
gdbserver_usage (stderr);
}
{
next_arg++;
}
if (attach
&& (*next_arg == ((void *)0)
|| (pid = strtoul (*next_arg, &arg_end, 0)) == 0
|| next_arg[1] != ((void *)0)))
bad_attach = 1;
}
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Bug middle-end/59993] [4.9 Regression] ICE: SSA corruption
2014-01-30 11:26 [Bug tree-optimization/59993] New: ICE: SSA corruption rmansfield at qnx dot com
` (5 preceding siblings ...)
2014-01-30 14:29 ` ramana at gcc dot gnu.org
@ 2014-01-30 14:36 ` rguenth at gcc dot gnu.org
2014-01-30 14:47 ` rmansfield at qnx dot com
` (2 subsequent siblings)
9 siblings, 0 replies; 11+ messages in thread
From: rguenth at gcc dot gnu.org @ 2014-01-30 14:36 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59993
--- Comment #6 from Richard Biener <rguenth at gcc dot gnu.org> ---
Created attachment 31992
--> http://gcc.gnu.org/bugzilla/attachment.cgi?id=31992&action=edit
patch
Untested patch.
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Bug middle-end/59993] [4.9 Regression] ICE: SSA corruption
2014-01-30 11:26 [Bug tree-optimization/59993] New: ICE: SSA corruption rmansfield at qnx dot com
` (6 preceding siblings ...)
2014-01-30 14:36 ` rguenth at gcc dot gnu.org
@ 2014-01-30 14:47 ` rmansfield at qnx dot com
2014-01-30 18:28 ` rguenth at gcc dot gnu.org
2014-01-31 10:07 ` rguenth at gcc dot gnu.org
9 siblings, 0 replies; 11+ messages in thread
From: rmansfield at qnx dot com @ 2014-01-30 14:47 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59993
--- Comment #7 from Ryan Mansfield <rmansfield at qnx dot com> ---
Comment on attachment 31992
--> http://gcc.gnu.org/bugzilla/attachment.cgi?id=31992
patch
I've confirmed the patch fixes original ICE.
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Bug middle-end/59993] [4.9 Regression] ICE: SSA corruption
2014-01-30 11:26 [Bug tree-optimization/59993] New: ICE: SSA corruption rmansfield at qnx dot com
` (7 preceding siblings ...)
2014-01-30 14:47 ` rmansfield at qnx dot com
@ 2014-01-30 18:28 ` rguenth at gcc dot gnu.org
2014-01-31 10:07 ` rguenth at gcc dot gnu.org
9 siblings, 0 replies; 11+ messages in thread
From: rguenth at gcc dot gnu.org @ 2014-01-30 18:28 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59993
--- Comment #9 from Richard Biener <rguenth at gcc dot gnu.org> ---
Author: rguenth
Date: Thu Jan 30 18:28:19 2014
New Revision: 207316
URL: http://gcc.gnu.org/viewcvs?rev=207316&root=gcc&view=rev
Log:
2014-01-30 Richard Biener <rguenther@suse.de>
PR tree-optimization/59993
* tree-ssa-forwprop.c (associate_pointerplus): Check we
can propagate form the earlier stmt and avoid the transform
when the intermediate result is needed.
* gcc.dg/torture/pr59993.c: New testcase.
Added:
trunk/gcc/testsuite/gcc.dg/torture/pr59993.c
Modified:
trunk/gcc/ChangeLog
trunk/gcc/testsuite/ChangeLog
trunk/gcc/tree-ssa-forwprop.c
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Bug middle-end/59993] [4.9 Regression] ICE: SSA corruption
2014-01-30 11:26 [Bug tree-optimization/59993] New: ICE: SSA corruption rmansfield at qnx dot com
` (8 preceding siblings ...)
2014-01-30 18:28 ` rguenth at gcc dot gnu.org
@ 2014-01-31 10:07 ` rguenth at gcc dot gnu.org
9 siblings, 0 replies; 11+ messages in thread
From: rguenth at gcc dot gnu.org @ 2014-01-31 10:07 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59993
Richard Biener <rguenth at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |gerald at pfeifer dot com
--- Comment #10 from Richard Biener <rguenth at gcc dot gnu.org> ---
*** Bug 59998 has been marked as a duplicate of this bug. ***
^ permalink raw reply [flat|nested] 11+ messages in thread