From a352244f955f968ec67ebe3f1278d24158a3682b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?G=C3=A1bor=20L=C3=B3ki?= Date: Wed, 15 Oct 2003 22:32:27 +0000 Subject: fold-const.c (tree_swap_operands_p): disables some features when optimizing for size. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 2003-10-15 G�bor L�ki * fold-const.c (tree_swap_operands_p): disables some features when optimizing for size. From-SVN: r72538 --- gcc/fold-const.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'gcc/fold-const.c') diff --git a/gcc/fold-const.c b/gcc/fold-const.c index 2e64314..f248cd6 100644 --- a/gcc/fold-const.c +++ b/gcc/fold-const.c @@ -5148,6 +5148,9 @@ tree_swap_operands_p (tree arg0, tree arg1, bool reorder) return 0; if (TREE_CONSTANT (arg0)) return 1; + + if (optimize_size) + return 0; if (reorder && flag_evaluation_order && (TREE_SIDE_EFFECTS (arg0) || TREE_SIDE_EFFECTS (arg1))) -- cgit v1.1