Commit ddd0c781 by Jakub Jelinek Committed by Jakub Jelinek

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
parent 3af4ba41
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.
......@@ -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;
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment