diff options
author | Gábor Lóki <alga@rgai.hu> | 2003-10-15 22:32:27 +0000 |
---|---|---|
committer | Roger Sayle <sayle@gcc.gnu.org> | 2003-10-15 22:32:27 +0000 |
commit | a352244f955f968ec67ebe3f1278d24158a3682b (patch) | |
tree | 488f0b9dfb666e9a4794914ebaeadfea6c892f30 | |
parent | 5c3c9bc46b328878861f76c72f14ee6c243077ba (diff) | |
download | gcc-a352244f955f968ec67ebe3f1278d24158a3682b.zip gcc-a352244f955f968ec67ebe3f1278d24158a3682b.tar.gz gcc-a352244f955f968ec67ebe3f1278d24158a3682b.tar.bz2 |
fold-const.c (tree_swap_operands_p): disables some features when optimizing for size.
2003-10-15 G�bor L�ki <alga@rgai.hu>
* fold-const.c (tree_swap_operands_p): disables
some features when optimizing for size.
From-SVN: r72538
-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))) |