This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug tree-optimization/26069] [4.1/4.2/4.3 Regression] Runtime endian-ness check is no longer optimized out.



------- 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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]