[Bug tree-optimization/43783] [4.5 Regression] -O -ftree-pre options compile libbid wrong

2010-04-20 Thread rguenth at gcc dot gnu dot org


--- Comment #10 from rguenth at gcc dot gnu dot org  2010-04-20 09:05 
---
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=43783



[Bug tree-optimization/43783] [4.5 Regression] -O -ftree-pre options compile libbid wrong

2010-04-20 Thread rguenth at gcc dot gnu dot org


--- Comment #11 from rguenth at gcc dot gnu dot org  2010-04-20 09:05 
---
Subject: Bug 43783

Author: rguenth
Date: Tue Apr 20 09:05:33 2010
New Revision: 158549

URL: http://gcc.gnu.org/viewcvs?root=gccview=revrev=158549
Log:
2010-04-20  Richard Guenther  rguent...@suse.de

PR tree-optimization/43783
* tree-ssa-pre.c (create_component_ref_by_pieces_1): Drop
constant ARRAY_REF operands two and three if possible.

* gcc.c-torture/execute/pr43783.c: New testcase.

Added:
branches/gcc-4_5-branch/gcc/testsuite/gcc.c-torture/execute/pr43783.c
Modified:
branches/gcc-4_5-branch/gcc/ChangeLog
branches/gcc-4_5-branch/gcc/testsuite/ChangeLog
branches/gcc-4_5-branch/gcc/tree-ssa-pre.c


-- 


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



[Bug tree-optimization/43783] [4.5 Regression] -O -ftree-pre options compile libbid wrong

2010-04-19 Thread roman at binarylife dot net


--- Comment #9 from roman at binarylife dot net  2010-04-19 20:46 ---
The 4.5 branch works for me if patched this way.
Thanks.


-- 


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



[Bug tree-optimization/43783] [4.5 regression] -O -ftree-pre options compile libbid wrong

2010-04-18 Thread rguenth at gcc dot gnu dot org


--- Comment #1 from rguenth at gcc dot gnu dot org  2010-04-18 18:22 ---
This needs a testcase.  The libdecnumber code is a mess (and I can't find
an implementation for bid128_ext_fma()).


-- 

rguenth at gcc dot gnu dot org changed:

   What|Removed |Added

 Status|UNCONFIRMED |WAITING
   Target Milestone|--- |4.5.1


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



[Bug tree-optimization/43783] [4.5 regression] -O -ftree-pre options compile libbid wrong

2010-04-18 Thread roman at binarylife dot net


--- Comment #2 from roman at binarylife dot net  2010-04-18 18:34 ---
(In reply to comment #1)
 This needs a testcase.  The libdecnumber code is a mess (and I can't find
 an implementation for bid128_ext_fma()).
 

bid128_ext_fma() is in libgcc/config/libbid/bid128_fma.c


-- 


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



[Bug tree-optimization/43783] [4.5 regression] -O -ftree-pre options compile libbid wrong

2010-04-18 Thread roman at binarylife dot net


--- Comment #3 from roman at binarylife dot net  2010-04-19 04:25 ---
Starting from r150519 gcc compiles its own internal libbid wrong.

With the previous revision of gcc, the output of the above test.c is correct:

$ gcc -O test.c  ./a.out
ab=1.23457e-158
xy=1.23457e-158


-- 


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