Configure now makes sure we build everything in c99 mode already.
No need to have extra special cases in the Makefiles.
# that somehow causes VG_(memset) to get into infinite recursion.
AM_CFLAGS_BASE = \
-O2 -finline-functions -g \
- -std=gnu99 \
-Wall \
-Wmissing-prototypes \
-Wshadow \
-Wpointer-arith -Wbad-function-cast -Wcast-qual \
-Wcast-align -Wmissing-declarations \
-Wwrite-strings -Wformat -Wformat-security \
- -std=gnu99 \
$(EXTRA_CFLAGS) -g -O2 -fstrict-aliasing
#CC = icc
omp_matinv_LDFLAGS = -fopenmp
omp_matinv_LDADD = $(LDADD) -lm
-if VGCONF_OS_IS_SOLARIS
-omp_matinv_CFLAGS += -std=gnu99
-endif
-
omp_prime_CFLAGS = $(AM_CFLAGS) -fopenmp
omp_prime_LDFLAGS = -fopenmp
omp_prime_LDADD = $(LDADD) -lm
matinv_CFLAGS = $(AM_CFLAGS)
if VGCONF_OS_IS_SOLARIS
-matinv_CFLAGS += -std=gnu99 -D__EXTENSIONS__
+matinv_CFLAGS += -D__EXTENSIONS__
endif
if HAVE_PTHREAD_BARRIER
matinv_LDADD = $(LDADD) -lm
err_disable4_LDADD = -lpthread
err_disable4_CFLAGS = $(AM_CFLAGS)
if VGCONF_OS_IS_SOLARIS
-err_disable4_CFLAGS += -std=c99 -D_XOPEN_SOURCE=600
+err_disable4_CFLAGS += -D_XOPEN_SOURCE=600
endif
reach_thread_register_CFLAGS = $(AM_CFLAGS) -O2
reach_thread_register_LDADD = -lpthread
memalign2_CFLAGS = $(AM_CFLAGS)
if VGCONF_OS_IS_SOLARIS
-memalign2_CFLAGS += -std=c99 -D__EXTENSIONS__
+memalign2_CFLAGS += -D__EXTENSIONS__
endif
memcmptest_CFLAGS = $(AM_CFLAGS) -fno-builtin-memcmp
sendmsg_CFLAGS = $(AM_CFLAGS)
if VGCONF_OS_IS_SOLARIS
-sendmsg_CFLAGS += -std=c99 -D_XOPEN_SOURCE=600
+sendmsg_CFLAGS += -D_XOPEN_SOURCE=600
sendmsg_LDADD = -lsocket -lnsl
endif
varinfo5so_so_LDFLAGS = -fpic $(AM_FLAG_M3264_PRI) -shared \
-Wl,-soname -Wl,varinfo5so.so
endif
-varinforestrict_CFLAGS = $(AM_CFLAGS) -O0 -g -std=c99
+varinforestrict_CFLAGS = $(AM_CFLAGS) -O0 -g
# Build shared object for wrap7
wrap7_SOURCES = wrap7.c
fxsave_amd64_CFLAGS = $(AM_CFLAGS) @FLAG_NO_PIE@
insn_pcmpistri_CFLAGS = $(AM_CFLAGS)
-if VGCONF_OS_IS_SOLARIS
-insn_pcmpistri_CFLAGS += --std=c99
-endif
more_x87_fp_CFLAGS = $(AM_CFLAGS) -O -ffast-math -mfpmath=387 \
-mfancy-math-387
more_x87_fp_LDADD = -lm
-I$(top_srcdir)/include \
-I$(top_srcdir)/memcheck \
-I$(top_srcdir)/VEX/pub
-vbit_test_CFLAGS = $(AM_CFLAGS_PRI) -std=c99
+vbit_test_CFLAGS = $(AM_CFLAGS_PRI)
vbit_test_DEPENDENCIES =
vbit_test_LDADD = $(top_builddir)/VEX/libvex-@VGCONF_ARCH_PRI@-@VGCONF_OS@.a
-vbit_test_LDFLAGS = $(AM_CFLAGS_PRI) -std=c99 @LIB_UBSAN@
+vbit_test_LDFLAGS = $(AM_CFLAGS_PRI) @LIB_UBSAN@
execve_CFLAGS = $(AM_CFLAGS) @FLAG_W_NO_NONNULL@
if VGCONF_OS_IS_SOLARIS
fcntl_setown_LDADD = -lsocket -lnsl
-fdleak_cmsg_CFLAGS = $(AM_CFLAGS) -std=c99 -D_XOPEN_SOURCE=600
+fdleak_cmsg_CFLAGS = $(AM_CFLAGS) -D_XOPEN_SOURCE=600
fdleak_cmsg_LDADD = -lsocket -lnsl
fdleak_ipv4_LDADD = -lsocket -lnsl
fdleak_creat_LDADD = -lsocket -lnsl
pth_once_LDADD = -lpthread
pth_rwlock_LDADD = -lpthread
pth_rwlock_CFLAGS = $(AM_CFLAGS)
-if VGCONF_OS_IS_SOLARIS
-pth_rwlock_CFLAGS += --std=c99
-endif
pth_stackalign_LDADD = -lpthread
pth_2sig_LDADD = -lpthread
pth_term_signal_LDADD = -lpthread
threaded_fork_LDADD = -lpthread
threadederrno_CFLAGS = $(AM_CFLAGS)
threadederrno_LDADD = -lpthread
-if VGCONF_OS_IS_SOLARIS
-threadederrno_CFLAGS += --std=c99
-endif
tls_SOURCES = tls.c tls2.c
tls_DEPENDENCIES = tls.so tls2.so
tls_LDFLAGS = -Wl,-rpath,$(abs_top_builddir)/none/tests
insn_fpu_LDADD = -lm
insn_pclmulqdq_SOURCES = insn_pclmulqdq.def
fxtract_LDADD = -lm
-fma4_CFLAGS = $(AM_CFLAGS) -std=c99
+fma4_CFLAGS = $(AM_CFLAGS)
if VGCONF_OS_IS_SOLARIS
fma4_CFLAGS += -D__EXTENSIONS__
endif
AM_CCASFLAGS += @FLAG_M64@
allexec_CFLAGS = $(AM_CFLAGS) @FLAG_W_NO_NONNULL@
-tcxb_CFLAGS = $(AM_CFLAGS) -std=gnu99
cu12_1_CFLAGS = $(AM_CFLAGS) -DM3=1
cu14_1_CFLAGS = $(AM_CFLAGS) -DM3=1
cu21_1_CFLAGS = $(AM_CFLAGS) -DM3=1