return true;
memory_modified = false;
note_stores (as_a<const rtx_insn *> (insn), memory_modified_1,
- CONST_CAST_RTX(mem));
+ const_cast<rtx> (mem));
return memory_modified;
}
case SYMBOL_REF:
case CONST_INT:
(imm_values->imm)++;
- if (x86_64_immediate_operand (CONST_CAST_RTX (x), SImode))
+ if (x86_64_immediate_operand (const_cast<rtx> (x), SImode))
(imm_values->imm32)++;
else
(imm_values->imm64)++;
(plus (unspec [(symbol_ref ("x")) (reg 2)] tocrel) 4)
without this hack would be output as "x@toc+4". We
want "x+4@toc". */
- output_addr_const (file, CONST_CAST_RTX (tocrel_base_oac));
+ output_addr_const (file, const_cast<rtx> (tocrel_base_oac));
else if (GET_CODE (x) == UNSPEC && XINT (x, 1) == UNSPEC_TLSGD)
output_addr_const (file, XVECEXP (x, 0, 0));
else if (GET_CODE (x) == UNSPEC && XINT (x, 1) == UNSPEC_PLTSEQ)
. (plus (unspec [(symbol_ref ("x")) (reg 2)] tocrel) 8))
without this hack would be output as "x@toc+8@l(9)". We
want "x+8@toc@l(9)". */
- output_addr_const (file, CONST_CAST_RTX (tocrel_base_oac));
+ output_addr_const (file, const_cast<rtx> (tocrel_base_oac));
if (GET_CODE (x) == LO_SUM)
fprintf (file, "@l(%s)", reg_names[REGNO (XEXP (x, 0))]);
else
{
if (INTVAL (tocrel_offset_oac) >= 0)
fprintf (file, "+");
- output_addr_const (file, CONST_CAST_RTX (tocrel_offset_oac));
+ output_addr_const (file, const_cast<rtx> (tocrel_offset_oac));
}
if (!TARGET_AIX || (TARGET_ELF && TARGET_MINIMAL_TOC))
{
int
asm_noperands (const_rtx body)
{
- rtx asm_op = extract_asm_operands (CONST_CAST_RTX (body));
+ rtx asm_op = extract_asm_operands (const_cast<rtx> (body));
int i, n_sets = 0;
if (asm_op == NULL)
|| targetm.sched.skip_rtx_p (x)))
{
*nx = XVECEXP (x, 0, 0);
- *ny = CONST_CAST_RTX (y);
+ *ny = const_cast<rtx> (y);
return true;
}
&& (targetm.sched.skip_rtx_p == NULL
|| targetm.sched.skip_rtx_p (y)))
{
- *nx = CONST_CAST_RTX (x);
+ *nx = const_cast<rtx> (x);
*ny = XVECEXP (y, 0, 0);
return true;
}
#endif
#define CONST_CAST(TYPE,X) CONST_CAST2 (TYPE, const TYPE, (X))
#define CONST_CAST_TREE(X) CONST_CAST (union tree_node *, (X))
-#define CONST_CAST_RTX(X) CONST_CAST (struct rtx_def *, (X))
#define CONST_CAST_BB(X) CONST_CAST (struct basic_block_def *, (X))
#define CONST_CAST_GIMPLE(X) CONST_CAST (gimple *, (X))
adjust_mems, data);
if (new_dest != SET_DEST (expr))
{
- rtx xexpr = CONST_CAST_RTX (expr);
+ rtx xexpr = const_cast<rtx> (expr);
validate_change (NULL_RTX, &SET_DEST (xexpr), new_dest, true);
}
}
if (!TREE_ASM_WRITTEN (DECL_INITIAL (decl)))
{
n_deferred_constants--;
- output_constant_def_contents (CONST_CAST_RTX (x));
+ output_constant_def_contents (const_cast<rtx> (x));
}
}
}