]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
sim: convert old style prototypes
authorMike Frysinger <vapier@gentoo.org>
Thu, 20 Feb 2014 03:29:37 +0000 (22:29 -0500)
committerMike Frysinger <vapier@gentoo.org>
Tue, 4 Mar 2014 07:54:50 +0000 (02:54 -0500)
Most of these prototypes have been killed off, but we have a few left
in the sim tree.  Clean them up so we can enable the -W flag for it.

26 files changed:
sim/bfin/ChangeLog
sim/bfin/configure
sim/common/ChangeLog
sim/common/acinclude.m4
sim/common/callback.c
sim/common/sim-hload.c
sim/common/sim-load.c
sim/common/syscall.c
sim/cr16/ChangeLog
sim/cr16/configure
sim/cris/ChangeLog
sim/cris/configure
sim/d10v/ChangeLog
sim/d10v/configure
sim/igen/ChangeLog
sim/igen/configure
sim/m68hc11/ChangeLog
sim/m68hc11/configure
sim/mips/ChangeLog
sim/mips/configure
sim/mn10300/ChangeLog
sim/mn10300/configure
sim/testsuite/ChangeLog
sim/testsuite/common/bits-gen.c
sim/v850/ChangeLog
sim/v850/configure

index ddd799bd2e5d8797b7585bfd9cf591091817901a..eeaa1fc5812c8d62128b045faead53fc0eb37604 100644 (file)
@@ -1,3 +1,7 @@
+2014-03-04  Mike Frysinger  <vapier@gentoo.org>
+
+       * configure: Regenerate.
+
 2013-09-23  Alan Modra  <amodra@gmail.com>
 
        * configure: Regenerate.
index a50827d1caf1dbd3f24b290cb05e715aa2bc570a..ca4a233a3dc16db603144f013517694b4621ddca 100755 (executable)
@@ -13350,15 +13350,12 @@ if test "${ERROR_ON_WARNING}" = yes ; then
      true
 fi
 
-# The entries after -Wno-pointer-sign are disabled warnings which may
-# be enabled in the future, which can not currently be used to build
-# GDB.
-# NOTE: If you change this list, remember to update
-# gdb/doc/gdbint.texinfo.
 build_warnings="-Wall -Wdeclaration-after-statement -Wpointer-arith \
--Wno-pointer-sign \
+-Wpointer-sign \
 -Wno-unused -Wunused-value -Wunused-function \
--Wno-switch -Wno-char-subscripts -Wmissing-prototypes"
+-Wno-switch -Wno-char-subscripts -Wmissing-prototypes
+-Wdeclaration-after-statement -Wempty-body -Wmissing-parameter-type \
+-Wold-style-declaration -Wold-style-definition"
 
 # Enable -Wno-format by default when using gcc on mingw since many
 # GCC versions complain about %I64.
index 2a5b9d89b86e0fd44dfd11a0d948022d7fb309b0..89e37ca99fb9c220a47c0cc640711baedeaa2d36 100644 (file)
@@ -1,3 +1,75 @@
+2014-03-04  Mike Frysinger  <vapier@gentoo.org>
+
+       * acinclude.m4 (build_warnings): Copy from gdb/configure.ac.
+       * callback.c (system): Delete unused prototype.
+       (os_init): Likewise.
+       (os_shutdown): Likewise.
+       (os_unlink): Likewise.
+       (os_time): Likewise.
+       (os_system): Likewise.
+       (os_rename): Likewise.
+       (os_write_stdout): Likewise.
+       (os_flush_stdout): Likewise.
+       (os_write_stderr): Likewise.
+       (os_flush_stderr): Likewise.
+       (os_write): Likewise.
+       (os_read_stdin): Likewise.
+       (os_read): Likewise.
+       (os_open): Likewise.
+       (os_lseek): Likewise.
+       (os_isatty): Likewise.
+       (os_get_errno): Likewise.
+       (os_close): Likewise.
+       (os_vprintf_filtered): Likewise.
+       (os_evprintf_filtered): Likewise.
+       (os_error): Likewise.
+       (fdmap): Likewise.
+       (fdbad): Likewise.
+       (wrap): Likewise.
+       (wrap): Change to new style prototype.
+       (fdbad): Likewise.
+       (fdmap): Likewise.
+       (os_close): Likewise.
+       (os_poll_quit): Likewise.
+       (os_get_errno): Likewise.
+       (os_isatty): Likewise.
+       (os_lseek): Likewise.
+       (os_open): Likewise.
+       (os_read): Likewise.
+       (os_read_stdin): Likewise.
+       (os_write): Likewise.
+       (os_write_stdout): Likewise.
+       (os_flush_stdout): Likewise.
+       (os_write_stderr): Likewise.
+       (os_flush_stderr): Likewise.
+       (os_rename): Likewise.
+       (os_system): Likewise.
+       (os_time): Likewise.
+       (os_unlink): Likewise.
+       (os_stat): Likewise.
+       (os_fstat): Likewise.
+       (os_lstat): Likewise.
+       (os_ftruncate): Likewise.
+       (os_truncate): Likewise.
+       (os_pipe): Likewise.
+       (os_pipe_empty): Likewise.
+       (os_pipe_nonempty): Likewise.
+       (os_shutdown): Likewise.
+       (os_init): Likewise.
+       (cb_read_target_syscall_maps): Likewise.
+       (cb_target_to_host_syscall): Likewise.
+       (cb_host_to_target_errno): Likewise.
+       (cb_target_to_host_open): Likewise.
+       (cb_store_target_endian): Likewise.
+       (cb_host_to_target_stat): Likewise.
+       * sim-hload.c (sim_load): Change to new style prototype.
+       * sim-load.c (sim_load_file): Change to new style prototype.
+       (report_transfer_performance): Likewise.
+       (xprintf_bfd_vma): Likewise.
+       * syscall.c (cb_get_string): Change to new style prototype.
+       (get_path): Likewise.
+       (cb_syscall): Likewise.
+
 2013-10-15  Hans-Peter Nilsson  <hp@axis.com>
 
        * create-version.sh: Align parameters to match those of
index 6119b332a87e39c95ce0a1a08b143f2e69523930..f96ec35c2fce433ac6b4127cce08530ab8e5dd0c 100644 (file)
@@ -855,15 +855,12 @@ if test "${ERROR_ON_WARNING}" = yes ; then
      true
 fi
 
-# The entries after -Wno-pointer-sign are disabled warnings which may
-# be enabled in the future, which can not currently be used to build
-# GDB.
-# NOTE: If you change this list, remember to update
-# gdb/doc/gdbint.texinfo.
 build_warnings="-Wall -Wdeclaration-after-statement -Wpointer-arith \
--Wno-pointer-sign \
+-Wpointer-sign \
 -Wno-unused -Wunused-value -Wunused-function \
--Wno-switch -Wno-char-subscripts -Wmissing-prototypes"
+-Wno-switch -Wno-char-subscripts -Wmissing-prototypes
+-Wdeclaration-after-statement -Wempty-body -Wmissing-parameter-type \
+-Wold-style-declaration -Wold-style-definition"
 
 # Enable -Wno-format by default when using gcc on mingw since many
 # GCC versions complain about %I64.
index d7a046cab0c596c532b107e375d5f8c25d22bedc..37d42f8559a0529fb4bbbbefeec672ec92f43e3f 100644 (file)
@@ -69,43 +69,10 @@ extern CB_TARGET_DEFS_MAP cb_init_syscall_map[];
 extern CB_TARGET_DEFS_MAP cb_init_errno_map[];
 extern CB_TARGET_DEFS_MAP cb_init_open_map[];
 
-extern int system (const char *);
-
-static int os_init (host_callback *);
-static int os_shutdown (host_callback *);
-static int os_unlink (host_callback *, const char *);
-static long os_time (host_callback *, long *);
-static int os_system (host_callback *, const char *);
-static int os_rename (host_callback *, const char *, const char *);
-static int os_write_stdout (host_callback *, const char *, int);
-static void os_flush_stdout (host_callback *);
-static int os_write_stderr (host_callback *, const char *, int);
-static void os_flush_stderr (host_callback *);
-static int os_write (host_callback *, int, const char *, int);
-static int os_read_stdin (host_callback *, char *, int);
-static int os_read (host_callback *, int, char *, int);
-static int os_open (host_callback *, const char *, int);
-static int os_lseek (host_callback *, int, long, int);
-static int os_isatty (host_callback *, int);
-static int os_get_errno (host_callback *);
-static int os_close (host_callback *, int);
-static void os_vprintf_filtered (host_callback *, const char *, va_list);
-static void os_evprintf_filtered (host_callback *, const char *, va_list);
-static void os_error (host_callback *, const char *, ...)
-#ifdef __GNUC__
-  __attribute__ ((__noreturn__))
-#endif
-  ;
-static int fdmap (host_callback *, int);
-static int fdbad (host_callback *, int);
-static int wrap (host_callback *, int);
-
 /* Set the callback copy of errno from what we see now.  */
 
 static int
-wrap (p, val)
-     host_callback *p;
-     int val;
+wrap (host_callback *p, int val)
 {
   p->last_errno = errno;
   return val;
@@ -115,9 +82,7 @@ wrap (p, val)
    and set errno. */
 
 static int
-fdbad (p, fd)
-     host_callback *p;
-     int fd;
+fdbad (host_callback *p, int fd)
 {
   if (fd < 0 || fd > MAX_CALLBACK_FDS || p->fd_buddy[fd] < 0)
     {
@@ -128,17 +93,13 @@ fdbad (p, fd)
 }
 
 static int
-fdmap (p, fd)
-     host_callback *p;
-     int fd;
+fdmap (host_callback *p, int fd)
 {
   return p->fdmap[fd];
 }
 
 static int
-os_close (p, fd)
-     host_callback *p;
-     int fd;
+os_close (host_callback *p, int fd)
 {
   int result;
   int i, next;
@@ -206,8 +167,7 @@ os_close (p, fd)
 
 #if defined(__GO32__) || defined (_MSC_VER)
 static int
-os_poll_quit (p)
-     host_callback *p;
+os_poll_quit (host_callback *p)
 {
 #if defined(__GO32__)
   int kbhit ();
@@ -244,17 +204,14 @@ os_poll_quit (p)
 #endif /* defined(__GO32__) || defined(_MSC_VER) */
 
 static int
-os_get_errno (p)
-     host_callback *p;
+os_get_errno (host_callback *p)
 {
   return cb_host_to_target_errno (p, p->last_errno);
 }
 
 
 static int
-os_isatty (p, fd)
-     host_callback *p;
-     int fd;
+os_isatty (host_callback *p, int fd)
 {
   int result;
 
@@ -267,11 +224,7 @@ os_isatty (p, fd)
 }
 
 static int
-os_lseek (p, fd, off, way)
-     host_callback *p;
-     int fd;
-     long off;
-     int way;
+os_lseek (host_callback *p, int fd, long off, int way)
 {
   int result;
 
@@ -283,10 +236,7 @@ os_lseek (p, fd, off, way)
 }
 
 static int
-os_open (p, name, flags)
-     host_callback *p;
-     const char *name;
-     int flags;
+os_open (host_callback *p, const char *name, int flags)
 {
   int i;
   for (i = 0; i < MAX_CALLBACK_FDS; i++)
@@ -309,11 +259,7 @@ os_open (p, name, flags)
 }
 
 static int
-os_read (p, fd, buf, len)
-     host_callback *p;
-     int fd;
-     char *buf;
-     int len;
+os_read (host_callback *p, int fd, char *buf, int len)
 {
   int result;
 
@@ -366,20 +312,13 @@ os_read (p, fd, buf, len)
 }
 
 static int
-os_read_stdin (p, buf, len)
-     host_callback *p;
-     char *buf;
-     int len;
+os_read_stdin (host_callback *p, char *buf, int len)
 {
   return wrap (p, read (0, buf, len));
 }
 
 static int
-os_write (p, fd, buf, len)
-     host_callback *p;
-     int fd;
-     const char *buf;
-     int len;
+os_write (host_callback *p, int fd, const char *buf, int len)
 {
   int result;
   int real_fd;
@@ -447,77 +386,57 @@ os_write (p, fd, buf, len)
 }
 
 static int
-os_write_stdout (p, buf, len)
-     host_callback *p ATTRIBUTE_UNUSED;
-     const char *buf;
-     int len;
+os_write_stdout (host_callback *p ATTRIBUTE_UNUSED, const char *buf, int len)
 {
   return fwrite (buf, 1, len, stdout);
 }
 
 static void
-os_flush_stdout (p)
-     host_callback *p ATTRIBUTE_UNUSED;
+os_flush_stdout (host_callback *p ATTRIBUTE_UNUSED)
 {
   fflush (stdout);
 }
 
 static int
-os_write_stderr (p, buf, len)
-     host_callback *p ATTRIBUTE_UNUSED;
-     const char *buf;
-     int len;
+os_write_stderr (host_callback *p ATTRIBUTE_UNUSED, const char *buf, int len)
 {
   return fwrite (buf, 1, len, stderr);
 }
 
 static void
-os_flush_stderr (p)
-     host_callback *p ATTRIBUTE_UNUSED;
+os_flush_stderr (host_callback *p ATTRIBUTE_UNUSED)
 {
   fflush (stderr);
 }
 
 static int
-os_rename (p, f1, f2)
-     host_callback *p;
-     const char *f1;
-     const char *f2;
+os_rename (host_callback *p, const char *f1, const char *f2)
 {
   return wrap (p, rename (f1, f2));
 }
 
 
 static int
-os_system (p, s)
-     host_callback *p;
-     const char *s;
+os_system (host_callback *p, const char *s)
 {
   return wrap (p, system (s));
 }
 
 static long
-os_time (p, t)
-     host_callback *p;
-     long *t;
+os_time (host_callback *p, long *t)
 {
   return wrap (p, time (t));
 }
 
 
 static int
-os_unlink (p, f1)
-     host_callback *p;
-     const char *f1;
+os_unlink (host_callback *p, const char *f1)
 {
   return wrap (p, unlink (f1));
 }
 
 static int
-os_stat (p, file, buf)
-     host_callback *p;
-     const char *file;
-     struct stat *buf;
+os_stat (host_callback *p, const char *file, struct stat *buf)
 {
   /* ??? There is an issue of when to translate to the target layout.
      One could do that inside this function, or one could have the
@@ -527,10 +446,7 @@ os_stat (p, file, buf)
 }
 
 static int
-os_fstat (p, fd, buf)
-     host_callback *p;
-     int fd;
-     struct stat *buf;
+os_fstat (host_callback *p, int fd, struct stat *buf)
 {
   if (fdbad (p, fd))
     return -1;
@@ -574,10 +490,7 @@ os_fstat (p, fd, buf)
 }
 
 static int
-os_lstat (p, file, buf)
-     host_callback *p;
-     const char *file;
-     struct stat *buf;
+os_lstat (host_callback *p, const char *file, struct stat *buf)
 {
   /* NOTE: hpn/2004-12-12: Same issue here as with os_fstat.  */
 #ifdef HAVE_LSTAT
@@ -588,10 +501,7 @@ os_lstat (p, file, buf)
 }
 
 static int
-os_ftruncate (p, fd, len)
-     host_callback *p;
-     int fd;
-     long len;
+os_ftruncate (host_callback *p, int fd, long len)
 {
   int result;
 
@@ -613,10 +523,7 @@ os_ftruncate (p, fd, len)
 }
 
 static int
-os_truncate (p, file, len)
-     host_callback *p;
-     const char *file;
-     long len;
+os_truncate (host_callback *p, const char *file, long len)
 {
 #ifdef HAVE_TRUNCATE
   return wrap (p, truncate (file, len));
@@ -627,9 +534,7 @@ os_truncate (p, file, len)
 }
 
 static int
-os_pipe (p, filedes)
-     host_callback *p;
-     int *filedes;
+os_pipe (host_callback *p, int *filedes)
 {
   int i;
 
@@ -669,10 +574,7 @@ os_pipe (p, filedes)
    now empty (so the writer should leave its waiting state).  */
 
 static void
-os_pipe_empty (p, reader, writer)
-     host_callback *p;
-     int reader;
-     int writer;
+os_pipe_empty (host_callback *p, int reader, int writer)
 {
 }
 
@@ -680,16 +582,12 @@ os_pipe_empty (p, reader, writer)
    non-empty (so the writer should wait).  */
 
 static void
-os_pipe_nonempty (p, reader, writer)
-     host_callback *p;
-     int reader;
-     int writer;
+os_pipe_nonempty (host_callback *p, int reader, int writer)
 {
 }
 
 static int
-os_shutdown (p)
-     host_callback *p;
+os_shutdown (host_callback *p)
 {
   int i, next, j;
   for (i = 0; i < MAX_CALLBACK_FDS; i++)
@@ -729,8 +627,7 @@ os_shutdown (p)
 }
 
 static int
-os_init (p)
-     host_callback *p;
+os_init (host_callback *p)
 {
   int i;
 
@@ -778,6 +675,9 @@ os_evprintf_filtered (host_callback *p ATTRIBUTE_UNUSED, const char *format, va_
 }
 
 /* VARARGS */
+#ifdef __GNUC__
+__attribute__ ((__noreturn__))
+#endif
 static void
 os_error (host_callback *p ATTRIBUTE_UNUSED, const char *format, ...)
 {
@@ -861,9 +761,7 @@ host_callback default_callback =
    If an error occurs, the existing mapping is not changed.  */
 
 CB_RC
-cb_read_target_syscall_maps (cb, file)
-     host_callback *cb;
-     const char *file;
+cb_read_target_syscall_maps (host_callback *cb, const char *file)
 {
   CB_TARGET_DEFS_MAP *syscall_map, *errno_map, *open_map, *signal_map;
   const char *stat_map;
@@ -903,9 +801,7 @@ cb_read_target_syscall_maps (cb, file)
    ??? Perhaps this should be renamed to ..._canon_syscall.  */
 
 int
-cb_target_to_host_syscall (cb, target_val)
-     host_callback *cb;
-     int target_val;
+cb_target_to_host_syscall (host_callback *cb, int target_val)
 {
   CB_TARGET_DEFS_MAP *m;
 
@@ -923,9 +819,7 @@ cb_target_to_host_syscall (cb, target_val)
 /* Translate the host's version of errno to the target's.  */
 
 int
-cb_host_to_target_errno (cb, host_val)
-     host_callback *cb;
-     int host_val;
+cb_host_to_target_errno (host_callback *cb, int host_val)
 {
   CB_TARGET_DEFS_MAP *m;
 
@@ -945,9 +839,7 @@ cb_host_to_target_errno (cb, host_val)
    to machine generate this function.  */
 
 int
-cb_target_to_host_open (cb, target_val)
-     host_callback *cb;
-     int target_val;
+cb_target_to_host_open (host_callback *cb, int target_val)
 {
   int host_val = 0;
   CB_TARGET_DEFS_MAP *m;
@@ -981,14 +873,12 @@ cb_target_to_host_open (cb, target_val)
 }
 
 /* Utility for e.g. cb_host_to_target_stat to store values in the target's
-   stat struct.  */
+   stat struct.
+
+   ??? The "val" must be as big as target word size.  */
 
 void
-cb_store_target_endian (cb, p, size, val)
-     host_callback *cb;
-     char *p;
-     int size;
-     long val; /* ??? must be as big as target word size */
+cb_store_target_endian (host_callback *cb, char *p, int size, long val)
 {
   if (cb->target_endian == BFD_ENDIAN_BIG)
     {
@@ -1017,10 +907,7 @@ cb_store_target_endian (cb, p, size, val)
    or zero if an error occurred during the translation.  */
 
 int
-cb_host_to_target_stat (cb, hs, ts)
-     host_callback *cb;
-     const struct stat *hs;
-     PTR ts;
+cb_host_to_target_stat (host_callback *cb, const struct stat *hs, PTR ts)
 {
   const char *m = cb->stat_map;
   char *p;
index 9466770bf4349a5b90a9fffe8e3c8643fe0a4ae4..66a981bc5c979aa40d9b1f1ff2106106b85fc60b 100644 (file)
@@ -27,11 +27,7 @@ along with this program.  If not, see <http://www.gnu.org/licenses/>.  */
    modeling a hardware platform. */
 
 SIM_RC
-sim_load (sd, prog_name, prog_bfd, from_tty)
-     SIM_DESC sd;
-     char *prog_name;
-     struct bfd *prog_bfd;
-     int from_tty;
+sim_load (SIM_DESC sd, char *prog_name, struct bfd *prog_bfd, int from_tty)
 {
   bfd *result_bfd;
 
index 48c0a93169f64b6760e37fb747e41d5ec96cbc83..f077065bcf5cb273bb17d964ce0a152d3ab54aa0 100644 (file)
@@ -56,15 +56,9 @@ static void xprintf_bfd_vma (host_callback *, bfd_vma);
 
 
 bfd *
-sim_load_file (sd, myname, callback, prog, prog_bfd, verbose_p, lma_p, do_write)
-     SIM_DESC sd;
-     const char *myname;
-     host_callback *callback;
-     char *prog;
-     bfd *prog_bfd;
-     int verbose_p;
-     int lma_p;
-     sim_write_fn do_write;
+sim_load_file (SIM_DESC sd, const char *myname, host_callback *callback,
+              char *prog, bfd *prog_bfd, int verbose_p, int lma_p,
+              sim_write_fn do_write)
 {
   asection *s;
   /* Record separately as we don't want to close PROG_BFD if it was passed.  */
@@ -195,10 +189,8 @@ eprintf (host_callback *callback, const char *fmt, ...)
 /* Report how fast the transfer went. */
 
 static void
-report_transfer_performance (callback, data_count, start_time, end_time)
-     host_callback *callback;
-     unsigned long data_count;
-     time_t start_time, end_time;
+report_transfer_performance (host_callback *callback, unsigned long data_count,
+                            time_t start_time, time_t end_time)
 {
   xprintf (callback, "Transfer rate: ");
   if (end_time != start_time)
@@ -213,9 +205,7 @@ report_transfer_performance (callback, data_count, start_time, end_time)
    This is intended to handle the vagaries of 32 vs 64 bits, etc.  */
 
 static void
-xprintf_bfd_vma (callback, vma)
-     host_callback *callback;
-     bfd_vma vma;
+xprintf_bfd_vma (host_callback *callback, bfd_vma vma)
 {
   /* FIXME: for now */
   xprintf (callback, "0x%lx", (unsigned long) vma);
index 10d58aa7e27e77a549ad92aa98cb83d1539e42b2..397cd80c504422c4cd5d25c860dfa796054a9fb1 100644 (file)
@@ -76,12 +76,8 @@ char *simulator_sysroot = "";
    The result is 0 for success or a host errno value.  */
 
 int
-cb_get_string (cb, sc, buf, buflen, addr)
-     host_callback *cb;
-     CB_SYSCALL *sc;
-     char *buf;
-     int buflen;
-     TADDR addr;
+cb_get_string (host_callback *cb, CB_SYSCALL *sc, char *buf, int buflen,
+              TADDR addr)
 {
   char *p, *pend;
 
@@ -110,11 +106,7 @@ cb_get_string (cb, sc, buf, buflen, addr)
    If an error occurs, no buffer is left malloc'd.  */
 
 static int
-get_path (cb, sc, addr, bufp)
-     host_callback *cb;
-     CB_SYSCALL *sc;
-     TADDR addr;
-     char **bufp;
+get_path (host_callback *cb, CB_SYSCALL *sc, TADDR addr, char **bufp)
 {
   char *buf = xmalloc (MAX_PATH_LEN);
   int result;
@@ -147,9 +139,7 @@ get_path (cb, sc, addr, bufp)
 /* Perform a system call on behalf of the target.  */
 
 CB_RC
-cb_syscall (cb, sc)
-     host_callback *cb;
-     CB_SYSCALL *sc;
+cb_syscall (host_callback *cb, CB_SYSCALL *sc)
 {
   TWORD result = 0, errcode = 0;
 
index f421820b7bed6fa5c27bed505fb41bc88fcc198b..8e32571b7c652f951921c1e56d4320f1fd8dd076 100644 (file)
@@ -1,3 +1,7 @@
+2014-03-04  Mike Frysinger  <vapier@gentoo.org>
+
+       * configure: Regenerate.
+
 2013-09-23  Alan Modra  <amodra@gmail.com>
 
        * configure: Regenerate.
index 392162e925fa98a931aea0622b98c71e5295b23f..9683a9c92a47fde23ec5d25f2c44305f855d32ce 100644 (file)
@@ -12898,15 +12898,12 @@ if test "${ERROR_ON_WARNING}" = yes ; then
      true
 fi
 
-# The entries after -Wno-pointer-sign are disabled warnings which may
-# be enabled in the future, which can not currently be used to build
-# GDB.
-# NOTE: If you change this list, remember to update
-# gdb/doc/gdbint.texinfo.
 build_warnings="-Wall -Wdeclaration-after-statement -Wpointer-arith \
--Wno-pointer-sign \
+-Wpointer-sign \
 -Wno-unused -Wunused-value -Wunused-function \
--Wno-switch -Wno-char-subscripts -Wmissing-prototypes"
+-Wno-switch -Wno-char-subscripts -Wmissing-prototypes
+-Wdeclaration-after-statement -Wempty-body -Wmissing-parameter-type \
+-Wold-style-declaration -Wold-style-definition"
 
 # Enable -Wno-format by default when using gcc on mingw since many
 # GCC versions complain about %I64.
index 093b16fb4933b361ddfc0f918159a8e85e0a0b3a..07d04b070402498836cd6d1463e26feac577c71b 100644 (file)
@@ -1,3 +1,7 @@
+2014-03-04  Mike Frysinger  <vapier@gentoo.org>
+
+       * configure: Regenerate.
+
 2013-09-23  Alan Modra  <amodra@gmail.com>
 
        * configure: Regenerate.
index 1f0b812143065d19a95c2aea51d8fd69a08d944c..42490acba853155b7c158869944f11a19c8c2edf 100755 (executable)
@@ -13249,15 +13249,12 @@ if test "${ERROR_ON_WARNING}" = yes ; then
      true
 fi
 
-# The entries after -Wno-pointer-sign are disabled warnings which may
-# be enabled in the future, which can not currently be used to build
-# GDB.
-# NOTE: If you change this list, remember to update
-# gdb/doc/gdbint.texinfo.
 build_warnings="-Wall -Wdeclaration-after-statement -Wpointer-arith \
--Wno-pointer-sign \
+-Wpointer-sign \
 -Wno-unused -Wunused-value -Wunused-function \
--Wno-switch -Wno-char-subscripts -Wmissing-prototypes"
+-Wno-switch -Wno-char-subscripts -Wmissing-prototypes
+-Wdeclaration-after-statement -Wempty-body -Wmissing-parameter-type \
+-Wold-style-declaration -Wold-style-definition"
 
 # Enable -Wno-format by default when using gcc on mingw since many
 # GCC versions complain about %I64.
index 086c78bdff417758b57b8df4e0dfa511d813cb0e..1231a5f1598b475ef503c6df96e361c1e295d896 100644 (file)
@@ -1,3 +1,7 @@
+2014-03-04  Mike Frysinger  <vapier@gentoo.org>
+
+       * configure: Regenerate.
+
 2013-09-23  Alan Modra  <amodra@gmail.com>
 
        * configure: Regenerate.
index 392162e925fa98a931aea0622b98c71e5295b23f..9683a9c92a47fde23ec5d25f2c44305f855d32ce 100755 (executable)
@@ -12898,15 +12898,12 @@ if test "${ERROR_ON_WARNING}" = yes ; then
      true
 fi
 
-# The entries after -Wno-pointer-sign are disabled warnings which may
-# be enabled in the future, which can not currently be used to build
-# GDB.
-# NOTE: If you change this list, remember to update
-# gdb/doc/gdbint.texinfo.
 build_warnings="-Wall -Wdeclaration-after-statement -Wpointer-arith \
--Wno-pointer-sign \
+-Wpointer-sign \
 -Wno-unused -Wunused-value -Wunused-function \
--Wno-switch -Wno-char-subscripts -Wmissing-prototypes"
+-Wno-switch -Wno-char-subscripts -Wmissing-prototypes
+-Wdeclaration-after-statement -Wempty-body -Wmissing-parameter-type \
+-Wold-style-declaration -Wold-style-definition"
 
 # Enable -Wno-format by default when using gcc on mingw since many
 # GCC versions complain about %I64.
index d7ceeb42e59750986f00fee6004d1c669a36ab8c..7c7c43620ac295298de7a5ccf407ff2e01ae7897 100644 (file)
@@ -1,3 +1,7 @@
+2014-03-04  Mike Frysinger  <vapier@gentoo.org>
+
+       * configure: Regenerate.
+
 2013-11-25  Steve Ellcey  <sellcey@mips.com>
 
        * igen/Makefile.in (igen): Use BUILD_CFLAGS in link.
index 06ae4cbf95293737b92634f389e1839cc295f4da..32f115415a4dbd708fd2fb437f4a763c72917376 100755 (executable)
@@ -4794,15 +4794,12 @@ if test "${ERROR_ON_WARNING}" = yes ; then
      true
 fi
 
-# The entries after -Wno-pointer-sign are disabled warnings which may
-# be enabled in the future, which can not currently be used to build
-# GDB.
-# NOTE: If you change this list, remember to update
-# gdb/doc/gdbint.texinfo.
 build_warnings="-Wall -Wdeclaration-after-statement -Wpointer-arith \
--Wno-pointer-sign \
+-Wpointer-sign \
 -Wno-unused -Wunused-value -Wunused-function \
--Wno-switch -Wno-char-subscripts -Wmissing-prototypes"
+-Wno-switch -Wno-char-subscripts -Wmissing-prototypes
+-Wdeclaration-after-statement -Wempty-body -Wmissing-parameter-type \
+-Wold-style-declaration -Wold-style-definition"
 
 # Enable -Wno-format by default when using gcc on mingw since many
 # GCC versions complain about %I64.
index d8c9f3191cfa2ce962dce8dba44710d251d755f8..8f23c901b99e8a32329411233f54967e8f6d3d8e 100644 (file)
@@ -1,3 +1,7 @@
+2014-03-04  Mike Frysinger  <vapier@gentoo.org>
+
+       * configure: Regenerate.
+
 2013-09-23  Alan Modra  <amodra@gmail.com>
 
        * configure: Regenerate.
index d8b8ba916c273e176adf306632689faf419a6612..71180820d36c64dae6055ed567a9f2612f51182f 100755 (executable)
@@ -13248,15 +13248,12 @@ if test "${ERROR_ON_WARNING}" = yes ; then
      true
 fi
 
-# The entries after -Wno-pointer-sign are disabled warnings which may
-# be enabled in the future, which can not currently be used to build
-# GDB.
-# NOTE: If you change this list, remember to update
-# gdb/doc/gdbint.texinfo.
 build_warnings="-Wall -Wdeclaration-after-statement -Wpointer-arith \
--Wno-pointer-sign \
+-Wpointer-sign \
 -Wno-unused -Wunused-value -Wunused-function \
--Wno-switch -Wno-char-subscripts -Wmissing-prototypes"
+-Wno-switch -Wno-char-subscripts -Wmissing-prototypes
+-Wdeclaration-after-statement -Wempty-body -Wmissing-parameter-type \
+-Wold-style-declaration -Wold-style-definition"
 
 # Enable -Wno-format by default when using gcc on mingw since many
 # GCC versions complain about %I64.
index 43a26d50af8922db2c7df116f97ab2eaa1a12ae2..efbd4ce3d21f23cd9c1bf2e9b17859e00abd51a0 100644 (file)
@@ -1,3 +1,7 @@
+2014-03-04  Mike Frysinger  <vapier@gentoo.org>
+
+       * configure: Regenerate.
+
 2013-09-23  Alan Modra  <amodra@gmail.com>
 
        * configure: Regenerate.
index a4ed5d95ff349b8d840728c68522d0181889a0bb..c81dc52adf5adfe5899f314e8e27bd42c99dfd81 100755 (executable)
@@ -13277,15 +13277,12 @@ if test "${ERROR_ON_WARNING}" = yes ; then
      true
 fi
 
-# The entries after -Wno-pointer-sign are disabled warnings which may
-# be enabled in the future, which can not currently be used to build
-# GDB.
-# NOTE: If you change this list, remember to update
-# gdb/doc/gdbint.texinfo.
 build_warnings="-Wall -Wdeclaration-after-statement -Wpointer-arith \
--Wno-pointer-sign \
+-Wpointer-sign \
 -Wno-unused -Wunused-value -Wunused-function \
--Wno-switch -Wno-char-subscripts -Wmissing-prototypes"
+-Wno-switch -Wno-char-subscripts -Wmissing-prototypes
+-Wdeclaration-after-statement -Wempty-body -Wmissing-parameter-type \
+-Wold-style-declaration -Wold-style-definition"
 
 # Enable -Wno-format by default when using gcc on mingw since many
 # GCC versions complain about %I64.
@@ -13744,7 +13741,7 @@ if test ${sim_gen} = MULTI; then
 
   cat << __EOF__ > multi-run.c
 /* Main entry point for MULTI simulators.
-   Copyright (C) 2003-2013 Free Software Foundation, Inc.
+   Copyright (C) 2003-2014 Free Software Foundation, Inc.
 
    This program is free software; you can redistribute it and/or modify
    it under the terms of the GNU General Public License as published by
index 2595469567ae1c424544e795a3ac3fec4ecdb50f..20fea6b95d86d652b8f520979dd065eecaba499a 100644 (file)
@@ -1,3 +1,7 @@
+2014-03-04  Mike Frysinger  <vapier@gentoo.org>
+
+       * configure: Regenerate.
+
 2013-09-23  Alan Modra  <amodra@gmail.com>
 
        * configure: Regenerate.
index 25f57f317b8e777bbc0ac1c2fab5e46aec697e44..7f2315528241616d6a997de12834391d22f60f57 100755 (executable)
@@ -13254,15 +13254,12 @@ if test "${ERROR_ON_WARNING}" = yes ; then
      true
 fi
 
-# The entries after -Wno-pointer-sign are disabled warnings which may
-# be enabled in the future, which can not currently be used to build
-# GDB.
-# NOTE: If you change this list, remember to update
-# gdb/doc/gdbint.texinfo.
 build_warnings="-Wall -Wdeclaration-after-statement -Wpointer-arith \
--Wno-pointer-sign \
+-Wpointer-sign \
 -Wno-unused -Wunused-value -Wunused-function \
--Wno-switch -Wno-char-subscripts -Wmissing-prototypes"
+-Wno-switch -Wno-char-subscripts -Wmissing-prototypes
+-Wdeclaration-after-statement -Wempty-body -Wmissing-parameter-type \
+-Wold-style-declaration -Wold-style-definition"
 
 # Enable -Wno-format by default when using gcc on mingw since many
 # GCC versions complain about %I64.
index 899bd83a6f426aec66da48c9a9eaff279b72c0a6..86aa1ce9030ef6675b31f77e7a28481dfd037ad1 100644 (file)
@@ -1,3 +1,7 @@
+2014-03-04  Mike Frysinger  <vapier@gentoo.org>
+
+       * common/bits-gen.c (main): Change to new style prototype.
+
 2013-09-23  Alan Modra  <amodra@gmail.com>
 
        * configure: Regenerate.
index 5f1e51d2144df86e6b529e53b4a978fd82e6394e..66665878f676176b839272224ce0cf1064127088 100644 (file)
@@ -193,9 +193,7 @@ usage (int reason)
 
 
 int
-main (argc, argv)
-     int argc;
-     char **argv;
+main (int argc, char *argv[])
 {
   int bitsize;
   int msb;
@@ -224,14 +222,14 @@ main (argc, argv)
     ms = "MS";
   else
     ms = "LS";
-  
+
   if (strcmp (argv [3], "big") == 0)
     big_endian = 1;
   else if (strcmp (argv [3], "little") == 0)
     big_endian = 0;
   else
     usage (4);
-    
+
   printf ("#define WITH_TARGET_WORD_BITSIZE %d\n", bitsize);
   printf ("#define WITH_TARGET_WORD_MSB %d\n", msb);
   printf ("#define WITH_HOST_WORD_BITSIZE %d\n", sizeof (int) * 8);
index 4837e58c704437f5aa7eb908fe681b3d39f7656a..d97d2c8048e8253954a8ff3b04d60b51a8ee8128 100644 (file)
@@ -1,3 +1,7 @@
+2014-03-04  Mike Frysinger  <vapier@gentoo.org>
+
+       * configure: Regenerate.
+
 2013-09-23  Alan Modra  <amodra@gmail.com>
 
        * configure: Regenerate.
index ab05e6d0a0cc113cd6aa56e3af65224522b4dffe..a02f2133e4b22f53235330e2412464feb2745d4e 100755 (executable)
@@ -13248,15 +13248,12 @@ if test "${ERROR_ON_WARNING}" = yes ; then
      true
 fi
 
-# The entries after -Wno-pointer-sign are disabled warnings which may
-# be enabled in the future, which can not currently be used to build
-# GDB.
-# NOTE: If you change this list, remember to update
-# gdb/doc/gdbint.texinfo.
 build_warnings="-Wall -Wdeclaration-after-statement -Wpointer-arith \
--Wno-pointer-sign \
+-Wpointer-sign \
 -Wno-unused -Wunused-value -Wunused-function \
--Wno-switch -Wno-char-subscripts -Wmissing-prototypes"
+-Wno-switch -Wno-char-subscripts -Wmissing-prototypes
+-Wdeclaration-after-statement -Wempty-body -Wmissing-parameter-type \
+-Wold-style-declaration -Wold-style-definition"
 
 # Enable -Wno-format by default when using gcc on mingw since many
 # GCC versions complain about %I64.