aboutsummaryrefslogtreecommitdiff
path: root/gcc/config/sparc/sparc.c
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/config/sparc/sparc.c
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/config/sparc/sparc.c')
-rw-r--r--gcc/config/sparc/sparc.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/gcc/config/sparc/sparc.c b/gcc/config/sparc/sparc.c
index f4ac6e4..3e98325 100644
--- a/gcc/config/sparc/sparc.c
+++ b/gcc/config/sparc/sparc.c
@@ -3063,10 +3063,10 @@ emit_cbcond_nop (rtx insn)
if (!next)
return 1;
- if (GET_CODE (next) == INSN
+ if (NONJUMP_INSN_P (next)
&& GET_CODE (PATTERN (next)) == SEQUENCE)
next = XVECEXP (PATTERN (next), 0, 0);
- else if (GET_CODE (next) == CALL_INSN
+ else if (CALL_P (next)
&& GET_CODE (PATTERN (next)) == PARALLEL)
{
rtx delay = XVECEXP (PATTERN (next), 0, 1);
@@ -3222,7 +3222,7 @@ eligible_for_return_delay (rtx trial)
int regno;
rtx pat;
- if (GET_CODE (trial) != INSN)
+ if (! NONJUMP_INSN_P (trial))
return 0;
if (get_attr_length (trial) != 1)
@@ -3293,7 +3293,7 @@ eligible_for_sibcall_delay (rtx trial)
{
rtx pat;
- if (GET_CODE (trial) != INSN || GET_CODE (PATTERN (trial)) != SET)
+ if (! NONJUMP_INSN_P (trial) || GET_CODE (PATTERN (trial)) != SET)
return 0;
if (get_attr_length (trial) != 1)
@@ -5424,7 +5424,7 @@ sparc_asm_function_epilogue (FILE *file, HOST_WIDE_INT size ATTRIBUTE_UNUSED)
last_real_insn = prev_real_insn (insn);
if (last_real_insn
- && GET_CODE (last_real_insn) == INSN
+ && NONJUMP_INSN_P (last_real_insn)
&& GET_CODE (PATTERN (last_real_insn)) == SEQUENCE)
last_real_insn = XVECEXP (PATTERN (last_real_insn), 0, 0);