Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
Nettle
nettle
Commits
228ae261
Commit
228ae261
authored
Apr 27, 2020
by
Niels Möller
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Tweak gcc command like flags
parent
c0ff081f
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
12 deletions
+6
-12
ChangeLog
ChangeLog
+5
-0
configure.ac
configure.ac
+1
-12
No files found.
ChangeLog
View file @
228ae261
2020-04-27 Niels Möller <nisse@lysator.liu.se>
* configure.ac: 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.
...
...
configure.ac
View file @
228ae261
...
...
@@ -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
true
else
CFLAGS="$CFLAGS -ggdb3"
fi
# 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"
fi
CFLAGS="$CFLAGS -Wall -W \
CFLAGS="$CFLAGS -ggdb3 -Wall -W -Wno-sign-compare \
-Wmissing-prototypes -Wmissing-declarations -Wstrict-prototypes \
-Wpointer-arith -Wbad-function-cast -Wnested-externs"
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment