diff options
author | Zack Weinberg <zack@codesourcery.com> | 2004-08-18 17:05:14 +0000 |
---|---|---|
committer | Zack Weinberg <zack@gcc.gnu.org> | 2004-08-18 17:05:14 +0000 |
commit | f822d2527eda821d7faeab8370a896d4591a100d (patch) | |
tree | f6d253960bbff5f5f18a47a866cab10b8ece1664 /gcc/config | |
parent | 6aaf3ddef9a6fccf796ff13c7a03952c5d350158 (diff) | |
download | gcc-f822d2527eda821d7faeab8370a896d4591a100d.zip gcc-f822d2527eda821d7faeab8370a896d4591a100d.tar.gz gcc-f822d2527eda821d7faeab8370a896d4591a100d.tar.bz2 |
rtl.def (NIL): Delete.
* rtl.def (NIL): Delete.
* read-rtl.c (read_rtx): Handle (nil) like (define_constants).
Tighten the syntax a little.
* cfgloop.h, combine.c, cse.c, loop-iv.c, postreload.c, reload.c
* config/alpha/alpha.c, config/alpha/alpha.h, config/arc/arc.h
* config/arm/arm.h, config/frv/frv.h, config/i386/i386.c
* config/i386/predicates.md, config/m32r/m32r.h
* config/m68hc11/m68hc11.c, config/mcore/mcore.h, config/mips/mips.c
* config/mmix/mmix.c, config/pa/pa.h, config/sh/sh.h
* config/sparc/sparc.h, doc/tm.texi:
Replace all occurrences of NIL with UNKNOWN.
From-SVN: r86193
Diffstat (limited to 'gcc/config')
-rw-r--r-- | gcc/config/alpha/alpha.c | 12 | ||||
-rw-r--r-- | gcc/config/alpha/alpha.h | 2 | ||||
-rw-r--r-- | gcc/config/arc/arc.h | 2 | ||||
-rw-r--r-- | gcc/config/arm/arm.h | 4 | ||||
-rw-r--r-- | gcc/config/frv/frv.h | 4 | ||||
-rw-r--r-- | gcc/config/i386/i386.c | 46 | ||||
-rw-r--r-- | gcc/config/i386/predicates.md | 6 | ||||
-rw-r--r-- | gcc/config/m32r/m32r.h | 2 | ||||
-rw-r--r-- | gcc/config/m68hc11/m68hc11.c | 10 | ||||
-rw-r--r-- | gcc/config/mcore/mcore.h | 2 | ||||
-rw-r--r-- | gcc/config/mips/mips.c | 2 | ||||
-rw-r--r-- | gcc/config/mmix/mmix.c | 6 | ||||
-rw-r--r-- | gcc/config/pa/pa.h | 2 | ||||
-rw-r--r-- | gcc/config/rs6000/rs6000.h | 2 | ||||
-rw-r--r-- | gcc/config/sh/sh.h | 4 | ||||
-rw-r--r-- | gcc/config/sparc/sparc.h | 2 |
16 files changed, 54 insertions, 54 deletions
diff --git a/gcc/config/alpha/alpha.c b/gcc/config/alpha/alpha.c index 6252e88..1ecd836 100644 --- a/gcc/config/alpha/alpha.c +++ b/gcc/config/alpha/alpha.c @@ -2321,13 +2321,13 @@ alpha_emit_conditional_branch (enum rtx_code code) /* When we are not as concerned about non-finite values, and we are comparing against zero, we can branch directly. */ if (op1 == CONST0_RTX (DFmode)) - cmp_code = NIL, branch_code = code; + cmp_code = UNKNOWN, branch_code = code; else if (op0 == CONST0_RTX (DFmode)) { /* Undo the swap we probably did just above. */ tem = op0, op0 = op1, op1 = tem; branch_code = swap_condition (cmp_code); - cmp_code = NIL; + cmp_code = UNKNOWN; } } else @@ -2347,7 +2347,7 @@ alpha_emit_conditional_branch (enum rtx_code code) { /* Whee. Compare and branch against 0 directly. */ if (op1 == const0_rtx) - cmp_code = NIL, branch_code = code; + cmp_code = UNKNOWN, branch_code = code; /* If the constants doesn't fit into an immediate, but can be generated by lda/ldah, we adjust the argument and @@ -2380,7 +2380,7 @@ alpha_emit_conditional_branch (enum rtx_code code) /* Emit an initial compare instruction, if necessary. */ tem = op0; - if (cmp_code != NIL) + if (cmp_code != UNKNOWN) { tem = gen_reg_rtx (cmp_mode); emit_move_insn (tem, gen_rtx_fmt_ee (cmp_code, cmp_mode, op0, op1)); @@ -2441,7 +2441,7 @@ alpha_emit_setcc (enum rtx_code code) /* The general case: fold the comparison code to the types of compares that we have, choosing the branch as necessary. */ - cmp_code = NIL; + cmp_code = UNKNOWN; switch (code) { case EQ: case LE: case LT: case LEU: case LTU: @@ -2485,7 +2485,7 @@ alpha_emit_setcc (enum rtx_code code) } /* Emit an initial compare instruction, if necessary. */ - if (cmp_code != NIL) + if (cmp_code != UNKNOWN) { enum machine_mode mode = fp_p ? DFmode : DImode; diff --git a/gcc/config/alpha/alpha.h b/gcc/config/alpha/alpha.h index d2ab933..37d53f5 100644 --- a/gcc/config/alpha/alpha.h +++ b/gcc/config/alpha/alpha.h @@ -1370,7 +1370,7 @@ do { \ /* Define if loading in MODE, an integral mode narrower than BITS_PER_WORD will either zero-extend or sign-extend. The value of this macro should be the code that says which one of the two operations is implicitly - done, NIL if none. */ + done, UNKNOWN if none. */ #define LOAD_EXTEND_OP(MODE) ((MODE) == SImode ? SIGN_EXTEND : ZERO_EXTEND) /* Define if loading short immediate values into registers sign extends. */ diff --git a/gcc/config/arc/arc.h b/gcc/config/arc/arc.h index d615364..eefac0c 100644 --- a/gcc/config/arc/arc.h +++ b/gcc/config/arc/arc.h @@ -1155,7 +1155,7 @@ do { if ((LOG) != 0) fprintf (FILE, "\t.align %d\n", 1 << (LOG)); } while (0) /* Define if loading in MODE, an integral mode narrower than BITS_PER_WORD will either zero-extend or sign-extend. The value of this macro should be the code that says which one of the two operations is implicitly - done, NIL if none. */ + done, UNKNOWN if none. */ #define LOAD_EXTEND_OP(MODE) ZERO_EXTEND /* Max number of bytes we can move from memory to memory diff --git a/gcc/config/arm/arm.h b/gcc/config/arm/arm.h index ec92410..135a574 100644 --- a/gcc/config/arm/arm.h +++ b/gcc/config/arm/arm.h @@ -2217,11 +2217,11 @@ do { \ /* Define if loading in MODE, an integral mode narrower than BITS_PER_WORD will either zero-extend or sign-extend. The value of this macro should be the code that says which one of the two operations is implicitly - done, NIL if none. */ + done, UNKNOWN if none. */ #define LOAD_EXTEND_OP(MODE) \ (TARGET_THUMB ? ZERO_EXTEND : \ ((arm_arch4 || (MODE) == QImode) ? ZERO_EXTEND \ - : ((BYTES_BIG_ENDIAN && (MODE) == HImode) ? SIGN_EXTEND : NIL))) + : ((BYTES_BIG_ENDIAN && (MODE) == HImode) ? SIGN_EXTEND : UNKNOWN))) /* Nonzero if access to memory by bytes is slow and undesirable. */ #define SLOW_BYTE_ACCESS 0 diff --git a/gcc/config/frv/frv.h b/gcc/config/frv/frv.h index b31facf..bb960e6 100644 --- a/gcc/config/frv/frv.h +++ b/gcc/config/frv/frv.h @@ -3089,12 +3089,12 @@ do { \ memory in MODE, an integral mode narrower than a word, set the bits outside of MODE to be either the sign-extension or the zero-extension of the data read. Return `SIGN_EXTEND' for values of MODE for which the insn - sign-extends, `ZERO_EXTEND' for which it zero-extends, and `NIL' for other + sign-extends, `ZERO_EXTEND' for which it zero-extends, and `UNKNOWN' for other modes. This macro is not called with MODE non-integral or with a width greater than or equal to `BITS_PER_WORD', so you may return any value in this case. Do - not define this macro if it would always return `NIL'. On machines where + not define this macro if it would always return `UNKNOWN'. On machines where this macro is defined, you will normally define it as the constant `SIGN_EXTEND' or `ZERO_EXTEND'. */ #define LOAD_EXTEND_OP(MODE) SIGN_EXTEND diff --git a/gcc/config/i386/i386.c b/gcc/config/i386/i386.c index 9080767..50e56ad 100644 --- a/gcc/config/i386/i386.c +++ b/gcc/config/i386/i386.c @@ -6016,7 +6016,7 @@ put_condition_code (enum rtx_code code, enum machine_mode mode, int reverse, { enum rtx_code second_code, bypass_code; ix86_fp_comparison_codes (code, &bypass_code, &code, &second_code); - if (bypass_code != NIL || second_code != NIL) + if (bypass_code != UNKNOWN || second_code != UNKNOWN) abort (); code = ix86_fp_compare_code_to_integer (code); mode = CCmode; @@ -7961,7 +7961,7 @@ ix86_fp_compare_code_to_integer (enum rtx_code code) /* Split comparison code CODE into comparisons we can do using branch instructions. BYPASS_CODE is comparison code for branch that will branch around FIRST_CODE and SECOND_CODE. If some of branches - is not required, set value to NIL. + is not required, set value to UNKNOWN. We never require more than two branches. */ void @@ -7970,8 +7970,8 @@ ix86_fp_comparison_codes (enum rtx_code code, enum rtx_code *bypass_code, enum rtx_code *second_code) { *first_code = code; - *bypass_code = NIL; - *second_code = NIL; + *bypass_code = UNKNOWN; + *second_code = UNKNOWN; /* The fcomi comparison sets flags as follows: @@ -8021,8 +8021,8 @@ ix86_fp_comparison_codes (enum rtx_code code, enum rtx_code *bypass_code, } if (!TARGET_IEEE_FP) { - *second_code = NIL; - *bypass_code = NIL; + *second_code = UNKNOWN; + *bypass_code = UNKNOWN; } } @@ -8074,7 +8074,7 @@ ix86_fp_comparison_fcomi_cost (enum rtx_code code) if (!TARGET_CMOVE) return 1024; ix86_fp_comparison_codes (code, &bypass_code, &first_code, &second_code); - return (bypass_code != NIL || second_code != NIL) + 2; + return (bypass_code != UNKNOWN || second_code != UNKNOWN) + 2; } /* Return cost of comparison done using sahf operation. @@ -8088,7 +8088,7 @@ ix86_fp_comparison_sahf_cost (enum rtx_code code) if (!TARGET_USE_SAHF && !optimize_size) return 1024; ix86_fp_comparison_codes (code, &bypass_code, &first_code, &second_code); - return (bypass_code != NIL || second_code != NIL) + 3; + return (bypass_code != UNKNOWN || second_code != UNKNOWN) + 3; } /* Compute cost of the comparison done using any method. @@ -8132,8 +8132,8 @@ ix86_expand_fp_compare (enum rtx_code code, rtx op0, rtx op1, rtx scratch, ix86_fp_comparison_codes (code, &bypass_code, &first_code, &second_code); /* Do fcomi/sahf based test when profitable. */ - if ((bypass_code == NIL || bypass_test) - && (second_code == NIL || second_test) + if ((bypass_code == UNKNOWN || bypass_test) + && (second_code == UNKNOWN || second_test) && ix86_fp_comparison_arithmetics_cost (code) > cost) { if (TARGET_CMOVE) @@ -8156,11 +8156,11 @@ ix86_expand_fp_compare (enum rtx_code code, rtx op0, rtx op1, rtx scratch, /* The FP codes work out to act like unsigned. */ intcmp_mode = fpcmp_mode; code = first_code; - if (bypass_code != NIL) + if (bypass_code != UNKNOWN) *bypass_test = gen_rtx_fmt_ee (bypass_code, VOIDmode, gen_rtx_REG (intcmp_mode, FLAGS_REG), const0_rtx); - if (second_code != NIL) + if (second_code != UNKNOWN) *second_test = gen_rtx_fmt_ee (second_code, VOIDmode, gen_rtx_REG (intcmp_mode, FLAGS_REG), const0_rtx); @@ -8326,7 +8326,7 @@ ix86_fp_jump_nontrivial_p (enum rtx_code code) if (!TARGET_CMOVE) return true; ix86_fp_comparison_codes (code, &bypass_code, &first_code, &second_code); - return bypass_code != NIL || second_code != NIL; + return bypass_code != UNKNOWN || second_code != UNKNOWN; } void @@ -8363,7 +8363,7 @@ ix86_expand_branch (enum rtx_code code, rtx label) /* Check whether we will use the natural sequence with one jump. If so, we can expand jump early. Otherwise delay expansion by creating compound insn to not confuse optimizers. */ - if (bypass_code == NIL && second_code == NIL + if (bypass_code == UNKNOWN && second_code == UNKNOWN && TARGET_CMOVE) { ix86_split_fp_branch (code, ix86_compare_op0, ix86_compare_op1, @@ -8476,8 +8476,8 @@ ix86_expand_branch (enum rtx_code code, rtx label) case LEU: code1 = LTU; code2 = GTU; break; case GEU: code1 = GTU; code2 = LTU; break; - case EQ: code1 = NIL; code2 = NE; break; - case NE: code2 = NIL; break; + case EQ: code1 = UNKNOWN; code2 = NE; break; + case NE: code2 = UNKNOWN; break; default: abort (); @@ -8494,16 +8494,16 @@ ix86_expand_branch (enum rtx_code code, rtx label) ix86_compare_op0 = hi[0]; ix86_compare_op1 = hi[1]; - if (code1 != NIL) + if (code1 != UNKNOWN) ix86_expand_branch (code1, label); - if (code2 != NIL) + if (code2 != UNKNOWN) ix86_expand_branch (code2, label2); ix86_compare_op0 = lo[0]; ix86_compare_op1 = lo[1]; ix86_expand_branch (code3, label); - if (code2 != NIL) + if (code2 != UNKNOWN) emit_label (label2); return; } @@ -8968,7 +8968,7 @@ ix86_expand_int_movcc (rtx operands[]) } } - compare_code = NIL; + compare_code = UNKNOWN; if (GET_MODE_CLASS (GET_MODE (ix86_compare_op0)) == MODE_INT && GET_CODE (ix86_compare_op1) == CONST_INT) { @@ -8985,7 +8985,7 @@ ix86_expand_int_movcc (rtx operands[]) } /* Optimize dest = (op0 < 0) ? -1 : cf. */ - if (compare_code != NIL + if (compare_code != UNKNOWN && GET_MODE (ix86_compare_op0) == GET_MODE (out) && (cf == -1 || ct == -1)) { @@ -9113,12 +9113,12 @@ ix86_expand_int_movcc (rtx operands[]) else { code = reverse_condition (code); - if (compare_code != NIL) + if (compare_code != UNKNOWN) compare_code = reverse_condition (compare_code); } } - if (compare_code != NIL) + if (compare_code != UNKNOWN) { /* notl op1 (if needed) sarl $31, op1 diff --git a/gcc/config/i386/predicates.md b/gcc/config/i386/predicates.md index 58a7dbc..220b01c 100644 --- a/gcc/config/i386/predicates.md +++ b/gcc/config/i386/predicates.md @@ -671,7 +671,7 @@ { enum rtx_code second_code, bypass_code; ix86_fp_comparison_codes (code, &bypass_code, &code, &second_code); - if (bypass_code != NIL || second_code != NIL) + if (bypass_code != UNKNOWN || second_code != UNKNOWN) return 0; code = ix86_fp_compare_code_to_integer (code); } @@ -715,7 +715,7 @@ { enum rtx_code second_code, bypass_code; ix86_fp_comparison_codes (code, &bypass_code, &code, &second_code); - return (bypass_code == NIL && second_code == NIL); + return (bypass_code == UNKNOWN && second_code == UNKNOWN); } switch (code) { @@ -755,7 +755,7 @@ { enum rtx_code second_code, bypass_code; ix86_fp_comparison_codes (code, &bypass_code, &code, &second_code); - if (bypass_code != NIL || second_code != NIL) + if (bypass_code != UNKNOWN || second_code != UNKNOWN) return 0; code = ix86_fp_compare_code_to_integer (code); } diff --git a/gcc/config/m32r/m32r.h b/gcc/config/m32r/m32r.h index 2f38e0a..948ba2a 100644 --- a/gcc/config/m32r/m32r.h +++ b/gcc/config/m32r/m32r.h @@ -1712,7 +1712,7 @@ extern char m32r_punct_chars[256]; /* Define if loading in MODE, an integral mode narrower than BITS_PER_WORD will either zero-extend or sign-extend. The value of this macro should be the code that says which one of the two operations is implicitly - done, NIL if none. */ + done, UNKNOWN if none. */ #define LOAD_EXTEND_OP(MODE) ZERO_EXTEND /* Max number of bytes we can move from memory diff --git a/gcc/config/m68hc11/m68hc11.c b/gcc/config/m68hc11/m68hc11.c index ba58e8b..e719ee1 100644 --- a/gcc/config/m68hc11/m68hc11.c +++ b/gcc/config/m68hc11/m68hc11.c @@ -2782,11 +2782,11 @@ m68hc11_expand_compare_and_branch (enum rtx_code code, rtx op0, rtx op1, break; case EQ: - code1 = NIL; + code1 = UNKNOWN; code2 = NE; break; case NE: - code2 = NIL; + code2 = UNKNOWN; break; default: @@ -2800,14 +2800,14 @@ m68hc11_expand_compare_and_branch (enum rtx_code code, rtx op0, rtx op1, * if (lo(a) < lo(b)) goto true; * false: */ - if (code1 != NIL) + if (code1 != UNKNOWN) m68hc11_expand_compare_and_branch (code1, hi[0], hi[1], label); - if (code2 != NIL) + if (code2 != UNKNOWN) m68hc11_expand_compare_and_branch (code2, hi[0], hi[1], label2); m68hc11_expand_compare_and_branch (code3, lo[0], lo[1], label); - if (code2 != NIL) + if (code2 != UNKNOWN) emit_label (label2); return 0; } diff --git a/gcc/config/mcore/mcore.h b/gcc/config/mcore/mcore.h index 3ec2dd7..3b78d7f 100644 --- a/gcc/config/mcore/mcore.h +++ b/gcc/config/mcore/mcore.h @@ -901,7 +901,7 @@ extern const enum reg_class reg_class_from_letter[]; /* Define if loading in MODE, an integral mode narrower than BITS_PER_WORD will either zero-extend or sign-extend. The value of this macro should be the code that says which one of the two operations is implicitly - done, NIL if none. */ + done, UNKNOWN if none. */ #define LOAD_EXTEND_OP(MODE) ZERO_EXTEND /* Nonzero if access to memory by bytes is slow and undesirable. */ diff --git a/gcc/config/mips/mips.c b/gcc/config/mips/mips.c index 08e38ca..148bf27 100644 --- a/gcc/config/mips/mips.c +++ b/gcc/config/mips/mips.c @@ -1515,7 +1515,7 @@ mips_build_integer (struct mips_integer_op *codes, || LUI_OPERAND (value)) { /* The value can be loaded with a single instruction. */ - codes[0].code = NIL; + codes[0].code = UNKNOWN; codes[0].value = value; return 1; } diff --git a/gcc/config/mmix/mmix.c b/gcc/config/mmix/mmix.c index ae69548..6c5a193 100644 --- a/gcc/config/mmix/mmix.c +++ b/gcc/config/mmix/mmix.c @@ -2701,12 +2701,12 @@ mmix_output_condition (FILE *stream, rtx x, int reversed) { enum machine_mode cc_mode; - /* Terminated with {NIL, NULL, NULL} */ + /* Terminated with {UNKNOWN, NULL, NULL} */ const struct cc_conv *const convs; }; #undef CCEND -#define CCEND {NIL, NULL, NULL} +#define CCEND {UNKNOWN, NULL, NULL} static const struct cc_conv cc_fun_convs[] = {{ORDERED, "Z", "P"}, @@ -2764,7 +2764,7 @@ mmix_output_condition (FILE *stream, rtx x, int reversed) { if (mode == cc_convs[i].cc_mode) { - for (j = 0; cc_convs[i].convs[j].cc != NIL; j++) + for (j = 0; cc_convs[i].convs[j].cc != UNKNOWN; j++) if (cc == cc_convs[i].convs[j].cc) { const char *mmix_cc diff --git a/gcc/config/pa/pa.h b/gcc/config/pa/pa.h index 588b805..aefecd2 100644 --- a/gcc/config/pa/pa.h +++ b/gcc/config/pa/pa.h @@ -1720,7 +1720,7 @@ do { \ /* Define if loading in MODE, an integral mode narrower than BITS_PER_WORD will either zero-extend or sign-extend. The value of this macro should be the code that says which one of the two operations is implicitly - done, NIL if none. */ + done, UNKNOWN if none. */ #define LOAD_EXTEND_OP(MODE) ZERO_EXTEND /* Nonzero if access to memory by bytes is slow and undesirable. */ diff --git a/gcc/config/rs6000/rs6000.h b/gcc/config/rs6000/rs6000.h index 1f5caaa..4fd677e 100644 --- a/gcc/config/rs6000/rs6000.h +++ b/gcc/config/rs6000/rs6000.h @@ -2133,7 +2133,7 @@ do { \ /* Define if loading in MODE, an integral mode narrower than BITS_PER_WORD will either zero-extend or sign-extend. The value of this macro should be the code that says which one of the two operations is implicitly - done, NIL if none. */ + done, UNKNOWN if none. */ #define LOAD_EXTEND_OP(MODE) ZERO_EXTEND /* Define if loading short immediate values into registers sign extends. */ diff --git a/gcc/config/sh/sh.h b/gcc/config/sh/sh.h index 2a5392a..a66129a 100644 --- a/gcc/config/sh/sh.h +++ b/gcc/config/sh/sh.h @@ -2929,13 +2929,13 @@ struct sh_args { /* Define if loading in MODE, an integral mode narrower than BITS_PER_WORD will either zero-extend or sign-extend. The value of this macro should be the code that says which one of the two operations is implicitly - done, NIL if none. */ + done, UNKNOWN if none. */ /* For SHmedia, we can truncate to QImode easier using zero extension. */ /* FP registers can load SImode values, but don't implicitly sign-extend them to DImode. */ #define LOAD_EXTEND_OP(MODE) \ (((MODE) == QImode && TARGET_SHMEDIA) ? ZERO_EXTEND \ - : (MODE) != SImode ? SIGN_EXTEND : NIL) + : (MODE) != SImode ? SIGN_EXTEND : UNKNOWN) /* Define if loading short immediate values into registers sign extends. */ #define SHORT_IMMEDIATES_SIGN_EXTEND diff --git a/gcc/config/sparc/sparc.h b/gcc/config/sparc/sparc.h index db72f35..719900b 100644 --- a/gcc/config/sparc/sparc.h +++ b/gcc/config/sparc/sparc.h @@ -2246,7 +2246,7 @@ do { \ /* Define if loading in MODE, an integral mode narrower than BITS_PER_WORD will either zero-extend or sign-extend. The value of this macro should be the code that says which one of the two operations is implicitly - done, NIL if none. */ + done, UNKNOWN if none. */ #define LOAD_EXTEND_OP(MODE) ZERO_EXTEND /* Nonzero if access to memory by bytes is slow and undesirable. |