sim: moxie: cleanup build warnings
authorMike Frysinger <vapier@gentoo.org>
Sun, 31 Jan 2021 17:06:29 +0000 (12:06 -0500)
committerMike Frysinger <vapier@gentoo.org>
Sun, 31 Jan 2021 17:06:29 +0000 (12:06 -0500)
This port only had one minor warning left in it, so fix it and then
enable -Werror behavior by deleting the macro call.  We'll use the
common default now (which is -Werror).

sim/moxie/ChangeLog
sim/moxie/configure
sim/moxie/configure.ac
sim/moxie/interp.c

index 4a10ac365bad629bda172b008561b817c6ad01e8..d85c578413554175afa4103784f156c74ce4bc7e 100644 (file)
@@ -1,3 +1,9 @@
+2021-01-31  Mike Frysinger  <vapier@gentoo.org>
+
+       * interp.c (sim_create_inferior): Add const to avp.
+       * configure.ac (SIM_AC_OPTION_WARNINGS): Delete call.
+       * configure: Regenerate.
+
 2021-01-30  Mike Frysinger  <vapier@gentoo.org>
 
        * interp.c (sim_open): Delete STATE_WATCHPOINTS (sd)->sizeof_pc.
index d500eef4ed9c1e45cf79866819995f478493f33c..1cf6e5bc547bd1ccbfaa4a2c7b1b1685fca2bd1f 100755 (executable)
@@ -6906,7 +6906,15 @@ fi
 test -z "$AR" && AR=ar
 if test -n "$plugin_option"; then
   if $AR --help 2>&1 | grep -q "\--plugin"; then
-    AR="$AR $plugin_option"
+    touch conftest.c
+    $AR $plugin_option rc conftest.a conftest.c
+    if test "$?" != 0; then
+      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Failed: $AR $plugin_option rc" >&5
+$as_echo "$as_me: WARNING: Failed: $AR $plugin_option rc" >&2;}
+    else
+      AR="$AR $plugin_option"
+    fi
+    rm -f conftest.*
   fi
 fi
 test -z "$AR_FLAGS" && AR_FLAGS=cru
@@ -12930,7 +12938,7 @@ else
   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
   lt_status=$lt_dlunknown
   cat > conftest.$ac_ext <<_LT_EOF
-#line 12933 "configure"
+#line 12941 "configure"
 #include "confdefs.h"
 
 #if HAVE_DLFCN_H
@@ -13036,7 +13044,7 @@ else
   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
   lt_status=$lt_dlunknown
   cat > conftest.$ac_ext <<_LT_EOF
-#line 13039 "configure"
+#line 13047 "configure"
 #include "confdefs.h"
 
 #if HAVE_DLFCN_H
@@ -13772,6 +13780,7 @@ fi
 fi
 
 
+
 # Check whether --enable-werror was given.
 if test "${enable_werror+set}" = set; then :
   enableval=$enable_werror; case "${enableval}" in
@@ -13788,6 +13797,9 @@ if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then
 fi
 
 WERROR_CFLAGS=""
+  if test "${ERROR_ON_WARNING}" = yes ; then
+    WERROR_CFLAGS="-Werror"
+  fi
 
 build_warnings="-Wall -Wdeclaration-after-statement -Wpointer-arith \
 -Wpointer-sign \
@@ -13869,7 +13881,6 @@ $as_echo "${WARN_CFLAGS} ${WERROR_CFLAGS}" >&6; }
 fi
 
 
-
 cgen_breaks=""
 if grep CGEN_MAINT $srcdir/Makefile.in >/dev/null; then
 cgen_breaks="break cgen_rtx_error";
index a02e13a3dcb59475cd8ec8d67113f331b49b9738..6477249d4252b626798c78e7a81967136c82c72a 100644 (file)
@@ -8,6 +8,5 @@ AC_CHECK_TOOL(DTC, dtc)
 
 SIM_AC_OPTION_ENDIAN(BIG)
 SIM_AC_OPTION_ALIGNMENT(STRICT_ALIGNMENT)
-SIM_AC_OPTION_WARNINGS(no)
 
 SIM_AC_OUTPUT
index c5f9ed6416038c853a9a1d88c8236ac929d4bedc..87e1c157542c17d81886c421486557b1bc6eedca 100644 (file)
@@ -1295,7 +1295,7 @@ SIM_RC
 sim_create_inferior (SIM_DESC sd, struct bfd *prog_bfd,
                     char * const *argv, char * const *env)
 {
-  char *avp;
+  char * const *avp;
   int l, argc, i, tp;
   sim_cpu *scpu = STATE_CPU (sd, 0); /* FIXME */
 
This page took 0.031411 seconds and 4 git commands to generate.