diff options
author | sayle <sayle@138bc75d-0d04-0410-961f-82ee72b054a4> | 2003-10-15 22:32:27 +0000 |
---|---|---|
committer | sayle <sayle@138bc75d-0d04-0410-961f-82ee72b054a4> | 2003-10-15 22:32:27 +0000 |
commit | f9464d30f164585d409b97de5294c7b7a928054c (patch) | |
tree | 488f0b9dfb666e9a4794914ebaeadfea6c892f30 /gcc | |
parent | c4af4f7b1ef7d1b66bda1cdcad75817761ea9c71 (diff) | |
download | gcc-f9464d30f164585d409b97de5294c7b7a928054c.tar.gz |
2003-10-15 G�bor L�ki <alga@rgai.hu>
* fold-const.c (tree_swap_operands_p): disables
some features when optimizing for size.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@72538 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc')
-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 2290479fcba..c72455a7cfc 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 2e64314c46e..f248cd6ba51 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))) |