This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug tree-optimization/26069] [4.1/4.2/4.3 Regression] Runtime endian-ness check is no longer optimized out.
- From: "pinskia at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 30 Apr 2008 04:13:13 -0000
- Subject: [Bug tree-optimization/26069] [4.1/4.2/4.3 Regression] Runtime endian-ness check is no longer optimized out.
- References: <bug-26069-12114@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #26 from pinskia at gcc dot gnu dot org 2008-04-30 04:13 -------
A simple fix for the patch is to add:
&& TREE_CODE (TREE_TYPE (TREE_OPERAND (def_rhs, 0))) != ARRAY_TYPE
But note, we still get worse code with the C front-end than with the C++
front-end but that is due to the C front producing &a instead of &a[0] .
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26069