Don't pass unadorned zeros to varargs functions
authorYaakov Selkowitz <yselkowi@redhat.com>
Thu, 25 Dec 2014 10:55:38 +0000 (21:25 +1030)
committerAlan Modra <amodra@gmail.com>
Thu, 25 Dec 2014 10:58:55 +0000 (21:28 +1030)
PR gas/17753
* config/tc-mep.c (md_begin): Specify types of vararg literals.

gas/ChangeLog
gas/config/tc-mep.c

index 2d45f3b8074e08b74bf0e7e1ea131a1f516678f0..ef7febf9885f432daf493849ca56c1213c1d3a64 100644 (file)
@@ -1,3 +1,8 @@
+2014-12-25  Yaakov Selkowitz  <yselkowi@redhat.com>
+
+       PR gas/17753
+       * config/tc-mep.c (md_begin): Specify types of vararg literals.
+
 2014-12-24  Andrew Burgess  <andrew.burgess@embecosm.com>
 
        * doc/c-avr.texi: Document -mlink-relax and -mno-link-relax.
index cb068817c2b3b13d6a03b0b8366ce38d635f2f9e..c6b67e167a321a0f4ce93a6d0e61058c2d96b0bf 100644 (file)
@@ -486,12 +486,12 @@ md_begin ()
   mep_cop = mep_config_map[mep_config_index].cpu_flag & EF_MEP_COP_MASK;
 
   /* Set the machine number and endian.  */
-  gas_cgen_cpu_desc = mep_cgen_cpu_open (CGEN_CPU_OPEN_MACHS, 0,
+  gas_cgen_cpu_desc = mep_cgen_cpu_open (CGEN_CPU_OPEN_MACHS, 0U,
                                         CGEN_CPU_OPEN_ENDIAN,
                                         target_big_endian
                                         ? CGEN_ENDIAN_BIG
                                         : CGEN_ENDIAN_LITTLE,
-                                        CGEN_CPU_OPEN_ISAS, 0,
+                                        CGEN_CPU_OPEN_ISAS, (CGEN_BITSET *) 0,
                                         CGEN_CPU_OPEN_END);
   mep_cgen_init_asm (gas_cgen_cpu_desc);
 
This page took 0.027095 seconds and 4 git commands to generate.