aboutsummaryrefslogtreecommitdiff
path: root/gas
diff options
context:
space:
mode:
authorYaakov Selkowitz <yselkowi@redhat.com>2014-12-25 21:25:38 +1030
committerAlan Modra <amodra@gmail.com>2014-12-25 21:28:55 +1030
commit6fd9d738c04fd1dd1d73c08f8a384ea3c8a160ab (patch)
tree93d76795c39ae9849a4a93bab03978f465da1907 /gas
parent5c294fee9abb6bb259519d9cf164c34b81b83312 (diff)
downloadfsf-binutils-gdb-6fd9d738c04fd1dd1d73c08f8a384ea3c8a160ab.zip
fsf-binutils-gdb-6fd9d738c04fd1dd1d73c08f8a384ea3c8a160ab.tar.gz
fsf-binutils-gdb-6fd9d738c04fd1dd1d73c08f8a384ea3c8a160ab.tar.bz2
Don't pass unadorned zeros to varargs functions
PR gas/17753 * config/tc-mep.c (md_begin): Specify types of vararg literals.
Diffstat (limited to 'gas')
-rw-r--r--gas/ChangeLog5
-rw-r--r--gas/config/tc-mep.c4
2 files changed, 7 insertions, 2 deletions
diff --git a/gas/ChangeLog b/gas/ChangeLog
index 2d45f3b..ef7febf 100644
--- a/gas/ChangeLog
+++ b/gas/ChangeLog
@@ -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.
diff --git a/gas/config/tc-mep.c b/gas/config/tc-mep.c
index cb06881..c6b67e1 100644
--- a/gas/config/tc-mep.c
+++ b/gas/config/tc-mep.c
@@ -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);