Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
N
nettle
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Norbert Pócs
nettle
Commits
97f9b45b
Commit
97f9b45b
authored
Oct 6, 2023
by
Niels Möller
Browse files
Options
Downloads
Patches
Plain Diff
Add configure test for valgrind.
parent
74ab4c9a
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
ChangeLog
+5
-0
5 additions, 0 deletions
ChangeLog
aclocal.m4
+18
-0
18 additions, 0 deletions
aclocal.m4
configure.ac
+3
-0
3 additions, 0 deletions
configure.ac
testsuite/Makefile.in
+1
-1
1 addition, 1 deletion
testsuite/Makefile.in
with
27 additions
and
1 deletion
ChangeLog
+
5
−
0
View file @
97f9b45b
2023-10-06 Niels Möller <nisse@lysator.liu.se>
2023-10-06 Niels Möller <nisse@lysator.liu.se>
* aclocal.m4 (NETTLE_PROG_VALGRIND): New macro.
* configure.ac: Use it.
* testsuite/Makefile.in (TS_SH): Include side-channel tests only
if we have a working valgrind.
* misc/c89: New wrapper script to force compiling in c89 mode.
* misc/c89: New wrapper script to force compiling in c89 mode.
2023-10-04 Niels Möller <nisse@lysator.liu.se>
2023-10-04 Niels Möller <nisse@lysator.liu.se>
...
...
This diff is collapsed.
Click to expand it.
aclocal.m4
+
18
−
0
View file @
97f9b45b
...
@@ -546,3 +546,21 @@ AC_DEFUN([GMP_ASM_POWERPC_R_REGISTERS],
...
@@ -546,3 +546,21 @@ AC_DEFUN([GMP_ASM_POWERPC_R_REGISTERS],
[AC_MSG_ERROR([neither "mtctr 6" nor "mtctr r6" works])])])])
[AC_MSG_ERROR([neither "mtctr 6" nor "mtctr r6" works])])])])
ASM_PPC_WANT_R_REGISTERS="$gmp_cv_asm_powerpc_r_registers"
ASM_PPC_WANT_R_REGISTERS="$gmp_cv_asm_powerpc_r_registers"
])
])
# Check if valgrind supports the platform we are compiling for.
AC_DEFUN([NETTLE_PROG_VALGRIND],
[AC_CACHE_CHECK([if valgrind is working],
nettle_cv_prog_valgrind,
[AC_LINK_IFELSE([AC_LANG_PROGRAM([], [])], [
if valgrind -q ./conftest$EXEEXT 2>&AS_MESSAGE_LOG_FD; then
nettle_cv_prog_valgrind=yes
else
nettle_cv_prog_valgrind=no
fi], [nettle_cv_prog_valgrind=no])])
if test "$nettle_cv_prog_valgrind" = yes ; then
IF_VALGRIND=''
else
IF_VALGRIND='#'
fi
AC_SUBST(IF_VALGRIND)
])
This diff is collapsed.
Click to expand it.
configure.ac
+
3
−
0
View file @
97f9b45b
...
@@ -171,6 +171,9 @@ AC_PROG_LN_S
...
@@ -171,6 +171,9 @@ AC_PROG_LN_S
GMP_PROG_CC_FOR_BUILD
GMP_PROG_CC_FOR_BUILD
GMP_PROG_EXEEXT_FOR_BUILD
GMP_PROG_EXEEXT_FOR_BUILD
# Check if valgrind is working; expected to fail in cross builds.
NETTLE_PROG_VALGRIND
LSH_DEPENDENCY_TRACKING
LSH_DEPENDENCY_TRACKING
if test "x$enable_gcov" = "xyes"; then
if test "x$enable_gcov" = "xyes"; then
...
...
This diff is collapsed.
Click to expand it.
testsuite/Makefile.in
+
1
−
1
View file @
97f9b45b
...
@@ -68,7 +68,7 @@ TS_CXX = @IF_CXX@ $(CXX_SOURCES:.cxx=$(EXEEXT))
...
@@ -68,7 +68,7 @@ TS_CXX = @IF_CXX@ $(CXX_SOURCES:.cxx=$(EXEEXT))
TARGETS
=
$(
TS_C
)
$(
TS_CXX
)
TARGETS
=
$(
TS_C
)
$(
TS_CXX
)
TS_SC
=
sc-cnd-memcpy-test sc-gcm-test sc-memeql-test
\
TS_SC
=
sc-cnd-memcpy-test sc-gcm-test sc-memeql-test
\
@IF_HOGWEED@ sc-pkcs1-sec-decrypt-test sc-rsa-sec-decrypt-test
@IF_HOGWEED@ sc-pkcs1-sec-decrypt-test sc-rsa-sec-decrypt-test
TS_SH
=
$(
TS_SC
)
symbols-test
TS_SH
=
symbols-test
@IF_VALGRIND@
$(
TS_SC
)
TS_ALL
=
$(
TARGETS
)
$(
TS_SH
)
@IF_DLOPEN_TEST@ dlopen-test
$(
EXEEXT
)
TS_ALL
=
$(
TARGETS
)
$(
TS_SH
)
@IF_DLOPEN_TEST@ dlopen-test
$(
EXEEXT
)
TS_FAT
=
$(
patsubst %, %
$(
EXEEXT
)
, aes-test cbc-test
\
TS_FAT
=
$(
patsubst %, %
$(
EXEEXT
)
, aes-test cbc-test
\
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment