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.
* modulo-sched.c: Use sms_sched_loop instead of
MAX_SMS_LOOP_NUMBER to determine the maximum number of loops to
{
tree fndecl = TREE_OPERAND (CALL_EXPR_FN (exp), 0);
unsigned int fcode = DECL_FUNCTION_CODE (fndecl);
- struct builtin_description *d;
+ const struct builtin_description *d;
size_t i;
*expandedp = true;
}
/* 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++)
if (d->code == fcode)
return paired_expand_predicate_builtin (d->icode, exp, target);
static void
paired_init_builtins (void)
{
- struct builtin_description *d;
+ const struct builtin_description *d;
size_t i;
tree endlink = void_list_node;
PAIRED_BUILTIN_STX);
/* Predicates. */
- d = (struct builtin_description *) bdesc_paired_preds;
+ d = bdesc_paired_preds;
for (i = 0; i < ARRAY_SIZE (bdesc_paired_preds); ++i, d++)
{
tree type;