public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug tree-optimization/59038] New: [4.9 Regression] r204398 causes 186.crafty init.c to be miscompiled
@ 2013-11-07 12:30 rguenth at gcc dot gnu.org
2013-11-07 13:15 ` [Bug tree-optimization/59038] " rguenth at gcc dot gnu.org
` (3 more replies)
0 siblings, 4 replies; 5+ messages in thread
From: rguenth at gcc dot gnu.org @ 2013-11-07 12:30 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59038
Bug ID: 59038
Summary: [4.9 Regression] r204398 causes 186.crafty init.c to
be miscompiled
Product: gcc
Version: 4.9.0
Status: UNCONFIRMED
Keywords: wrong-code
Severity: normal
Priority: P3
Component: tree-optimization
Assignee: unassigned at gcc dot gnu.org
Reporter: rguenth at gcc dot gnu.org
-fno-tree-loop-distribute-patterns fixes it. Trying to reduce.
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug tree-optimization/59038] [4.9 Regression] r204398 causes 186.crafty init.c to be miscompiled
2013-11-07 12:30 [Bug tree-optimization/59038] New: [4.9 Regression] r204398 causes 186.crafty init.c to be miscompiled rguenth at gcc dot gnu.org
@ 2013-11-07 13:15 ` rguenth at gcc dot gnu.org
2013-11-08 8:44 ` rguenth at gcc dot gnu.org
` (2 subsequent siblings)
3 siblings, 0 replies; 5+ messages in thread
From: rguenth at gcc dot gnu.org @ 2013-11-07 13:15 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59038
--- Comment #1 from Richard Biener <rguenth at gcc dot gnu.org> ---
extern void abort (void);
unsigned char first_ones_8bit[256];
unsigned char connected_passed[256];
int
main ()
{
int i, j;
for (i=0;i<256;i++){
connected_passed[i]=0;
first_ones_8bit[i]=0;
for (j=7;j>0;j--){
if ((i & (3<<(7-j))) == (3<<(7-j))){
connected_passed[i]=j;
break;
}
}
}
if (connected_passed[3] != 7)
abort ();
return 0;
}
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug tree-optimization/59038] [4.9 Regression] r204398 causes 186.crafty init.c to be miscompiled
2013-11-07 12:30 [Bug tree-optimization/59038] New: [4.9 Regression] r204398 causes 186.crafty init.c to be miscompiled rguenth at gcc dot gnu.org
2013-11-07 13:15 ` [Bug tree-optimization/59038] " rguenth at gcc dot gnu.org
@ 2013-11-08 8:44 ` rguenth at gcc dot gnu.org
2013-11-08 8:45 ` rguenth at gcc dot gnu.org
2013-11-08 10:34 ` rguenth at gcc dot gnu.org
3 siblings, 0 replies; 5+ messages in thread
From: rguenth at gcc dot gnu.org @ 2013-11-08 8:44 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59038
Richard Biener <rguenth at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|ASSIGNED |RESOLVED
Resolution|--- |FIXED
--- Comment #3 from Richard Biener <rguenth at gcc dot gnu.org> ---
Fixed.
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug tree-optimization/59038] [4.9 Regression] r204398 causes 186.crafty init.c to be miscompiled
2013-11-07 12:30 [Bug tree-optimization/59038] New: [4.9 Regression] r204398 causes 186.crafty init.c to be miscompiled rguenth at gcc dot gnu.org
2013-11-07 13:15 ` [Bug tree-optimization/59038] " rguenth at gcc dot gnu.org
2013-11-08 8:44 ` rguenth at gcc dot gnu.org
@ 2013-11-08 8:45 ` rguenth at gcc dot gnu.org
2013-11-08 10:34 ` rguenth at gcc dot gnu.org
3 siblings, 0 replies; 5+ messages in thread
From: rguenth at gcc dot gnu.org @ 2013-11-08 8:45 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59038
--- Comment #2 from Richard Biener <rguenth at gcc dot gnu.org> ---
Author: rguenth
Date: Fri Nov 8 08:44:02 2013
New Revision: 204561
URL: http://gcc.gnu.org/viewcvs?rev=204561&root=gcc&view=rev
Log:
2013-11-08 Richard Biener <rguenther@suse.de>
PR tree-optimization/59038
PR tree-optimization/58955
* tree-loop-distribution.c (pg_add_dependence_edges): Revert
previous change. Handle known dependences correctly.
* gcc.dg/torture/pr59038.c: New testcase.
Added:
trunk/gcc/testsuite/gcc.dg/torture/pr59038.c
Modified:
trunk/gcc/ChangeLog
trunk/gcc/tree-loop-distribution.c
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug tree-optimization/59038] [4.9 Regression] r204398 causes 186.crafty init.c to be miscompiled
2013-11-07 12:30 [Bug tree-optimization/59038] New: [4.9 Regression] r204398 causes 186.crafty init.c to be miscompiled rguenth at gcc dot gnu.org
` (2 preceding siblings ...)
2013-11-08 8:45 ` rguenth at gcc dot gnu.org
@ 2013-11-08 10:34 ` rguenth at gcc dot gnu.org
3 siblings, 0 replies; 5+ messages in thread
From: rguenth at gcc dot gnu.org @ 2013-11-08 10:34 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59038
Richard Biener <rguenth at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |su at cs dot ucdavis.edu
--- Comment #4 from Richard Biener <rguenth at gcc dot gnu.org> ---
*** Bug 59045 has been marked as a duplicate of this bug. ***
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2013-11-08 10:34 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-11-07 12:30 [Bug tree-optimization/59038] New: [4.9 Regression] r204398 causes 186.crafty init.c to be miscompiled rguenth at gcc dot gnu.org
2013-11-07 13:15 ` [Bug tree-optimization/59038] " rguenth at gcc dot gnu.org
2013-11-08 8:44 ` rguenth at gcc dot gnu.org
2013-11-08 8:45 ` rguenth at gcc dot gnu.org
2013-11-08 10:34 ` rguenth 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).