#define itype_rt(x) ((x >> 16) & 0x1f)
#define rtype_funct(x) (x & 0x3f)
+static inline UInt getUInt(UChar * p) __attribute__((unused));
/* Do a endian load of a 32-bit word, regardless of the
endianness of the underlying host. */
static inline UInt getUInt(UChar * p)
Reader-writer lock not locked by calling thread: rwlock 0x.........
at 0x........: pthread_rwlock_unlock (drd_pthread_intercepts.c:?)
- by 0x........: safe_pthread_rwlock_unlock (safe-pthread.h:58)
+ by 0x........: safe_pthread_rwlock_unlock (safe-pthread.h:59)
by 0x........: main (tc12_rwl_trivial.c:29)
rwlock 0x........ was first observed at:
at 0x........: pthread_rwlock_init (drd_pthread_intercepts.c:?)
siglongjmp( env, EPERM );
}
+static int safe_pthread_rwlock_unlock( pthread_rwlock_t *rwlock ) __attribute__((unused));
/*
* Wrapper for pthread_rwlock_unlock which may execute xend
* unconditionally when used on a lock that is not locked.
siglongjmp( env, EINVAL );
}
+static int safe_sem_post( sem_t *sem ) __attribute__((unused));
static int safe_sem_post( sem_t *sem ) {
struct sigaction sa;
struct sigaction oldsa;
# C++ tests
new_cpp_SOURCES = new-cpp.cpp
overloaded_new_SOURCES = overloaded-new.cpp
+# pre C++11 compilers don't have exception specs
+# C++11 and later compilers may complain about not having
+# exception specs
+overloaded_new_CXXFLAGS = $(AM_CXXFLAGS) -Wno-implicit-exception-spec-mismatch -Wno-missing-exception-spec
# Suppress warnings for issues we are testing for
alloc_fns_CFLAGS = $(AM_CFLAGS) -Wno-unused-result
# Don't allow GCC to inline memcpy() and strcpy(),
# because then we can't intercept it
-overlap_CFLAGS = $(AM_CFLAGS) -fno-builtin-memcpy -fno-builtin-strcpy
+overlap_CFLAGS = $(AM_CFLAGS) -fno-builtin-memcpy -fno-builtin-strcpy \
+ -Wno-fortify-source
resvn_stack_CFLAGS = $(AM_CFLAGS) @FLAG_W_NO_UNINITIALIZED@
str_tester_CFLAGS = $(AM_CFLAGS) -Wno-shadow -Wno-stringop-overflow \
-Wno-stringop-truncation \
+ -Wno-fortify-source -Wno-suspicious-bzero \
@FLAG_W_NO_MEMSET_TRANSPOSED_ARGS@
supp_CFLAGS = $(AM_CFLAGS) @FLAG_W_NO_UNINITIALIZED@
if HAVE_ALIGNED_CXX_ALLOC
check_PROGRAMS += cxx17_aligned_new
cxx17_aligned_new_SOURCES = cxx17_aligned_new.cpp
-cxx17_aligned_new_CXXFLAGS = -std=c++17
+# need C++ 17, and we deliberately mismatch new and delete
+cxx17_aligned_new_CXXFLAGS = -std=c++17 -Wno-mismatched-new-delete
endif
fdleak_socketpair_LDADD = -lsocket -lnsl
endif
floored_LDADD = -lm
+ifunc_CFLAGS = $(AM_CFLAGS) -Wno-unused-function
manythreads_LDADD = -lpthread
if VGCONF_OS_IS_DARWIN
nestedfns_CFLAGS = $(AM_CFLAGS) -fnested-functions
adc_ib_al();
printf("r8 = %d %d\n", (int)out_b1, (int)out_b2);
- in_w = 49999;
+ in_w = -15537;
adc_iw_ax();
printf("r9 = %d %d\n", (int)out_w1, (int)out_w2);
adc_ib_al();
printf("r8 = %d %d\n", (int)out_b1, (int)out_b2);
- in_w = 49999;
+ in_w = -15537;
adc_iw_ax();
printf("r9 = %d %d\n", (int)out_w1, (int)out_w2);