-Wimplicit-fallthrough warning fixes
[deliverable/binutils-gdb.git] / gas / config / tc-vax.c
index 538a9941d583ef90df210c213bcf8cc7e4ed8abd..e358c842cfac152515c245e48accbeeafc967585 100644 (file)
@@ -236,7 +236,7 @@ const relax_typeS md_relax_table[] =
 #undef WB
 
 void float_cons (int);
-int flonum_gen2vax (char, FLONUM_TYPE *, LITTLENUM_TYPE *);
+int flonum_gen2vax (int, FLONUM_TYPE *, LITTLENUM_TYPE *);
 
 const pseudo_typeS md_pseudo_table[] =
 {
@@ -1796,8 +1796,10 @@ vip_op (char *optext, struct vop *vopP)
        {
        case 'l':
          mode += 2;
+         /* Fall through.  */
        case 'w':
          mode += 2;
+         /* Fall through.  */
        case ' ':       /* Assumed B^ until our caller changes it.  */
        case 'b':
          break;
@@ -2388,8 +2390,8 @@ tc_gen_reloc (asection *section ATTRIBUTE_UNUSED, fixS *fixp)
 #undef F
 #undef MAP
 
-  reloc = xmalloc (sizeof (arelent));
-  reloc->sym_ptr_ptr = xmalloc (sizeof (asymbol *));
+  reloc = XNEW (arelent);
+  reloc->sym_ptr_ptr = XNEW (asymbol *);
   *reloc->sym_ptr_ptr = symbol_get_bfdsym (fixp->fx_addsy);
   reloc->address = fixp->fx_frag->fr_address + fixp->fx_where;
 #ifndef OBJ_ELF
This page took 0.023896 seconds and 4 git commands to generate.