Commit 23a651fc by Revital Eres Committed by Revital Eres

Fix two warnings in rs6000.c cause by bdesc_paired_preds

From-SVN: r128293
parent 97511ad7
2007-09-09 Revital Eres <eres@il.ibm.com> 2007-09-09 Revital Eres <eres@il.ibm.com>
* config/rs6000/rs6000.c (paired_init_builtins): Add const
declaration to bdesc_paired_preds variable.
(paired_expand_builtin): Likewise.
2007-09-09 Revital Eres <eres@il.ibm.com>
* dbgcnt.def (sms_sched_loop): New counter. * dbgcnt.def (sms_sched_loop): New counter.
* modulo-sched.c: Use sms_sched_loop instead of * modulo-sched.c: Use sms_sched_loop instead of
MAX_SMS_LOOP_NUMBER to determine the maximum number of loops to MAX_SMS_LOOP_NUMBER to determine the maximum number of loops to
...@@ -8213,7 +8213,7 @@ paired_expand_builtin (tree exp, rtx target, bool * expandedp) ...@@ -8213,7 +8213,7 @@ paired_expand_builtin (tree exp, rtx target, bool * expandedp)
{ {
tree fndecl = TREE_OPERAND (CALL_EXPR_FN (exp), 0); tree fndecl = TREE_OPERAND (CALL_EXPR_FN (exp), 0);
unsigned int fcode = DECL_FUNCTION_CODE (fndecl); unsigned int fcode = DECL_FUNCTION_CODE (fndecl);
struct builtin_description *d; const struct builtin_description *d;
size_t i; size_t i;
*expandedp = true; *expandedp = true;
...@@ -8230,7 +8230,7 @@ paired_expand_builtin (tree exp, rtx target, bool * expandedp) ...@@ -8230,7 +8230,7 @@ paired_expand_builtin (tree exp, rtx target, bool * expandedp)
} }
/* Expand the paired predicates. */ /* Expand the paired predicates. */
d = (struct builtin_description *) bdesc_paired_preds; d = bdesc_paired_preds;
for (i = 0; i < ARRAY_SIZE (bdesc_paired_preds); i++, d++) for (i = 0; i < ARRAY_SIZE (bdesc_paired_preds); i++, d++)
if (d->code == fcode) if (d->code == fcode)
return paired_expand_predicate_builtin (d->icode, exp, target); return paired_expand_predicate_builtin (d->icode, exp, target);
...@@ -9116,7 +9116,7 @@ spe_init_builtins (void) ...@@ -9116,7 +9116,7 @@ spe_init_builtins (void)
static void static void
paired_init_builtins (void) paired_init_builtins (void)
{ {
struct builtin_description *d; const struct builtin_description *d;
size_t i; size_t i;
tree endlink = void_list_node; tree endlink = void_list_node;
...@@ -9151,7 +9151,7 @@ paired_init_builtins (void) ...@@ -9151,7 +9151,7 @@ paired_init_builtins (void)
PAIRED_BUILTIN_STX); PAIRED_BUILTIN_STX);
/* Predicates. */ /* Predicates. */
d = (struct builtin_description *) bdesc_paired_preds; d = bdesc_paired_preds;
for (i = 0; i < ARRAY_SIZE (bdesc_paired_preds); ++i, d++) for (i = 0; i < ARRAY_SIZE (bdesc_paired_preds); ++i, d++)
{ {
tree type; tree type;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment