From: Richard Kenner Date: Thu, 12 Dec 1996 12:56:00 +0000 (-0500) Subject: Remove unneeded casts to char *. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=ea55c5c6ee270e07e676270be5c216678ad3149f;p=gcc.git Remove unneeded casts to char *. From-SVN: r13292 --- diff --git a/gcc/config/1750a/1750a.md b/gcc/config/1750a/1750a.md index 2f4e75bfb49..fb7c7bfa531 100644 --- a/gcc/config/1750a/1750a.md +++ b/gcc/config/1750a/1750a.md @@ -188,10 +188,12 @@ "* { rtx regops[3]; - regops[0] = XEXP(operands[0],0); - regops[1] = XEXP(operands[1],0); + + regops[0] = XEXP (operands[0], 0); + regops[1] = XEXP (operands[1], 0); regops[2] = operands[2]; - return (char *)movcnt_regno_adjust(regops); + + return movcnt_regno_adjust (regops); } ") @@ -708,7 +710,7 @@ new_opnds[2] = gen_rtx (CONST_INT, VOIDmode, -INTVAL(operands[2])); new_opnds[3] = operands[3]; istr = \"disn\"; - return (char *)mod_regno_adjust(istr,new_opnds); + return mod_regno_adjust (istr, new_opnds); } break; case 2: @@ -721,7 +723,7 @@ istr = \"dv \"; break; } - return (char *)mod_regno_adjust(istr,operands); + return mod_regno_adjust (istr, operands); }") ;; Division for other types is straightforward. @@ -1150,7 +1152,7 @@ (label_ref (match_operand 0 "" "")) (pc)))] "" - "* return (char *)branch_or_jump(\"ez\",CODE_LABEL_NUMBER(operands[0])); + "* return branch_or_jump (\"ez\", CODE_LABEL_NUMBER (operands[0])); ") (define_insn "bne" @@ -1160,7 +1162,7 @@ (label_ref (match_operand 0 "" "")) (pc)))] "" - "* return (char *)branch_or_jump(\"nz\",CODE_LABEL_NUMBER(operands[0])); + "* return branch_or_jump (\"nz\", CODE_LABEL_NUMBER (operands[0])); ") (define_insn "bgt" @@ -1170,7 +1172,7 @@ (label_ref (match_operand 0 "" "")) (pc)))] "" - "* return (char *)branch_or_jump(\"gt\",CODE_LABEL_NUMBER(operands[0])); + "* return branch_or_jump (\"gt\", CODE_LABEL_NUMBER (operands[0])); ") (define_insn "blt" @@ -1180,7 +1182,7 @@ (label_ref (match_operand 0 "" "")) (pc)))] "" - "* return (char *)branch_or_jump(\"lt\",CODE_LABEL_NUMBER(operands[0])); + "* return branch_or_jump (\"lt\", CODE_LABEL_NUMBER (operands[0])); ") (define_insn "bge" @@ -1190,7 +1192,7 @@ (label_ref (match_operand 0 "" "")) (pc)))] "" - "* return (char *)branch_or_jump(\"ge\",CODE_LABEL_NUMBER(operands[0])); + "* return branch_or_jump (\"ge\", CODE_LABEL_NUMBER (operands[0])); ") (define_insn "ble" @@ -1200,7 +1202,7 @@ (label_ref (match_operand 0 "" "")) (pc)))] "" - "* return (char *)branch_or_jump(\"le\",CODE_LABEL_NUMBER(operands[0])); + "* return branch_or_jump (\"le\", CODE_LABEL_NUMBER (operands[0])); ") @@ -1252,7 +1254,7 @@ (pc) (label_ref (match_operand 0 "" ""))))] "" - "* return (char *)branch_or_jump(\"nz\",CODE_LABEL_NUMBER(operands[0])); + "* return branch_or_jump (\"nz\", CODE_LABEL_NUMBER (operands[0])); ") (define_insn "" @@ -1262,7 +1264,7 @@ (pc) (label_ref (match_operand 0 "" ""))))] "" - "* return (char *)branch_or_jump(\"ez\",CODE_LABEL_NUMBER(operands[0])); + "* return branch_or_jump (\"ez\", CODE_LABEL_NUMBER (operands[0])); ") (define_insn "" @@ -1272,7 +1274,7 @@ (pc) (label_ref (match_operand 0 "" ""))))] "" - "* return (char *)branch_or_jump(\"le\",CODE_LABEL_NUMBER(operands[0])); + "* return branch_or_jump (\"le\", CODE_LABEL_NUMBER (operands[0])); ") (define_insn "" @@ -1282,7 +1284,7 @@ (pc) (label_ref (match_operand 0 "" ""))))] "" - "* return (char *)branch_or_jump(\"ge\",CODE_LABEL_NUMBER(operands[0])); + "* return branch_or_jump (\"ge\", CODE_LABEL_NUMBER (operands[0])); ") (define_insn "" @@ -1292,7 +1294,7 @@ (pc) (label_ref (match_operand 0 "" ""))))] "" - "* return (char *)branch_or_jump(\"lt\",CODE_LABEL_NUMBER(operands[0])); + "* return branch_or_jump (\"lt\", CODE_LABEL_NUMBER (operands[0])); ") (define_insn "" @@ -1302,7 +1304,7 @@ (pc) (label_ref (match_operand 0 "" ""))))] "" - "* return (char *)branch_or_jump(\"gt\",CODE_LABEL_NUMBER(operands[0])); + "* return branch_or_jump (\"gt\", CODE_LABEL_NUMBER (operands[0])); ")