* [Bug tree-optimization/36765] [4.4 Regression] Revision 137573 miscompiles 464.h264ref in SPEC CPU 2006
2008-07-08 17:12 [Bug tree-optimization/36765] New: [4.4 Regression] Revision 137573 miscompiles 464.h264ref in SPEC CPU 2006 hjl dot tools at gmail dot com
@ 2008-07-11 5:47 ` Joey dot ye at intel dot com
2008-07-11 5:49 ` Joey dot ye at intel dot com
` (10 subsequent siblings)
11 siblings, 0 replies; 13+ messages in thread
From: Joey dot ye at intel dot com @ 2008-07-11 5:47 UTC (permalink / raw)
To: gcc-bugs
------- Comment #1 from Joey dot ye at intel dot com 2008-07-11 05:46 -------
Created an attachment (id=15897)
--> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=15897&action=view)
Small test case reduced from cpu2006.464.h264ref
/home/jye2/work/bug-37665> gcc -v
Using built-in specs.
Target: x86_64-unknown-linux-gnu
Configured with: ../src/configure --disable-bootstrap
--enable-languages=c,c++,fortran --enable-checking=assert
Thread model: posix
gcc version 4.4.0 20080707 (experimental) [trunk revision 137573] (GCC)
/home/jye2/work/bug-37665> make -B && ./m.exe && echo PASS
gcc -c main.c -g
gcc -O2 -ffast-math -g -c -o l5.o l5.c
gcc -o m.exe main.o l5.o
Bmin[0]=21
Aborted
/home/jye2/work/bug-37665> gcc -v
Using built-in specs.
Target: x86_64-unknown-linux-gnu
Configured with: ../src/configure --disable-bootstrap
--enable-languages=c,c++,fortran --enable-checking=assert
Thread model: posix
gcc version 4.4.0 20080707 (experimental) [trunk revision 137572] (GCC)
/home/jye2/work/bug-37665> make -B && ./m.exe && echo PASS
gcc -c main.c -g
gcc -O2 -ffast-math -g -c -o l5.o l5.c
gcc -o m.exe main.o l5.o
PASS
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=36765
^ permalink raw reply [flat|nested] 13+ messages in thread
* [Bug tree-optimization/36765] [4.4 Regression] Revision 137573 miscompiles 464.h264ref in SPEC CPU 2006
2008-07-08 17:12 [Bug tree-optimization/36765] New: [4.4 Regression] Revision 137573 miscompiles 464.h264ref in SPEC CPU 2006 hjl dot tools at gmail dot com
2008-07-11 5:47 ` [Bug tree-optimization/36765] " Joey dot ye at intel dot com
@ 2008-07-11 5:49 ` Joey dot ye at intel dot com
2008-07-11 10:16 ` rguenth at gcc dot gnu dot org
` (9 subsequent siblings)
11 siblings, 0 replies; 13+ messages in thread
From: Joey dot ye at intel dot com @ 2008-07-11 5:49 UTC (permalink / raw)
To: gcc-bugs
------- Comment #2 from Joey dot ye at intel dot com 2008-07-11 05:49 -------
Effect of line 76
buffer_frame[0] = InitFullness;
is eliminated by optimizer due to bug in GCC.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=36765
^ permalink raw reply [flat|nested] 13+ messages in thread
* [Bug tree-optimization/36765] [4.4 Regression] Revision 137573 miscompiles 464.h264ref in SPEC CPU 2006
2008-07-08 17:12 [Bug tree-optimization/36765] New: [4.4 Regression] Revision 137573 miscompiles 464.h264ref in SPEC CPU 2006 hjl dot tools at gmail dot com
2008-07-11 5:47 ` [Bug tree-optimization/36765] " Joey dot ye at intel dot com
2008-07-11 5:49 ` Joey dot ye at intel dot com
@ 2008-07-11 10:16 ` rguenth at gcc dot gnu dot org
2008-07-11 10:43 ` rguenth at gcc dot gnu dot org
` (8 subsequent siblings)
11 siblings, 0 replies; 13+ messages in thread
From: rguenth at gcc dot gnu dot org @ 2008-07-11 10:16 UTC (permalink / raw)
To: gcc-bugs
------- Comment #3 from rguenth at gcc dot gnu dot org 2008-07-11 10:15 -------
Thanks for reducing this.
--
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|UNCONFIRMED |ASSIGNED
Ever Confirmed|0 |1
Last reconfirmed|0000-00-00 00:00:00 |2008-07-11 10:15:59
date| |
Target Milestone|--- |4.4.0
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=36765
^ permalink raw reply [flat|nested] 13+ messages in thread
* [Bug tree-optimization/36765] [4.4 Regression] Revision 137573 miscompiles 464.h264ref in SPEC CPU 2006
2008-07-08 17:12 [Bug tree-optimization/36765] New: [4.4 Regression] Revision 137573 miscompiles 464.h264ref in SPEC CPU 2006 hjl dot tools at gmail dot com
` (2 preceding siblings ...)
2008-07-11 10:16 ` rguenth at gcc dot gnu dot org
@ 2008-07-11 10:43 ` rguenth at gcc dot gnu dot org
2008-07-11 12:45 ` rguenth at gcc dot gnu dot org
` (7 subsequent siblings)
11 siblings, 0 replies; 13+ messages in thread
From: rguenth at gcc dot gnu dot org @ 2008-07-11 10:43 UTC (permalink / raw)
To: gcc-bugs
------- Comment #4 from rguenth at gcc dot gnu dot org 2008-07-11 10:42 -------
Turns out this is a problem I already have a patch in my queue. Reduced
testcase:
int __attribute__((noinline))
foo(int i)
{
int *p = __builtin_malloc (4 * sizeof(int));
*p = 0;
p[i] = 1;
return *p;
}
extern void abort (void);
int main()
{
if (foo(0) != 1)
abort ();
return 0;
}
The bug is latent since forever.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=36765
^ permalink raw reply [flat|nested] 13+ messages in thread
* [Bug tree-optimization/36765] [4.4 Regression] Revision 137573 miscompiles 464.h264ref in SPEC CPU 2006
2008-07-08 17:12 [Bug tree-optimization/36765] New: [4.4 Regression] Revision 137573 miscompiles 464.h264ref in SPEC CPU 2006 hjl dot tools at gmail dot com
` (3 preceding siblings ...)
2008-07-11 10:43 ` rguenth at gcc dot gnu dot org
@ 2008-07-11 12:45 ` rguenth at gcc dot gnu dot org
2008-07-11 12:45 ` rguenth at gcc dot gnu dot org
` (6 subsequent siblings)
11 siblings, 0 replies; 13+ messages in thread
From: rguenth at gcc dot gnu dot org @ 2008-07-11 12:45 UTC (permalink / raw)
To: gcc-bugs
------- Comment #6 from rguenth at gcc dot gnu dot org 2008-07-11 12:45 -------
Subject: Bug 36765
Author: rguenth
Date: Fri Jul 11 12:44:26 2008
New Revision: 137715
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=137715
Log:
2008-07-11 Richard Guenther <rguenther@suse.de>
PR tree-optimization/36765
* tree-ssa-alias.c (compute_flow_insensitive_aliasing): Add
aliases from HEAP vars to SMTs.
* gcc.c-torture/execute/pr36765.c: New testcase.
Added:
trunk/gcc/testsuite/gcc.c-torture/execute/pr36765.c
Modified:
trunk/gcc/ChangeLog
trunk/gcc/testsuite/ChangeLog
trunk/gcc/tree-ssa-alias.c
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=36765
^ permalink raw reply [flat|nested] 13+ messages in thread
* [Bug tree-optimization/36765] [4.4 Regression] Revision 137573 miscompiles 464.h264ref in SPEC CPU 2006
2008-07-08 17:12 [Bug tree-optimization/36765] New: [4.4 Regression] Revision 137573 miscompiles 464.h264ref in SPEC CPU 2006 hjl dot tools at gmail dot com
` (4 preceding siblings ...)
2008-07-11 12:45 ` rguenth at gcc dot gnu dot org
@ 2008-07-11 12:45 ` rguenth at gcc dot gnu dot org
2009-01-18 20:54 ` [Bug tree-optimization/36765] [4.3 " rguenth at gcc dot gnu dot org
` (5 subsequent siblings)
11 siblings, 0 replies; 13+ messages in thread
From: rguenth at gcc dot gnu dot org @ 2008-07-11 12:45 UTC (permalink / raw)
To: gcc-bugs
------- Comment #5 from rguenth at gcc dot gnu dot org 2008-07-11 12:45 -------
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=36765
^ permalink raw reply [flat|nested] 13+ messages in thread
* [Bug tree-optimization/36765] [4.3 Regression] Revision 137573 miscompiles 464.h264ref in SPEC CPU 2006
2008-07-08 17:12 [Bug tree-optimization/36765] New: [4.4 Regression] Revision 137573 miscompiles 464.h264ref in SPEC CPU 2006 hjl dot tools at gmail dot com
` (5 preceding siblings ...)
2008-07-11 12:45 ` rguenth at gcc dot gnu dot org
@ 2009-01-18 20:54 ` rguenth at gcc dot gnu dot org
2009-01-18 21:23 ` rguenth at gcc dot gnu dot org
` (4 subsequent siblings)
11 siblings, 0 replies; 13+ messages in thread
From: rguenth at gcc dot gnu dot org @ 2009-01-18 20:54 UTC (permalink / raw)
To: gcc-bugs
------- Comment #7 from rguenth at gcc dot gnu dot org 2009-01-18 20:54 -------
The testcase from comment #4 fails on the branch. Re-opening, possibly
related to PR38905.
--
rguenth at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|RESOLVED |REOPENED
Known to fail| |4.3.3
Known to work| |4.2.0 4.4.0
Resolution|FIXED |
Summary|[4.4 Regression] Revision |[4.3 Regression] Revision
|137573 miscompiles |137573 miscompiles
|464.h264ref in SPEC CPU 2006|464.h264ref in SPEC CPU 2006
Target Milestone|4.4.0 |4.3.3
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=36765
^ permalink raw reply [flat|nested] 13+ messages in thread
* [Bug tree-optimization/36765] [4.3 Regression] Revision 137573 miscompiles 464.h264ref in SPEC CPU 2006
2008-07-08 17:12 [Bug tree-optimization/36765] New: [4.4 Regression] Revision 137573 miscompiles 464.h264ref in SPEC CPU 2006 hjl dot tools at gmail dot com
` (6 preceding siblings ...)
2009-01-18 20:54 ` [Bug tree-optimization/36765] [4.3 " rguenth at gcc dot gnu dot org
@ 2009-01-18 21:23 ` rguenth at gcc dot gnu dot org
2009-01-18 21:23 ` rguenth at gcc dot gnu dot org
` (3 subsequent siblings)
11 siblings, 0 replies; 13+ messages in thread
From: rguenth at gcc dot gnu dot org @ 2009-01-18 21:23 UTC (permalink / raw)
To: gcc-bugs
------- Comment #8 from rguenth at gcc dot gnu dot org 2009-01-18 21:22 -------
*** Bug 38905 has been marked as a duplicate of this bug. ***
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=36765
^ permalink raw reply [flat|nested] 13+ messages in thread
* [Bug tree-optimization/36765] [4.3 Regression] Revision 137573 miscompiles 464.h264ref in SPEC CPU 2006
2008-07-08 17:12 [Bug tree-optimization/36765] New: [4.4 Regression] Revision 137573 miscompiles 464.h264ref in SPEC CPU 2006 hjl dot tools at gmail dot com
` (7 preceding siblings ...)
2009-01-18 21:23 ` rguenth at gcc dot gnu dot org
@ 2009-01-18 21:23 ` rguenth at gcc dot gnu dot org
2009-01-18 22:09 ` hjl dot tools at gmail dot com
` (2 subsequent siblings)
11 siblings, 0 replies; 13+ messages in thread
From: rguenth at gcc dot gnu dot org @ 2009-01-18 21:23 UTC (permalink / raw)
To: gcc-bugs
--
rguenth at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Known to work|4.2.0 4.4.0 |4.2.0 4.3.2 4.4.0
Priority|P3 |P1
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=36765
^ permalink raw reply [flat|nested] 13+ messages in thread
* [Bug tree-optimization/36765] [4.3 Regression] Revision 137573 miscompiles 464.h264ref in SPEC CPU 2006
2008-07-08 17:12 [Bug tree-optimization/36765] New: [4.4 Regression] Revision 137573 miscompiles 464.h264ref in SPEC CPU 2006 hjl dot tools at gmail dot com
` (8 preceding siblings ...)
2009-01-18 21:23 ` rguenth at gcc dot gnu dot org
@ 2009-01-18 22:09 ` hjl dot tools at gmail dot com
2009-01-19 9:33 ` rguenth at gcc dot gnu dot org
2009-01-19 9:35 ` rguenth at gcc dot gnu dot org
11 siblings, 0 replies; 13+ messages in thread
From: hjl dot tools at gmail dot com @ 2009-01-18 22:09 UTC (permalink / raw)
To: gcc-bugs
------- Comment #9 from hjl dot tools at gmail dot com 2009-01-18 22:09 -------
This patch:
http://gcc.gnu.org/ml/gcc/2009-01/msg00260.html
works on Linux/x86-64.
--
hjl dot tools at gmail dot com changed:
What |Removed |Added
----------------------------------------------------------------------------
Last reconfirmed|2008-07-11 10:15:59 |2009-01-18 22:09:14
date| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=36765
^ permalink raw reply [flat|nested] 13+ messages in thread
* [Bug tree-optimization/36765] [4.3 Regression] Revision 137573 miscompiles 464.h264ref in SPEC CPU 2006
2008-07-08 17:12 [Bug tree-optimization/36765] New: [4.4 Regression] Revision 137573 miscompiles 464.h264ref in SPEC CPU 2006 hjl dot tools at gmail dot com
` (9 preceding siblings ...)
2009-01-18 22:09 ` hjl dot tools at gmail dot com
@ 2009-01-19 9:33 ` rguenth at gcc dot gnu dot org
2009-01-19 9:35 ` rguenth at gcc dot gnu dot org
11 siblings, 0 replies; 13+ messages in thread
From: rguenth at gcc dot gnu dot org @ 2009-01-19 9:33 UTC (permalink / raw)
To: gcc-bugs
------- Comment #10 from rguenth at gcc dot gnu dot org 2009-01-19 09:33 -------
Subject: Bug 36765
Author: rguenth
Date: Mon Jan 19 09:33:06 2009
New Revision: 143494
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=143494
Log:
2009-01-19 Richard Guenther <rguenther@suse.de>
Backport from mainline
2008-07-11 Richard Guenther <rguenther@suse.de>
PR tree-optimization/36765
* tree-ssa-alias.c (compute_flow_insensitive_aliasing): Add
aliases from HEAP vars to SMTs.
* gcc.c-torture/execute/pr36765.c: New testcase.
Added:
branches/gcc-4_3-branch/gcc/testsuite/gcc.c-torture/execute/pr36765.c
Modified:
branches/gcc-4_3-branch/gcc/ChangeLog
branches/gcc-4_3-branch/gcc/testsuite/ChangeLog
branches/gcc-4_3-branch/gcc/tree-ssa-alias.c
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=36765
^ permalink raw reply [flat|nested] 13+ messages in thread
* [Bug tree-optimization/36765] [4.3 Regression] Revision 137573 miscompiles 464.h264ref in SPEC CPU 2006
2008-07-08 17:12 [Bug tree-optimization/36765] New: [4.4 Regression] Revision 137573 miscompiles 464.h264ref in SPEC CPU 2006 hjl dot tools at gmail dot com
` (10 preceding siblings ...)
2009-01-19 9:33 ` rguenth at gcc dot gnu dot org
@ 2009-01-19 9:35 ` rguenth at gcc dot gnu dot org
11 siblings, 0 replies; 13+ messages in thread
From: rguenth at gcc dot gnu dot org @ 2009-01-19 9:35 UTC (permalink / raw)
To: gcc-bugs
------- Comment #11 from rguenth at gcc dot gnu dot org 2009-01-19 09:35 -------
Fixed.
--
rguenth at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|REOPENED |RESOLVED
Resolution| |FIXED
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=36765
^ permalink raw reply [flat|nested] 13+ messages in thread