rs6000.c (def_builtin): Set TREE_READONLY instead of TREE_CONSTANT.

* config/rs6000/rs6000.c (def_builtin): Set TREE_READONLY instead
	of TREE_CONSTANT.

From-SVN: r153038
This commit is contained in:
Jakub Jelinek 2009-10-20 23:01:35 +02:00 committed by Jakub Jelinek
parent 3af4ba41cc
commit ddd0c78101
2 changed files with 7 additions and 2 deletions

View File

@ -1,3 +1,8 @@
2009-10-20 Jakub Jelinek <jakub@redhat.com>
* config/rs6000/rs6000.c (def_builtin): Set TREE_READONLY instead
of TREE_CONSTANT.
2009-10-20 Richard Sandiford <rdsandiford@googlemail.com>
* rtl.h (simplify_replace_fn_rtx): Declare.

View File

@ -8530,7 +8530,7 @@ def_builtin (int mask, const char *name, tree type, int code)
/* const function, function only depends on the inputs. */
case RS6000_BTC_CONST:
TREE_CONSTANT (t) = 1;
TREE_READONLY (t) = 1;
TREE_NOTHROW (t) = 1;
break;
@ -8554,7 +8554,7 @@ def_builtin (int mask, const char *name, tree type, int code)
DECL_IS_NOVOPS (t) = 1;
}
else
TREE_CONSTANT (t) = 1;
TREE_READONLY (t) = 1;
break;
}
}