openbsd-ports/lang/gcc/3.3/patches/pp-gcc_rtl_h
2005-01-04 23:06:33 +00:00

43 lines
1.8 KiB
Plaintext

$OpenBSD: pp-gcc_rtl_h,v 1.1 2005/01/04 23:06:33 espie Exp $
--- gcc/rtl.h.orig Sat Apr 24 21:40:45 2004
+++ gcc/rtl.h Mon Jan 3 10:17:42 2005
@@ -440,6 +440,18 @@ extern void rtvec_check_failed_bounds PA
__FUNCTION__); \
_rtx; })
+#define RTL_FLAG_CHECK9(NAME, RTX, C1, C2, C3, C4, C5, C6, C7, C8, C9) \
+ __extension__ \
+({ rtx const _rtx = (RTX); \
+ if (GET_CODE(_rtx) != C1 && GET_CODE(_rtx) != C2 \
+ && GET_CODE(_rtx) != C3 && GET_CODE(_rtx) != C4 \
+ && GET_CODE(_rtx) != C5 && GET_CODE(_rtx) != C6 \
+ && GET_CODE(_rtx) != C7 && GET_CODE(_rtx) != C8 \
+ && GET_CODE(_rtx) != C9) \
+ rtl_check_failed_flag (NAME, _rtx, __FILE__, __LINE__, \
+ __FUNCTION__); \
+ _rtx; })
+
extern void rtl_check_failed_flag PARAMS ((const char *, rtx, const char *,
int, const char *))
ATTRIBUTE_NORETURN
@@ -455,6 +467,7 @@ extern void rtl_check_failed_flag PARAMS
#define RTL_FLAG_CHECK6(NAME, RTX, C1, C2, C3, C4, C5, C6) (RTX)
#define RTL_FLAG_CHECK7(NAME, RTX, C1, C2, C3, C4, C5, C6, C7) (RTX)
#define RTL_FLAG_CHECK8(NAME, RTX, C1, C2, C3, C4, C5, C6, C7, C8) (RTX)
+#define RTL_FLAG_CHECK9(NAME, RTX, C1, C2, C3, C4, C5, C6, C7, C8, C9) (RTX)
#endif
#define CLEAR_RTX_FLAGS(RTX) \
@@ -549,9 +562,9 @@ do { \
#define LOG_LINKS(INSN) XEXP(INSN, 7)
#define RTX_INTEGRATED_P(RTX) \
- (RTL_FLAG_CHECK8("RTX_INTEGRATED_P", (RTX), INSN, CALL_INSN, \
+ (RTL_FLAG_CHECK9("RTX_INTEGRATED_P", (RTX), INSN, CALL_INSN, \
JUMP_INSN, INSN_LIST, BARRIER, CODE_LABEL, CONST, \
- NOTE)->integrated)
+ NOTE, PLUS)->integrated)
#define RTX_UNCHANGING_P(RTX) \
(RTL_FLAG_CHECK3("RTX_UNCHANGING_P", (RTX), REG, MEM, CONCAT)->unchanging)
#define RTX_FRAME_RELATED_P(RTX) \