From 47ee9bcb614d58ea60d228bb11563d7df4d279ec Mon Sep 17 00:00:00 2001 From: "Kaveh R. Ghazi" Date: Mon, 21 Feb 2000 23:27:01 +0000 Subject: defaults.h (ASM_OUTPUT_ASCII): Constify a char*. * defaults.h (ASM_OUTPUT_ASCII): Constify a char*. * flow.c (get_common_dest, chain_reorder_blocks, make_reorder_chain, fixup_reorder_chain, skip_insns_between_block): Add static prototypes. (life_analysis): Wrap variable `i' with macro ELIMINABLE_REGS. * haifa-sched.c (rank_for_schedule): Don't cast away const-ness. * integrate.c (compare_blocks, find_block): Likewise. * rtl.c (fatal_with_file_and_line): Add ATTRIBUTE_PRINTF_2. * rtl.h (set_file_and_line_for_stmt): Constify a char*. * stmt.c (stmt_status, set_file_and_line_for_stmt, expand_asm_operands): Likewise. From-SVN: r32094 --- gcc/integrate.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'gcc/integrate.c') diff --git a/gcc/integrate.c b/gcc/integrate.c index cea4bda..b3a22a9 100644 --- a/gcc/integrate.c +++ b/gcc/integrate.c @@ -521,8 +521,8 @@ compare_blocks (v1, v2) const PTR v1; const PTR v2; { - tree b1 = *((tree *) v1); - tree b2 = *((tree *) v2); + tree b1 = *((const tree *) v1); + tree b2 = *((const tree *) v2); return ((char *) BLOCK_ABSTRACT_ORIGIN (b1) - (char *) BLOCK_ABSTRACT_ORIGIN (b2)); @@ -536,10 +536,10 @@ find_block (v1, v2) const PTR v1; const PTR v2; { - tree b1 = (tree) v1; - tree b2 = *((tree *) v2); + const union tree_node *b1 = (const union tree_node *) v1; + tree b2 = *((const tree *) v2); - return ((char *) b1 - (char *) BLOCK_ABSTRACT_ORIGIN (b2)); + return ((const char *) b1 - (char *) BLOCK_ABSTRACT_ORIGIN (b2)); } /* Integrate the procedure defined by FNDECL. Note that this function -- cgit v1.1