OSDN Git Service

Fix two warnings in rs6000.c cause by bdesc_paired_preds
authorrevitale <revitale@138bc75d-0d04-0410-961f-82ee72b054a4>
Sun, 9 Sep 2007 09:29:30 +0000 (09:29 +0000)
committerrevitale <revitale@138bc75d-0d04-0410-961f-82ee72b054a4>
Sun, 9 Sep 2007 09:29:30 +0000 (09:29 +0000)
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@128293 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/ChangeLog
gcc/config/rs6000/rs6000.c

index e950e64..851c46c 100644 (file)
@@ -1,5 +1,11 @@
 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
index be82c3f..5ada791 100644 (file)
@@ -8213,7 +8213,7 @@ paired_expand_builtin (tree exp, rtx target, bool * expandedp)
 {
   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;
@@ -8230,7 +8230,7 @@ paired_expand_builtin (tree exp, rtx target, bool * expandedp)
     }
 
   /* 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);
@@ -9116,7 +9116,7 @@ spe_init_builtins (void)
 static void
 paired_init_builtins (void)
 {
-  struct builtin_description *d;
+  const struct builtin_description *d;
   size_t i;
   tree endlink = void_list_node;
 
@@ -9151,7 +9151,7 @@ paired_init_builtins (void)
               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;