diff options
-rw-r--r-- | gcc/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/fold-const.c | 3 |
2 files changed, 8 insertions, 0 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 2290479..c72455a 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2003-10-15 Gábor Lóki <alga@rgai.hu> + + * fold-const.c (tree_swap_operands_p): disables + some features when optimizing for size. + 2003-10-15 David Daney <ddaney@avtrex.com> * config/mips/linux.h (MD_FALLBACK_FRAME_STATE_FOR): New 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))) |