* [Bug c/54428] ICE in gimplify_expr, at gimplify.c:7591
2012-08-30 20:28 [Bug c/54428] New: ICE in gimplify_expr, at gimplify.c:7591 kyle.niemeyer at gmail dot com
@ 2012-08-31 5:16 ` polacek at redhat dot com
2012-08-31 5:46 ` polacek at redhat dot com
` (6 subsequent siblings)
7 siblings, 0 replies; 9+ messages in thread
From: polacek at redhat dot com @ 2012-08-31 5:16 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54428
Marek Polacek <polacek at redhat dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |polacek at redhat dot com
--- Comment #1 from Marek Polacek <polacek at redhat dot com> 2012-08-31 05:16:38 UTC ---
Reproduced. Happens with 4.7/trunk, but not 4.6 and older. Only -std=c99 is
needed, with -ffast-math the ICE does not happen.
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug c/54428] ICE in gimplify_expr, at gimplify.c:7591
2012-08-30 20:28 [Bug c/54428] New: ICE in gimplify_expr, at gimplify.c:7591 kyle.niemeyer at gmail dot com
2012-08-31 5:16 ` [Bug c/54428] " polacek at redhat dot com
@ 2012-08-31 5:46 ` polacek at redhat dot com
2012-08-31 6:57 ` [Bug c/54428] [4.7/4.8 Regression] " jakub at gcc dot gnu.org
` (5 subsequent siblings)
7 siblings, 0 replies; 9+ messages in thread
From: polacek at redhat dot com @ 2012-08-31 5:46 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54428
--- Comment #2 from Marek Polacek <polacek at redhat dot com> 2012-08-31 05:46:07 UTC ---
Reduced. Note that the typedef is needed to trigger ICE.
typedef double _Complex fftw_complex;
extern fftw_complex *fftw_alloc_complex (int);
int
cf (int n)
{
int K = 75;
int nf = 1024;
int i;
fftw_complex *w = fftw_alloc_complex (nf);
fftw_complex *f = fftw_alloc_complex (nf);
double S[K * sizeof (double)];
double s_val = S[n];
fftw_complex *b = fftw_alloc_complex (nf);
fftw_complex *rt = fftw_alloc_complex (nf);
for (i = 0; i < nf; ++i)
{
rt[i] = f[i] - s_val * __builtin_cpow (w[i], K) * b[i];
}
}
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug c/54428] [4.7/4.8 Regression] ICE in gimplify_expr, at gimplify.c:7591
2012-08-30 20:28 [Bug c/54428] New: ICE in gimplify_expr, at gimplify.c:7591 kyle.niemeyer at gmail dot com
2012-08-31 5:16 ` [Bug c/54428] " polacek at redhat dot com
2012-08-31 5:46 ` polacek at redhat dot com
@ 2012-08-31 6:57 ` jakub at gcc dot gnu.org
2012-08-31 7:29 ` jakub at gcc dot gnu.org
` (4 subsequent siblings)
7 siblings, 0 replies; 9+ messages in thread
From: jakub at gcc dot gnu.org @ 2012-08-31 6:57 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54428
Jakub Jelinek <jakub at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |ASSIGNED
Last reconfirmed| |2012-08-31
CC| |jakub at gcc dot gnu.org
Target Milestone|--- |4.7.2
Summary|ICE in gimplify_expr, at |[4.7/4.8 Regression] ICE in
|gimplify.c:7591 |gimplify_expr, at
| |gimplify.c:7591
Ever Confirmed|0 |1
--- Comment #3 from Jakub Jelinek <jakub at gcc dot gnu.org> 2012-08-31 06:57:24 UTC ---
Slightly more reduced:
typedef double _Complex C;
C
foo (C x, C y, double *s, double z, C w)
{
return y - z * __builtin_cpow (x, 75) * w;
}
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug c/54428] [4.7/4.8 Regression] ICE in gimplify_expr, at gimplify.c:7591
2012-08-30 20:28 [Bug c/54428] New: ICE in gimplify_expr, at gimplify.c:7591 kyle.niemeyer at gmail dot com
` (2 preceding siblings ...)
2012-08-31 6:57 ` [Bug c/54428] [4.7/4.8 Regression] " jakub at gcc dot gnu.org
@ 2012-08-31 7:29 ` jakub at gcc dot gnu.org
2012-08-31 8:37 ` jakub at gcc dot gnu.org
` (3 subsequent siblings)
7 siblings, 0 replies; 9+ messages in thread
From: jakub at gcc dot gnu.org @ 2012-08-31 7:29 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54428
Jakub Jelinek <jakub at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC|jakub at gcc dot gnu.org |
AssignedTo|unassigned at gcc dot |jakub at gcc dot gnu.org
|gnu.org |
--- Comment #4 from Jakub Jelinek <jakub at gcc dot gnu.org> 2012-08-31 07:29:20 UTC ---
Started with http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=178209
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug c/54428] [4.7/4.8 Regression] ICE in gimplify_expr, at gimplify.c:7591
2012-08-30 20:28 [Bug c/54428] New: ICE in gimplify_expr, at gimplify.c:7591 kyle.niemeyer at gmail dot com
` (3 preceding siblings ...)
2012-08-31 7:29 ` jakub at gcc dot gnu.org
@ 2012-08-31 8:37 ` jakub at gcc dot gnu.org
2012-08-31 19:01 ` jakub at gcc dot gnu.org
` (2 subsequent siblings)
7 siblings, 0 replies; 9+ messages in thread
From: jakub at gcc dot gnu.org @ 2012-08-31 8:37 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54428
--- Comment #5 from Jakub Jelinek <jakub at gcc dot gnu.org> 2012-08-31 08:37:09 UTC ---
Created attachment 28109
--> http://gcc.gnu.org/bugzilla/attachment.cgi?id=28109
gcc48-pr54428.patch
Untested fix.
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug c/54428] [4.7/4.8 Regression] ICE in gimplify_expr, at gimplify.c:7591
2012-08-30 20:28 [Bug c/54428] New: ICE in gimplify_expr, at gimplify.c:7591 kyle.niemeyer at gmail dot com
` (4 preceding siblings ...)
2012-08-31 8:37 ` jakub at gcc dot gnu.org
@ 2012-08-31 19:01 ` jakub at gcc dot gnu.org
2012-09-03 16:04 ` jakub at gcc dot gnu.org
2012-09-03 16:07 ` jakub at gcc dot gnu.org
7 siblings, 0 replies; 9+ messages in thread
From: jakub at gcc dot gnu.org @ 2012-08-31 19:01 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54428
--- Comment #6 from Jakub Jelinek <jakub at gcc dot gnu.org> 2012-08-31 19:01:05 UTC ---
Author: jakub
Date: Fri Aug 31 19:00:59 2012
New Revision: 190840
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=190840
Log:
PR c/54428
* c-convert.c (convert): Don't call fold_convert_loc if
TYPE_MAIN_VARIANT of a COMPLEX_TYPE is the same, unless e
is a COMPLEX_EXPR. Remove TYPE_MAIN_VARIANT check from
COMPLEX_TYPE -> COMPLEX_TYPE conversion.
* gcc.c-torture/compile/pr54428.c: New test.
Added:
trunk/gcc/testsuite/gcc.c-torture/compile/pr54428.c
Modified:
trunk/gcc/c/ChangeLog
trunk/gcc/c/c-convert.c
trunk/gcc/testsuite/ChangeLog
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug c/54428] [4.7/4.8 Regression] ICE in gimplify_expr, at gimplify.c:7591
2012-08-30 20:28 [Bug c/54428] New: ICE in gimplify_expr, at gimplify.c:7591 kyle.niemeyer at gmail dot com
` (5 preceding siblings ...)
2012-08-31 19:01 ` jakub at gcc dot gnu.org
@ 2012-09-03 16:04 ` jakub at gcc dot gnu.org
2012-09-03 16:07 ` jakub at gcc dot gnu.org
7 siblings, 0 replies; 9+ messages in thread
From: jakub at gcc dot gnu.org @ 2012-09-03 16:04 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54428
--- Comment #7 from Jakub Jelinek <jakub at gcc dot gnu.org> 2012-09-03 16:04:25 UTC ---
Author: jakub
Date: Mon Sep 3 16:04:19 2012
New Revision: 190899
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=190899
Log:
Backported from mainline
2012-08-31 Jakub Jelinek <jakub@redhat.com>
PR c/54428
* c-convert.c (convert): Don't call fold_convert_loc if
TYPE_MAIN_VARIANT of a COMPLEX_TYPE is the same, unless e
is a COMPLEX_EXPR. Remove TYPE_MAIN_VARIANT check from
COMPLEX_TYPE -> COMPLEX_TYPE conversion.
* gcc.c-torture/compile/pr54428.c: New test.
Added:
branches/gcc-4_7-branch/gcc/testsuite/gcc.c-torture/compile/pr54428.c
Modified:
branches/gcc-4_7-branch/gcc/ChangeLog
branches/gcc-4_7-branch/gcc/c-convert.c
branches/gcc-4_7-branch/gcc/testsuite/ChangeLog
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug c/54428] [4.7/4.8 Regression] ICE in gimplify_expr, at gimplify.c:7591
2012-08-30 20:28 [Bug c/54428] New: ICE in gimplify_expr, at gimplify.c:7591 kyle.niemeyer at gmail dot com
` (6 preceding siblings ...)
2012-09-03 16:04 ` jakub at gcc dot gnu.org
@ 2012-09-03 16:07 ` jakub at gcc dot gnu.org
7 siblings, 0 replies; 9+ messages in thread
From: jakub at gcc dot gnu.org @ 2012-09-03 16:07 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54428
Jakub Jelinek <jakub at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|ASSIGNED |RESOLVED
Resolution| |FIXED
--- Comment #8 from Jakub Jelinek <jakub at gcc dot gnu.org> 2012-09-03 16:07:23 UTC ---
Fixed.
^ permalink raw reply [flat|nested] 9+ messages in thread