* [Bug c/42956] internal compiler error: Segmentation fault with -O1
2010-02-04 14:22 [Bug c/42956] New: internal compiler error: Segmentation fault with -O1 peb at mppmu dot mpg dot de
@ 2010-02-04 14:27 ` peb at mppmu dot mpg dot de
2010-02-04 14:27 ` paolo dot carlini at oracle dot com
` (11 subsequent siblings)
12 siblings, 0 replies; 14+ messages in thread
From: peb at mppmu dot mpg dot de @ 2010-02-04 14:27 UTC (permalink / raw)
To: gcc-bugs
------- Comment #2 from peb at mppmu dot mpg dot de 2010-02-04 14:27 -------
Created an attachment (id=19804)
--> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=19804&action=view)
preprocessed source
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=42956
^ permalink raw reply [flat|nested] 14+ messages in thread
* [Bug c/42956] internal compiler error: Segmentation fault with -O1
2010-02-04 14:22 [Bug c/42956] New: internal compiler error: Segmentation fault with -O1 peb at mppmu dot mpg dot de
2010-02-04 14:27 ` [Bug c/42956] " peb at mppmu dot mpg dot de
@ 2010-02-04 14:27 ` paolo dot carlini at oracle dot com
2010-02-04 14:31 ` paolo dot carlini at oracle dot com
` (10 subsequent siblings)
12 siblings, 0 replies; 14+ messages in thread
From: paolo dot carlini at oracle dot com @ 2010-02-04 14:27 UTC (permalink / raw)
To: gcc-bugs
------- Comment #1 from paolo dot carlini at oracle dot com 2010-02-04 14:26 -------
Please follow the instructions here
http://gcc.gnu.org/bugs/#report
provide a preprocessed file. Thanks.
--
paolo dot carlini at oracle dot com changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |WAITING
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=42956
^ permalink raw reply [flat|nested] 14+ messages in thread
* [Bug c/42956] internal compiler error: Segmentation fault with -O1
2010-02-04 14:22 [Bug c/42956] New: internal compiler error: Segmentation fault with -O1 peb at mppmu dot mpg dot de
2010-02-04 14:27 ` [Bug c/42956] " peb at mppmu dot mpg dot de
2010-02-04 14:27 ` paolo dot carlini at oracle dot com
@ 2010-02-04 14:31 ` paolo dot carlini at oracle dot com
2010-02-04 15:44 ` [Bug tree-optimization/42956] [4.4/4.5 Regression] " rguenth at gcc dot gnu dot org
` (9 subsequent siblings)
12 siblings, 0 replies; 14+ messages in thread
From: paolo dot carlini at oracle dot com @ 2010-02-04 14:31 UTC (permalink / raw)
To: gcc-bugs
--
paolo dot carlini at oracle dot com changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|WAITING |NEW
Ever Confirmed|0 |1
Last reconfirmed|0000-00-00 00:00:00 |2010-02-04 14:30:49
date| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=42956
^ permalink raw reply [flat|nested] 14+ messages in thread
* [Bug tree-optimization/42956] [4.4/4.5 Regression] internal compiler error: Segmentation fault with -O1
2010-02-04 14:22 [Bug c/42956] New: internal compiler error: Segmentation fault with -O1 peb at mppmu dot mpg dot de
` (2 preceding siblings ...)
2010-02-04 14:31 ` paolo dot carlini at oracle dot com
@ 2010-02-04 15:44 ` rguenth at gcc dot gnu dot org
2010-02-04 15:54 ` rguenth at gcc dot gnu dot org
` (8 subsequent siblings)
12 siblings, 0 replies; 14+ messages in thread
From: rguenth at gcc dot gnu dot org @ 2010-02-04 15:44 UTC (permalink / raw)
To: gcc-bugs
------- Comment #3 from rguenth at gcc dot gnu dot org 2010-02-04 15:44 -------
Confirmed at -O2. Reducing.
../Cuba-1.6/src/divonne/Split.c: In function 'Split':
../Cuba-1.6/src/divonne/Split.c:275:13: error: expected an SSA_NAME object
../Cuba-1.6/src/divonne/Split.c:275:13: error: in statement
D.15203_353 = D.8489 /[ex] 8;
../Cuba-1.6/src/divonne/Split.c:275:13: internal compiler error: verify_ssa
failed
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://gcc.gnu.org/bugs.html> for instructions.
--
rguenth at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Component|c |tree-optimization
Keywords| |ice-on-valid-code
Known to fail| |4.4.3 4.5.0
Known to work| |4.3.5 4.4.2
Summary|internal compiler error: |[4.4/4.5 Regression]
|Segmentation fault with -O1 |internal compiler error:
| |Segmentation fault with -O1
Target Milestone|--- |4.4.4
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=42956
^ permalink raw reply [flat|nested] 14+ messages in thread
* [Bug tree-optimization/42956] [4.4/4.5 Regression] internal compiler error: Segmentation fault with -O1
2010-02-04 14:22 [Bug c/42956] New: internal compiler error: Segmentation fault with -O1 peb at mppmu dot mpg dot de
` (3 preceding siblings ...)
2010-02-04 15:44 ` [Bug tree-optimization/42956] [4.4/4.5 Regression] " rguenth at gcc dot gnu dot org
@ 2010-02-04 15:54 ` rguenth at gcc dot gnu dot org
2010-02-05 14:59 ` rguenth at gcc dot gnu dot org
` (7 subsequent siblings)
12 siblings, 0 replies; 14+ messages in thread
From: rguenth at gcc dot gnu dot org @ 2010-02-04 15:54 UTC (permalink / raw)
To: gcc-bugs
------- Comment #4 from rguenth at gcc dot gnu dot org 2010-02-04 15:54 -------
typedef const int cint;
typedef struct {
} Bounds;
int ndim_, ncomp_, selectedcomp_, nregions_;
void *voidregion_;
typedef struct {
double diff, err, spread;
} Errors;
typedef const Errors cErrors;
void Split(int iregion, int depth, int xregion)
{
typedef struct {
double avg, err, spread, chisq;
double xmin[ndim_], xmax[ndim_];
} Result;
typedef struct region {
Result result[ncomp_];
} Region;
Errors errors[ncomp_];
int comp, ireg, xreg;
double tmp;
for( ireg = iregion, xreg = xregion; ireg < nregions_; ireg = xreg++ )
{
Result *result = ((Region *)voidregion_)[ireg].result;
for( comp = 0; comp < ncomp_; ++comp )
{
Result *r = &result[comp];
cErrors *e = &errors[comp];
double c = tmp*e->diff;
if( r->err > 0 ) r->err = r->err*e->err + c;
}
}
}
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=42956
^ permalink raw reply [flat|nested] 14+ messages in thread
* [Bug tree-optimization/42956] [4.4/4.5 Regression] internal compiler error: Segmentation fault with -O1
2010-02-04 14:22 [Bug c/42956] New: internal compiler error: Segmentation fault with -O1 peb at mppmu dot mpg dot de
` (4 preceding siblings ...)
2010-02-04 15:54 ` rguenth at gcc dot gnu dot org
@ 2010-02-05 14:59 ` rguenth at gcc dot gnu dot org
2010-02-07 13:43 ` [Bug tree-optimization/42956] [4.4 " rguenth at gcc dot gnu dot org
` (6 subsequent siblings)
12 siblings, 0 replies; 14+ messages in thread
From: rguenth at gcc dot gnu dot org @ 2010-02-05 14:59 UTC (permalink / raw)
To: gcc-bugs
------- Comment #5 from rguenth at gcc dot gnu dot org 2010-02-05 14:59 -------
Mine.
--
rguenth at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
AssignedTo|unassigned at gcc dot gnu |rguenth at gcc dot gnu dot
|dot org |org
Status|NEW |ASSIGNED
Last reconfirmed|2010-02-04 14:30:49 |2010-02-05 14:59:04
date| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=42956
^ permalink raw reply [flat|nested] 14+ messages in thread
* [Bug tree-optimization/42956] [4.4 Regression] internal compiler error: Segmentation fault with -O1
2010-02-04 14:22 [Bug c/42956] New: internal compiler error: Segmentation fault with -O1 peb at mppmu dot mpg dot de
` (5 preceding siblings ...)
2010-02-05 14:59 ` rguenth at gcc dot gnu dot org
@ 2010-02-07 13:43 ` rguenth at gcc dot gnu dot org
2010-02-07 13:43 ` [Bug tree-optimization/42956] [4.4/4.5 " rguenth at gcc dot gnu dot org
` (5 subsequent siblings)
12 siblings, 0 replies; 14+ messages in thread
From: rguenth at gcc dot gnu dot org @ 2010-02-07 13:43 UTC (permalink / raw)
To: gcc-bugs
------- Comment #7 from rguenth at gcc dot gnu dot org 2010-02-07 13:43 -------
Fixed for 4.5.0 sofar.
--
rguenth at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Known to fail|4.4.3 4.5.0 |4.4.3
Known to work|4.3.5 4.4.2 |4.3.5 4.4.2 4.5.0
Summary|[4.4/4.5 Regression] |[4.4 Regression] internal
|internal compiler error: |compiler error: Segmentation
|Segmentation fault with -O1 |fault with -O1
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=42956
^ permalink raw reply [flat|nested] 14+ messages in thread
* [Bug tree-optimization/42956] [4.4/4.5 Regression] internal compiler error: Segmentation fault with -O1
2010-02-04 14:22 [Bug c/42956] New: internal compiler error: Segmentation fault with -O1 peb at mppmu dot mpg dot de
` (6 preceding siblings ...)
2010-02-07 13:43 ` [Bug tree-optimization/42956] [4.4 " rguenth at gcc dot gnu dot org
@ 2010-02-07 13:43 ` rguenth at gcc dot gnu dot org
2010-02-07 13:44 ` [Bug tree-optimization/42956] [4.4 " rguenth at gcc dot gnu dot org
` (4 subsequent siblings)
12 siblings, 0 replies; 14+ messages in thread
From: rguenth at gcc dot gnu dot org @ 2010-02-07 13:43 UTC (permalink / raw)
To: gcc-bugs
------- Comment #6 from rguenth at gcc dot gnu dot org 2010-02-07 13:43 -------
Subject: Bug 42956
Author: rguenth
Date: Sun Feb 7 13:42:52 2010
New Revision: 156571
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=156571
Log:
2010-02-07 Richard Guenther <rguenther@suse.de>
PR middle-end/42956
* gimplify.c (gimple_fold_indirect_ref): Avoid generating
new ARRAY_REFs on variable size element or minimal index arrays.
Complete.
* tree-ssa-loop-ivopts.c (find_interesting_uses_address): Use
gimple_fold_indirect_ref.
* gcc.c-torture/compile/pr42956.c: New testcase.
Added:
trunk/gcc/testsuite/gcc.c-torture/compile/pr42956.c
Modified:
trunk/gcc/ChangeLog
trunk/gcc/gimplify.c
trunk/gcc/testsuite/ChangeLog
trunk/gcc/tree-ssa-loop-ivopts.c
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=42956
^ permalink raw reply [flat|nested] 14+ messages in thread
* [Bug tree-optimization/42956] [4.4 Regression] internal compiler error: Segmentation fault with -O1
2010-02-04 14:22 [Bug c/42956] New: internal compiler error: Segmentation fault with -O1 peb at mppmu dot mpg dot de
` (7 preceding siblings ...)
2010-02-07 13:43 ` [Bug tree-optimization/42956] [4.4/4.5 " rguenth at gcc dot gnu dot org
@ 2010-02-07 13:44 ` rguenth at gcc dot gnu dot org
2010-03-21 14:35 ` steven at gcc dot gnu dot org
` (3 subsequent siblings)
12 siblings, 0 replies; 14+ messages in thread
From: rguenth at gcc dot gnu dot org @ 2010-02-07 13:44 UTC (permalink / raw)
To: gcc-bugs
------- Comment #8 from rguenth at gcc dot gnu dot org 2010-02-07 13:43 -------
P1 for a regression on a release branch.
--
rguenth at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Priority|P3 |P1
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=42956
^ permalink raw reply [flat|nested] 14+ messages in thread
* [Bug tree-optimization/42956] [4.4 Regression] internal compiler error: Segmentation fault with -O1
2010-02-04 14:22 [Bug c/42956] New: internal compiler error: Segmentation fault with -O1 peb at mppmu dot mpg dot de
` (8 preceding siblings ...)
2010-02-07 13:44 ` [Bug tree-optimization/42956] [4.4 " rguenth at gcc dot gnu dot org
@ 2010-03-21 14:35 ` steven at gcc dot gnu dot org
2010-04-01 13:21 ` rguenth at gcc dot gnu dot org
` (2 subsequent siblings)
12 siblings, 0 replies; 14+ messages in thread
From: steven at gcc dot gnu dot org @ 2010-03-21 14:35 UTC (permalink / raw)
To: gcc-bugs
------- Comment #9 from steven at gcc dot gnu dot org 2010-03-21 14:35 -------
Still needs to be applied to GCC 4.4.
--
steven at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Keywords| |patch
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=42956
^ permalink raw reply [flat|nested] 14+ messages in thread
* [Bug tree-optimization/42956] [4.4 Regression] internal compiler error: Segmentation fault with -O1
2010-02-04 14:22 [Bug c/42956] New: internal compiler error: Segmentation fault with -O1 peb at mppmu dot mpg dot de
` (9 preceding siblings ...)
2010-03-21 14:35 ` steven at gcc dot gnu dot org
@ 2010-04-01 13:21 ` rguenth at gcc dot gnu dot org
2010-04-08 11:47 ` rguenth at gcc dot gnu dot org
2010-04-08 11:48 ` rguenth at gcc dot gnu dot org
12 siblings, 0 replies; 14+ messages in thread
From: rguenth at gcc dot gnu dot org @ 2010-04-01 13:21 UTC (permalink / raw)
To: gcc-bugs
------- Comment #10 from rguenth at gcc dot gnu dot org 2010-04-01 13:20 -------
The "Complete." part shouldn't be backported.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=42956
^ permalink raw reply [flat|nested] 14+ messages in thread
* [Bug tree-optimization/42956] [4.4 Regression] internal compiler error: Segmentation fault with -O1
2010-02-04 14:22 [Bug c/42956] New: internal compiler error: Segmentation fault with -O1 peb at mppmu dot mpg dot de
` (10 preceding siblings ...)
2010-04-01 13:21 ` rguenth at gcc dot gnu dot org
@ 2010-04-08 11:47 ` rguenth at gcc dot gnu dot org
2010-04-08 11:48 ` rguenth at gcc dot gnu dot org
12 siblings, 0 replies; 14+ messages in thread
From: rguenth at gcc dot gnu dot org @ 2010-04-08 11:47 UTC (permalink / raw)
To: gcc-bugs
------- Comment #11 from rguenth at gcc dot gnu dot org 2010-04-08 11:47 -------
Subject: Bug 42956
Author: rguenth
Date: Thu Apr 8 11:47:13 2010
New Revision: 158123
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=158123
Log:
2010-04-08 Richard Guenther <rguenther@suse.de>
PR middle-end/42956
* gimplify.c (gimple_fold_indirect_ref): Avoid generating
new ARRAY_REFs on variable size element or minimal index arrays.
* tree-ssa-loop-ivopts.c (find_interesting_uses_address): Use
gimple_fold_indirect_ref.
* gcc.c-torture/compile/pr42956.c: New testcase.
Added:
branches/gcc-4_4-branch/gcc/testsuite/gcc.c-torture/compile/pr42956.c
Modified:
branches/gcc-4_4-branch/gcc/ChangeLog
branches/gcc-4_4-branch/gcc/gimplify.c
branches/gcc-4_4-branch/gcc/testsuite/ChangeLog
branches/gcc-4_4-branch/gcc/tree-ssa-loop-ivopts.c
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=42956
^ permalink raw reply [flat|nested] 14+ messages in thread
* [Bug tree-optimization/42956] [4.4 Regression] internal compiler error: Segmentation fault with -O1
2010-02-04 14:22 [Bug c/42956] New: internal compiler error: Segmentation fault with -O1 peb at mppmu dot mpg dot de
` (11 preceding siblings ...)
2010-04-08 11:47 ` rguenth at gcc dot gnu dot org
@ 2010-04-08 11:48 ` rguenth at gcc dot gnu dot org
12 siblings, 0 replies; 14+ messages in thread
From: rguenth at gcc dot gnu dot org @ 2010-04-08 11:48 UTC (permalink / raw)
To: gcc-bugs
------- Comment #12 from rguenth at gcc dot gnu dot org 2010-04-08 11:47 -------
Fixed.
--
rguenth at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|ASSIGNED |RESOLVED
Resolution| |FIXED
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=42956
^ permalink raw reply [flat|nested] 14+ messages in thread