public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c/25911] New: ice in vect_recog_dot_prod_pattern
@ 2006-01-22 14:04 dcb314 at hotmail dot com
2006-01-22 14:05 ` [Bug c/25911] " dcb314 at hotmail dot com
` (8 more replies)
0 siblings, 9 replies; 10+ messages in thread
From: dcb314 at hotmail dot com @ 2006-01-22 14:04 UTC (permalink / raw)
To: gcc-bugs
I just tried to compile package gsl-1.7-2 from Suse Linux with a recent
GNU C compiler version 4.2 snapshot 20060121.
The compiler snapshot said
/home/dcb/gnu/42-20060121/results/bin/gcc -g -O3 -Wall -fmessage-length=0
-DHAVE_CONFIG_H -I. -I. -I.. -I.. -O2 -g -fmessage-length=0 -D_FORTIFY_SOURCE=2
-O3 -finline-limit=720 --param max-inline-insns-auto=160 -ffast-math
-funroll-loops -fno-strict-aliasing -momit-leaf-frame-pointer -funit-at-a-time
-ftree-vectorize -c bessel_Kn.c -fPIC -DPIC -o bessel_Kn.o
bessel_Kn.c: In function sel_Kn.c:103: internal compiler error: in
vect_recog_dot_prod_pattern, at tree-vect-patterns.c:246
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://gcc.gnu.org/bugs.html> for instructions.
It seems that the flags -O2 -ffast-math -ftree-vectorize are required.
Preprocessed source code attached.
--
Summary: ice in vect_recog_dot_prod_pattern
Product: gcc
Version: 4.2.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: dcb314 at hotmail dot com
GCC host triplet: x86_64-suse-linux
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=25911
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug c/25911] ice in vect_recog_dot_prod_pattern
2006-01-22 14:04 [Bug c/25911] New: ice in vect_recog_dot_prod_pattern dcb314 at hotmail dot com
@ 2006-01-22 14:05 ` dcb314 at hotmail dot com
2006-01-23 1:32 ` [Bug tree-optimization/25911] [4.2 Regression] " pinskia at gcc dot gnu dot org
` (7 subsequent siblings)
8 siblings, 0 replies; 10+ messages in thread
From: dcb314 at hotmail dot com @ 2006-01-22 14:05 UTC (permalink / raw)
To: gcc-bugs
------- Comment #1 from dcb314 at hotmail dot com 2006-01-22 14:05 -------
Created an attachment (id=10703)
--> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=10703&action=view)
c source code
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=25911
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug tree-optimization/25911] [4.2 Regression] ice in vect_recog_dot_prod_pattern
2006-01-22 14:04 [Bug c/25911] New: ice in vect_recog_dot_prod_pattern dcb314 at hotmail dot com
2006-01-22 14:05 ` [Bug c/25911] " dcb314 at hotmail dot com
@ 2006-01-23 1:32 ` pinskia at gcc dot gnu dot org
2006-01-23 18:28 ` pinskia at gcc dot gnu dot org
` (6 subsequent siblings)
8 siblings, 0 replies; 10+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2006-01-23 1:32 UTC (permalink / raw)
To: gcc-bugs
--
pinskia at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |pinskia at gcc dot gnu dot
| |org
Component|c |tree-optimization
Keywords| |ice-on-valid-code
Summary|ice in |[4.2 Regression] ice in
|vect_recog_dot_prod_pattern |vect_recog_dot_prod_pattern
Target Milestone|--- |4.2.0
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=25911
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug tree-optimization/25911] [4.2 Regression] ice in vect_recog_dot_prod_pattern
2006-01-22 14:04 [Bug c/25911] New: ice in vect_recog_dot_prod_pattern dcb314 at hotmail dot com
2006-01-22 14:05 ` [Bug c/25911] " dcb314 at hotmail dot com
2006-01-23 1:32 ` [Bug tree-optimization/25911] [4.2 Regression] " pinskia at gcc dot gnu dot org
@ 2006-01-23 18:28 ` pinskia at gcc dot gnu dot org
2006-01-23 18:37 ` pinskia at gcc dot gnu dot org
` (5 subsequent siblings)
8 siblings, 0 replies; 10+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2006-01-23 18:28 UTC (permalink / raw)
To: gcc-bugs
------- Comment #2 from pinskia at gcc dot gnu dot org 2006-01-23 18:28 -------
Reducing.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=25911
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug tree-optimization/25911] [4.2 Regression] ice in vect_recog_dot_prod_pattern
2006-01-22 14:04 [Bug c/25911] New: ice in vect_recog_dot_prod_pattern dcb314 at hotmail dot com
` (2 preceding siblings ...)
2006-01-23 18:28 ` pinskia at gcc dot gnu dot org
@ 2006-01-23 18:37 ` pinskia at gcc dot gnu dot org
2006-01-23 18:42 ` pinskia at gcc dot gnu dot org
` (4 subsequent siblings)
8 siblings, 0 replies; 10+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2006-01-23 18:37 UTC (permalink / raw)
To: gcc-bugs
------- Comment #3 from pinskia at gcc dot gnu dot org 2006-01-23 18:37 -------
Reduced testcase:
double bessel_Kn_scaled_small_x(int n, double x)
{
int k;
double y = 0.25 * x * x;
double ex = exp(x);
double k_term;
double term1, sum1, ln_pre1;
double term2, sum2, pre2;
for(k=1; k<=n-1; k++)
{
k_term *= -y/(k * (n-k));
sum1 += k_term;
}
term1 = 0.5 * exp(ln_pre1) * sum1;
return ex * (term1 + term2);
}
--
pinskia at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Ever Confirmed|0 |1
Last reconfirmed|0000-00-00 00:00:00 |2006-01-23 18:37:52
date| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=25911
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug tree-optimization/25911] [4.2 Regression] ice in vect_recog_dot_prod_pattern
2006-01-22 14:04 [Bug c/25911] New: ice in vect_recog_dot_prod_pattern dcb314 at hotmail dot com
` (3 preceding siblings ...)
2006-01-23 18:37 ` pinskia at gcc dot gnu dot org
@ 2006-01-23 18:42 ` pinskia at gcc dot gnu dot org
2006-01-24 9:10 ` dorit at il dot ibm dot com
` (3 subsequent siblings)
8 siblings, 0 replies; 10+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2006-01-23 18:42 UTC (permalink / raw)
To: gcc-bugs
------- Comment #4 from pinskia at gcc dot gnu dot org 2006-01-23 18:42 -------
Further reduced:
double bessel_Kn_scaled_small_x(int n)
{
int k;
double k_term, sum1;
for(k=1; k<=n-1; k++)
{
k_term *= -1/(k * (n-k));
sum1 += k_term;
}
return sum1;
}
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=25911
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug tree-optimization/25911] [4.2 Regression] ice in vect_recog_dot_prod_pattern
2006-01-22 14:04 [Bug c/25911] New: ice in vect_recog_dot_prod_pattern dcb314 at hotmail dot com
` (4 preceding siblings ...)
2006-01-23 18:42 ` pinskia at gcc dot gnu dot org
@ 2006-01-24 9:10 ` dorit at il dot ibm dot com
2006-01-24 15:26 ` pinskia at gcc dot gnu dot org
` (2 subsequent siblings)
8 siblings, 0 replies; 10+ messages in thread
From: dorit at il dot ibm dot com @ 2006-01-24 9:10 UTC (permalink / raw)
To: gcc-bugs
------- Comment #5 from dorit at il dot ibm dot com 2006-01-24 09:10 -------
Patch:
Index: tree-vect-patterns.c
===================================================================
--- tree-vect-patterns.c (revision 109954)
+++ tree-vect-patterns.c (working copy)
@@ -243,7 +243,8 @@
gcc_assert (stmt);
stmt_vinfo = vinfo_for_stmt (stmt);
gcc_assert (stmt_vinfo);
- gcc_assert (STMT_VINFO_DEF_TYPE (stmt_vinfo) == vect_loop_def);
+ if (STMT_VINFO_DEF_TYPE (stmt_vinfo) != vect_loop_def)
+ return NULL;
expr = TREE_OPERAND (stmt, 1);
if (TREE_CODE (expr) != MULT_EXPR)
return NULL;
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=25911
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug tree-optimization/25911] [4.2 Regression] ice in vect_recog_dot_prod_pattern
2006-01-22 14:04 [Bug c/25911] New: ice in vect_recog_dot_prod_pattern dcb314 at hotmail dot com
` (5 preceding siblings ...)
2006-01-24 9:10 ` dorit at il dot ibm dot com
@ 2006-01-24 15:26 ` pinskia at gcc dot gnu dot org
2006-01-29 16:50 ` dorit at gcc dot gnu dot org
2006-01-29 17:07 ` pinskia at gcc dot gnu dot org
8 siblings, 0 replies; 10+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2006-01-24 15:26 UTC (permalink / raw)
To: gcc-bugs
------- Comment #6 from pinskia at gcc dot gnu dot org 2006-01-24 15:26 -------
Patch posted:
http://gcc.gnu.org/ml/gcc-patches/2006-01/msg01621.html
--
pinskia at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
URL| |http://gcc.gnu.org/ml/gcc-
| |patches/2006-
| |01/msg01621.html
Keywords| |patch
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=25911
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug tree-optimization/25911] [4.2 Regression] ice in vect_recog_dot_prod_pattern
2006-01-22 14:04 [Bug c/25911] New: ice in vect_recog_dot_prod_pattern dcb314 at hotmail dot com
` (6 preceding siblings ...)
2006-01-24 15:26 ` pinskia at gcc dot gnu dot org
@ 2006-01-29 16:50 ` dorit at gcc dot gnu dot org
2006-01-29 17:07 ` pinskia at gcc dot gnu dot org
8 siblings, 0 replies; 10+ messages in thread
From: dorit at gcc dot gnu dot org @ 2006-01-29 16:50 UTC (permalink / raw)
To: gcc-bugs
------- Comment #7 from dorit at gcc dot gnu dot org 2006-01-29 16:50 -------
Subject: Bug 25911
Author: dorit
Date: Sun Jan 29 16:50:05 2006
New Revision: 110377
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=110377
Log:
PR tree-opt/25911
* tree-vect-patterns.c (vect_recog_dot_prod_pattern): Change assert
to an if check.
Added:
trunk/gcc/testsuite/gcc.dg/vect/fast-math-vect-pr25911.c
Modified:
trunk/gcc/ChangeLog
trunk/gcc/testsuite/ChangeLog
trunk/gcc/tree-vect-patterns.c
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=25911
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug tree-optimization/25911] [4.2 Regression] ice in vect_recog_dot_prod_pattern
2006-01-22 14:04 [Bug c/25911] New: ice in vect_recog_dot_prod_pattern dcb314 at hotmail dot com
` (7 preceding siblings ...)
2006-01-29 16:50 ` dorit at gcc dot gnu dot org
@ 2006-01-29 17:07 ` pinskia at gcc dot gnu dot org
8 siblings, 0 replies; 10+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2006-01-29 17:07 UTC (permalink / raw)
To: gcc-bugs
------- Comment #8 from pinskia at gcc dot gnu dot org 2006-01-29 17:06 -------
Fixed.
--
pinskia at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=25911
^ permalink raw reply [flat|nested] 10+ messages in thread
end of thread, other threads:[~2006-01-29 17:07 UTC | newest]
Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-01-22 14:04 [Bug c/25911] New: ice in vect_recog_dot_prod_pattern dcb314 at hotmail dot com
2006-01-22 14:05 ` [Bug c/25911] " dcb314 at hotmail dot com
2006-01-23 1:32 ` [Bug tree-optimization/25911] [4.2 Regression] " pinskia at gcc dot gnu dot org
2006-01-23 18:28 ` pinskia at gcc dot gnu dot org
2006-01-23 18:37 ` pinskia at gcc dot gnu dot org
2006-01-23 18:42 ` pinskia at gcc dot gnu dot org
2006-01-24 9:10 ` dorit at il dot ibm dot com
2006-01-24 15:26 ` pinskia at gcc dot gnu dot org
2006-01-29 16:50 ` dorit at gcc dot gnu dot org
2006-01-29 17:07 ` pinskia at gcc dot gnu dot 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).