Commit 228ae261 authored by Niels Möller's avatar Niels Möller
Browse files

Tweak gcc command like flags

parent c0ff081f
2020-04-27 Niels Möller <>
* Tweak gcc command line options. Delete checks for
older gcc versions. Add -Wno-sign-compare, since warnings for
signed/unsigned comparisons adds a lot of noise, in particular
when building mini-gmp.
* mini-gmp.c: Updated mini-gmp from the gmp repository, latest
change from 2020-04-20.
* mini-gmp.h: Likewise.
......@@ -1006,18 +1006,7 @@ AC_SUBST(BENCH_LIBS)
# Set these flags *last*, or else the test programs won't compile
if test x$GCC = xyes ; then
# Using -ggdb3 makes (some versions of) Redhat's gcc-2.96 dump core
if $CC --version | grep '^2\.96$' 1>/dev/null 2>&1; then
# FIXME: It would be better to actually test if this option works and/or is needed.
# Or perhaps use -funsigned-char.
if $CC --version | grep 'gcc.* 4\.' 1>/dev/null 2>&1; then
CFLAGS="$CFLAGS -Wno-pointer-sign"
CFLAGS="$CFLAGS -ggdb3 -Wall -W -Wno-sign-compare \
-Wmissing-prototypes -Wmissing-declarations -Wstrict-prototypes \
-Wpointer-arith -Wbad-function-cast -Wnested-externs"
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment