aboutsummaryrefslogtreecommitdiff
path: root/gcc/rtl.h
diff options
context:
space:
mode:
authorRichard Henderson <rth@cygnus.com>1998-06-30 09:19:11 -0700
committerRichard Henderson <rth@gcc.gnu.org>1998-06-30 09:19:11 -0700
commitcff48d8f76463f870df7340253373b7c84b52f7f (patch)
tree5176e675ace86f9c1b331ce84ab33709cfe7e130 /gcc/rtl.h
parent84001dd054fd6514c6104b829320733db1ec7cd7 (diff)
downloadgcc-cff48d8f76463f870df7340253373b7c84b52f7f.zip
gcc-cff48d8f76463f870df7340253373b7c84b52f7f.tar.gz
gcc-cff48d8f76463f870df7340253373b7c84b52f7f.tar.bz2
rtl.def (CONSTANT_P_RTX): New.
* rtl.def (CONSTANT_P_RTX): New. * rtl.h (CONSTANT_P): Recognize it. * cse.c (fold_rtx): Eliminate it. * expr.c (can_handle_constant_p): New variable. (init_expr_once): Initialize it. (expand_builtin): Generate CONSTANT_P_RTX if the expression is not immediately recognizable as a constant. From-SVN: r20846
Diffstat (limited to 'gcc/rtl.h')
-rw-r--r--gcc/rtl.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/gcc/rtl.h b/gcc/rtl.h
index a7eaaf8..94a8360 100644
--- a/gcc/rtl.h
+++ b/gcc/rtl.h
@@ -219,7 +219,8 @@ typedef struct rtvec_def{
#define CONSTANT_P(X) \
(GET_CODE (X) == LABEL_REF || GET_CODE (X) == SYMBOL_REF \
|| GET_CODE (X) == CONST_INT || GET_CODE (X) == CONST_DOUBLE \
- || GET_CODE (X) == CONST || GET_CODE (X) == HIGH)
+ || GET_CODE (X) == CONST || GET_CODE (X) == HIGH \
+ || GET_CODE (X) == CONSTANT_P_RTX)
/* General accessor macros for accessing the fields of an rtx. */