summaryrefslogtreecommitdiff
path: root/gcc/haifa-sched.c
diff options
context:
space:
mode:
authorghazi <ghazi@138bc75d-0d04-0410-961f-82ee72b054a4>2000-02-21 23:27:01 +0000
committerghazi <ghazi@138bc75d-0d04-0410-961f-82ee72b054a4>2000-02-21 23:27:01 +0000
commita61deedf3d55a0e29c0500f603877419160a3651 (patch)
treeab68a041c8b2cd79695b0babfdcf3e374beeb39a /gcc/haifa-sched.c
parent51acd68bcee8e8d54135aa8a15a20020adbffe66 (diff)
downloadgcc-a61deedf3d55a0e29c0500f603877419160a3651.tar.gz
* 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. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@32094 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/haifa-sched.c')
-rw-r--r--gcc/haifa-sched.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gcc/haifa-sched.c b/gcc/haifa-sched.c
index be7dc48f3a0..939ddab2715 100644
--- a/gcc/haifa-sched.c
+++ b/gcc/haifa-sched.c
@@ -3978,8 +3978,8 @@ rank_for_schedule (x, y)
const PTR x;
const PTR y;
{
- rtx tmp = *(rtx *)y;
- rtx tmp2 = *(rtx *)x;
+ rtx tmp = *(const rtx *)y;
+ rtx tmp2 = *(const rtx *)x;
rtx link;
int tmp_class, tmp2_class, depend_count1, depend_count2;
int val, priority_val, spec_val, prob_val, weight_val;