Workaround following [PATCH] Pul all constants last in tree_swap_operands_p

https://gcc.gnu.org/ml/gcc-patches/2014-09/msg01509.html
gcc/:
        * fold-const.c (tree_swap_operands_p): Strip only sign-preserving NOPs.

From-SVN: r215465
This commit is contained in:
Alan Lawrence 2014-09-22 14:20:16 +00:00 committed by Alan Lawrence
parent 9b81754858
commit c71abde77f
2 changed files with 6 additions and 2 deletions

View File

@ -1,3 +1,7 @@
2014-09-22 Alan Lawrence <alan.lawrence@arm.com>
* fold-const.c (tree_swap_operands_p): Strip only sign-preserving NOPs.
2014-09-22 Richard Biener <rguenther@suse.de>
* gimplify.c (gimplify_init_constructor): Do not leave

View File

@ -6647,8 +6647,8 @@ tree_swap_operands_p (const_tree arg0, const_tree arg1, bool reorder)
if (CONSTANT_CLASS_P (arg0))
return 1;
STRIP_NOPS (arg0);
STRIP_NOPS (arg1);
STRIP_SIGN_NOPS (arg0);
STRIP_SIGN_NOPS (arg1);
if (TREE_CONSTANT (arg1))
return 0;