[Bug middle-end/38905] [4.3 Regression] 464.h264ref in SPEC CPU 2006 miscompiled

2009-01-18 Thread rguenth at gcc dot gnu dot org


-- 

rguenth at gcc dot gnu dot org changed:

   What|Removed |Added

 CC||rguenth at gcc dot gnu dot
   ||org
   Keywords||wrong-code
   Target Milestone|--- |4.3.3


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=38905



[Bug middle-end/38905] [4.3 Regression] 464.h264ref in SPEC CPU 2006 miscompiled

2009-01-18 Thread hjl dot tools at gmail dot com


--- Comment #1 from hjl dot tools at gmail dot com  2009-01-18 17:16 ---
It is caused by revision 142040:

http://gcc.gnu.org/ml/gcc-cvs/2008-11/msg00541.html


-- 

hjl dot tools at gmail dot com changed:

   What|Removed |Added

   Target Milestone|4.3.3   |---


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=38905



[Bug middle-end/38905] [4.3 Regression] 464.h264ref in SPEC CPU 2006 miscompiled

2009-01-18 Thread hjl dot tools at gmail dot com


--- Comment #2 from hjl dot tools at gmail dot com  2009-01-18 17:19 ---
(In reply to comment #1)
 It is caused by revision 142040:
 
 http://gcc.gnu.org/ml/gcc-cvs/2008-11/msg00541.html
 

The patch is at

http://gcc.gnu.org/ml/gcc-patches/2008-11/msg01040.html


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=38905



[Bug middle-end/38905] [4.3 Regression] 464.h264ref in SPEC CPU 2006 miscompiled

2009-01-18 Thread rguenther at suse dot de


--- Comment #3 from rguenther at suse dot de  2009-01-18 17:21 ---
Subject: Re:  [4.3 Regression]  464.h264ref in SPEC
 CPU 2006 miscompiled

On Sun, 18 Jan 2009, hjl dot tools at gmail dot com wrote:

 --- Comment #2 from hjl dot tools at gmail dot com  2009-01-18 17:19 
 ---
 (In reply to comment #1)
  It is caused by revision 142040:
  
  http://gcc.gnu.org/ml/gcc-cvs/2008-11/msg00541.html
  
 
 The patch is at
 
 http://gcc.gnu.org/ml/gcc-patches/2008-11/msg01040.html

Can you check if it is fixed by -fno-strict-aliasing and/or
--param max-fields-for-field-sensitive=0?  I suspect we need to
backport some PTA fixes :/

Richard.


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=38905



[Bug middle-end/38905] [4.3 Regression] 464.h264ref in SPEC CPU 2006 miscompiled

2009-01-18 Thread rguenth at gcc dot gnu dot org


-- 

rguenth at gcc dot gnu dot org changed:

   What|Removed |Added

   Target Milestone|--- |4.3.3


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=38905



[Bug middle-end/38905] [4.3 Regression] 464.h264ref in SPEC CPU 2006 miscompiled

2009-01-18 Thread hjl dot tools at gmail dot com


--- Comment #4 from hjl dot tools at gmail dot com  2009-01-18 17:39 ---
(In reply to comment #3)
 Can you check if it is fixed by -fno-strict-aliasing and/or
 --param max-fields-for-field-sensitive=0?  I suspect we need to
 backport some PTA fixes :/
 

Either -fno-strict-aliasing or --param max-fields-for-field-sensitive=0
fixed this.


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=38905



[Bug middle-end/38905] [4.3 Regression] 464.h264ref in SPEC CPU 2006 miscompiled

2009-01-18 Thread rguenther at suse dot de


--- Comment #5 from rguenther at suse dot de  2009-01-18 17:42 ---
Subject: Re:  [4.3 Regression]  464.h264ref in SPEC
 CPU 2006 miscompiled

On Sun, 18 Jan 2009, hjl dot tools at gmail dot com wrote:

 --- Comment #4 from hjl dot tools at gmail dot com  2009-01-18 17:39 
 ---
 (In reply to comment #3)
  Can you check if it is fixed by -fno-strict-aliasing and/or
  --param max-fields-for-field-sensitive=0?  I suspect we need to
  backport some PTA fixes :/
  
 
 Either -fno-strict-aliasing or --param max-fields-for-field-sensitive=0
 fixed this.

I would guess that

2008-11-25  Daniel Berlin  dber...@dberlin.org
Richard Guenther  rguent...@suse.de

PR tree-optimization/37869
* tree-ssa-structalias.c (struct constraint_graph): Remove
pt_used and number_incoming members.
(build_pred_graph): Do not allocate them.
(condense_visit): Do not use them.
(label_visit): Likewise.
(free_var_substitution_info): Do not free them.

might fix it, but of course a testcase would be nice to have.

Thx for tracking this down btw.
Richard.


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=38905



[Bug middle-end/38905] [4.3 Regression] 464.h264ref in SPEC CPU 2006 miscompiled

2009-01-18 Thread hjl dot tools at gmail dot com


--- Comment #6 from hjl dot tools at gmail dot com  2009-01-18 19:09 ---
(In reply to comment #5)
 
 I would guess that
 
 2008-11-25  Daniel Berlin  dber...@dberlin.org
 Richard Guenther  rguent...@suse.de
 
 PR tree-optimization/37869
 * tree-ssa-structalias.c (struct constraint_graph): Remove
 pt_used and number_incoming members.
 (build_pred_graph): Do not allocate them.
 (condense_visit): Do not use them.
 (label_visit): Likewise.
 (free_var_substitution_info): Do not free them.
 
 might fix it, but of course a testcase would be nice to have.
 

Tried it on 4.3 branch. It doesn't fix the problem.


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=38905



[Bug middle-end/38905] [4.3 Regression] 464.h264ref in SPEC CPU 2006 miscompiled

2009-01-18 Thread rguenth at gcc dot gnu dot org


--- Comment #7 from rguenth at gcc dot gnu dot org  2009-01-18 19:34 ---
It works for me with -O2 -ffast-math and the openSUSE 11.1 compiler which also
has this patch applied (but is based on rev. 141291).  I'm trying with plain
4.3 branch now - any special configure options used?


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=38905



[Bug middle-end/38905] [4.3 Regression] 464.h264ref in SPEC CPU 2006 miscompiled

2009-01-18 Thread hjl dot tools at gmail dot com


--- Comment #8 from hjl dot tools at gmail dot com  2009-01-18 19:52 ---
(In reply to comment #7)
 It works for me with -O2 -ffast-math and the openSUSE 11.1 compiler which also
 has this patch applied (but is based on rev. 141291).  I'm trying with plain
 4.3 branch now - any special configure options used?
 

I am using

-DSPEC_CPU -DNDEBUG-O2 -ffast-math   -DSPEC_CPU_LP64

on Fedora 9/x86-64 with glibc 2.8-10. I used 4.3 branch at revision 143470.


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=38905



[Bug middle-end/38905] [4.3 Regression] 464.h264ref in SPEC CPU 2006 miscompiled

2009-01-18 Thread rguenth at gcc dot gnu dot org


--- Comment #9 from rguenth at gcc dot gnu dot org  2009-01-18 20:36 ---
Created an attachment (id=17136)
 -- (http://gcc.gnu.org/bugzilla/attachment.cgi?id=17136action=view)
first alias patch

I can reproduce this with the plain branch.  Attached is the first extra alias
patch in the SUSE compiler.


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=38905



[Bug middle-end/38905] [4.3 Regression] 464.h264ref in SPEC CPU 2006 miscompiled

2009-01-18 Thread rguenth at gcc dot gnu dot org


--- Comment #10 from rguenth at gcc dot gnu dot org  2009-01-18 20:36 
---
Created an attachment (id=17137)
 -- (http://gcc.gnu.org/bugzilla/attachment.cgi?id=17137action=view)
second alias patch

Second alias related patch in the openSUSE compiler.


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=38905



[Bug middle-end/38905] [4.3 Regression] 464.h264ref in SPEC CPU 2006 miscompiled

2009-01-18 Thread rguenth at gcc dot gnu dot org


--- Comment #11 from rguenth at gcc dot gnu dot org  2009-01-18 20:52 
---
The testcase from PR36765 fails on the 4.3 branch.  Does it fail without the
patch for PR37868?


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=38905



[Bug middle-end/38905] [4.3 Regression] 464.h264ref in SPEC CPU 2006 miscompiled

2009-01-18 Thread rguenth at gcc dot gnu dot org


--- Comment #12 from rguenth at gcc dot gnu dot org  2009-01-18 20:56 
---
I'm testing the patch for PR36765 - that was a h264ref miscompile on the trunk.


-- 

rguenth at gcc dot gnu dot org changed:

   What|Removed |Added

 Status|UNCONFIRMED |NEW
 Ever Confirmed|0   |1
   Last reconfirmed|-00-00 00:00:00 |2009-01-18 20:56:55
   date||


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=38905



[Bug middle-end/38905] [4.3 Regression] 464.h264ref in SPEC CPU 2006 miscompiled

2009-01-18 Thread hjl dot tools at gmail dot com


--- Comment #13 from hjl dot tools at gmail dot com  2009-01-18 21:05 
---
Patches in comment #9 plus comment #10 fix 464.h264ref with test
input. I am running with reference input on both ia32 and x86-64.


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=38905



[Bug middle-end/38905] [4.3 Regression] 464.h264ref in SPEC CPU 2006 miscompiled

2009-01-18 Thread hjl dot tools at gmail dot com


--- Comment #14 from hjl dot tools at gmail dot com  2009-01-18 21:11 
---
(In reply to comment #11)
 The testcase from PR36765 fails on the 4.3 branch.  Does it fail without the
 patch for PR37868?
 

gcc.c-torture/execute/pr36765.c works with -O2 at revision 142026 and
fails at revision 142040 on 4.3 branch.


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=38905



[Bug middle-end/38905] [4.3 Regression] 464.h264ref in SPEC CPU 2006 miscompiled

2009-01-18 Thread rguenth at gcc dot gnu dot org


--- Comment #15 from rguenth at gcc dot gnu dot org  2009-01-18 21:22 
---
I have verified that the patch for PR36765 fixes h264ref on the branch.

*** This bug has been marked as a duplicate of 36765 ***


-- 

rguenth at gcc dot gnu dot org changed:

   What|Removed |Added

 Status|NEW |RESOLVED
 Resolution||DUPLICATE


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=38905