aboutsummaryrefslogtreecommitdiff
path: root/gcc/rtl.h
diff options
context:
space:
mode:
authorSteven Bosscher <steven@gcc.gnu.org>2013-03-23 12:11:10 +0000
committerSteven Bosscher <steven@gcc.gnu.org>2013-03-23 12:11:10 +0000
commitb64925dc4b75d48fe36c0fcd41fd02151a5ffa55 (patch)
tree17531e80a4ee959e96e3b55b923dbe168f1daa80 /gcc/rtl.h
parentb9aaf52e25a78e5b150ecc7a8b5226392e569b5e (diff)
downloadgcc-b64925dc4b75d48fe36c0fcd41fd02151a5ffa55.zip
gcc-b64925dc4b75d48fe36c0fcd41fd02151a5ffa55.tar.gz
gcc-b64925dc4b75d48fe36c0fcd41fd02151a5ffa55.tar.bz2
avr.c, [...]: Where applicable...
* config/avr/avr.c, config/bfin/bfin.c, config/c6x/c6x.c, config/epiphany/epiphany.c, config/frv/frv.c, config/ia64/ia64.c, config/iq2000/iq2000.c, config/mcore/mcore.c, config/mep/mep.c, config/mmix/mmix.c, config/pa/pa.c, config/rs6000/rs6000.c, config/s390/s390.c, config/sparc/sparc.c, config/spu/spu.c, config/stormy16/stormy16.c, config/v850/v850.c, config/xtensa/xtensa.c, dwarf2out.c, hw-doloop.c, resource.c, rtl.h : Where applicable, use the predicates NOTE_P, NONJUMP_INSN_P, JUMP_P, CALL_P, LABEL_P, and BARRIER_P instead of GET_CODE. From-SVN: r197005
Diffstat (limited to 'gcc/rtl.h')
-rw-r--r--gcc/rtl.h9
1 files changed, 4 insertions, 5 deletions
diff --git a/gcc/rtl.h b/gcc/rtl.h
index 93a64f4..b9defcc 100644
--- a/gcc/rtl.h
+++ b/gcc/rtl.h
@@ -960,9 +960,8 @@ extern const char * const reg_note_name[];
#define NOTE_KIND(INSN) XCINT (INSN, 5, NOTE)
/* Nonzero if INSN is a note marking the beginning of a basic block. */
-#define NOTE_INSN_BASIC_BLOCK_P(INSN) \
- (GET_CODE (INSN) == NOTE \
- && NOTE_KIND (INSN) == NOTE_INSN_BASIC_BLOCK)
+#define NOTE_INSN_BASIC_BLOCK_P(INSN) \
+ (NOTE_P (INSN) && NOTE_KIND (INSN) == NOTE_INSN_BASIC_BLOCK)
/* Variable declaration and the location of a variable. */
#define PAT_VAR_LOCATION_DECL(PAT) (XCTREE ((PAT), 0, VAR_LOCATION))
@@ -1063,7 +1062,7 @@ enum label_kind
/* Retrieve the kind of LABEL. */
#define LABEL_KIND(LABEL) __extension__ \
({ __typeof (LABEL) const _label = (LABEL); \
- if (GET_CODE (_label) != CODE_LABEL) \
+ if (! LABEL_P (_label)) \
rtl_check_failed_flag ("LABEL_KIND", _label, __FILE__, __LINE__, \
__FUNCTION__); \
(enum label_kind) ((_label->jump << 1) | _label->call); })
@@ -1072,7 +1071,7 @@ enum label_kind
#define SET_LABEL_KIND(LABEL, KIND) do { \
__typeof (LABEL) const _label = (LABEL); \
const unsigned int _kind = (KIND); \
- if (GET_CODE (_label) != CODE_LABEL) \
+ if (! LABEL_P (_label)) \
rtl_check_failed_flag ("SET_LABEL_KIND", _label, __FILE__, __LINE__, \
__FUNCTION__); \
_label->jump = ((_kind >> 1) & 1); \