-Wno-error=stringop-truncation \
; do
AC_MSG_CHECKING([for compiler warning $flag])
- SAVED_CFLAGS="$CFLAGS"
- CFLAGS="$CFLAGS $flag"
+ SAVED_CFLAGS=${CFLAGS}
+ CFLAGS="${SAVED_CFLAGS} ${flag} -Werror"
AC_TRY_COMPILE([],[],
- [AC_MSG_RESULT(yes)],
+ [AC_MSG_RESULT(yes)
+ CFLAGS="${SAVED_CFLAGS} ${flag}"],
[AC_MSG_RESULT(no)
- CFLAGS="$SAVED_CFLAGS"])
+ CFLAGS=${SAVED_CFLAGS}])
done
# other possibilities:
SIGINFO_T info,
SIGCONTEXT_T * scp)
{
- int code = ((SIGINFO_VALID_P (info)) ? (SIGINFO_CODE (info)) : 0);
+ int code = (SIGINFO_CODE (info));
bool stack_overflowed_p = (STACK_OVERFLOWED_P ());
enum trap_state old_trap_state = trap_state;
">> [The earlier trap raised signal %d (%s), code %d.]\n",
saved_signo,
(find_signal_name (saved_signo)),
- ((SIGINFO_VALID_P (saved_info))
- ? (SIGINFO_CODE (saved_info))
- : 0));
+ (SIGINFO_CODE (saved_info)));
fprintf (stdout, ">> Successful recovery is %sunlikely.\n",
((WITHIN_CRITICAL_SECTION_P ()) ? "extremely " : ""));
}
{
unsigned long code = 0;
const char * name = 0;
+#ifdef HAVE_REAL_SIGINFO_T
+#ifdef SIGINFO_VALID_P
if (SIGINFO_VALID_P (info))
+#endif
{
code = (SIGINFO_CODE (info));
SPECIAL_SIGNAL_CODE_NAMES ();
entry += 1;
}
}
+#endif /* HAVE_REAL_SIGINFO_T */
return
(cons ((ulong_to_integer (code)),
((name == 0)
(*r_block_addr) = block_addr;
return (pcl_constant);
}
+#ifdef ADDRESS_UCODE_P
if (ADDRESS_UCODE_P (pc))
{
int index = (pc_to_builtin_index (pc));
if ((OBJECT_TYPE (GET_PRIMITIVE)) == TC_PRIMITIVE)
return (pcl_primitive);
}
+#endif /* ADDRESS_UCODE_P */
}
#else
if ((ADDRESS_UCODE_P (pc))
#endif
#define SIGINFO_T siginfo_t *
+#define HAVE_REAL_SIGINFO_T 1
#define SIGINFO_VALID_P(info) ((info) != 0)
-#define SIGINFO_CODE(info) ((info) -> si_code)
+#define SIGINFO_CODE(info) (((info) != 0) ? ((info) -> si_code) : (0))
#define __SIGCONTEXT_REG(scp, ir) ((((scp) -> uc_mcontext) . gregs) [(ir)])
#endif /* mips */
\f
#ifdef __IA32__
-
+
#if defined(__FreeBSD__) || defined(__DragonFly__)
# include <ucontext.h>
#endif
#ifdef HAVE_SIGACTION_SIGINFO_SIGNALS
# define SIGINFO_T siginfo_t *
-# define SIGINFO_VALID_P(info) (1)
+# define HAVE_REAL_SIGINFO_T 1
+# undef SIGINFO_VALID_P
# define SIGINFO_CODE(info) ((info) -> si_code)
# define SIGCONTEXT_ARG_T void
# define SIGCONTEXT_T ucontext_t
#ifndef SIGINFO_T
# define SIGINFO_T int
-# define SIGINFO_VALID_P(info) (0)
+# undef HAVE_REAL_SIGINFO_T
+# undef SIGINFO_VALID_P
# define SIGINFO_CODE(info) (0)
#endif
#ifdef __CYGWIN__
extern unsigned int end;
#endif
-
-#ifndef ADDRESS_UCODE_P
-# define ADDRESS_UCODE_P(addr) (0)
-#endif
\f
/* Machine/OS-independent section */