diff options
author | Richard Henderson <rth@cygnus.com> | 1998-06-30 09:19:11 -0700 |
---|---|---|
committer | Richard Henderson <rth@gcc.gnu.org> | 1998-06-30 09:19:11 -0700 |
commit | cff48d8f76463f870df7340253373b7c84b52f7f (patch) | |
tree | 5176e675ace86f9c1b331ce84ab33709cfe7e130 /gcc/rtl.h | |
parent | 84001dd054fd6514c6104b829320733db1ec7cd7 (diff) | |
download | gcc-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.h | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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. */ |