This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[PATCH][rs6000] Fix two warnings in rs6000.c cause by bdesc_paired_preds


Hello,

This patch fixes the following two warnings in rs6000.c:

../../gcc/gcc/config/rs6000/rs6000.c: In function גpaired_expand_builtinג:
../../gcc/gcc/config/rs6000/rs6000.c:8228: warning: cast discards
qualifiers from pointer target type
../../gcc/gcc/config/rs6000/rs6000.c: In function גpaired_init_builtinsג:
../../gcc/gcc/config/rs6000/rs6000.c:9149: warning: cast discards
qualifiers from pointer target type

Bootstrapped on ppc64 (only C due to recent failure with
mainline on ppc).

OK for mainline?

:ADDPATCH rs6000:

Thanks,
Revital

2007-09-06  Revital Eres  <eres@il.ibm.com>

        * config/rs6000/rs6000.c: Remove const declaration from
        bdesc_paired_preds struct.


Index: config/rs6000/rs6000.c
===================================================================
--- config/rs6000/rs6000.c      (revision 128178)
+++ config/rs6000/rs6000.c      (working copy)
@@ -7151,7 +7151,7 @@
 };

 /* PAIRED predicates.  */
-static const struct builtin_description bdesc_paired_preds[] =
+static struct builtin_description bdesc_paired_preds[] =
 {
   /* Place-holder.  Leave as first.  */
   { 0, CODE_FOR_paired_cmpu0, "__builtin_paired_cmpu0",
PAIRED_BUILTIN_CMPU0 },

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]