6e98bf
commit 33aba8eef68b1745d3de96b609ff8296b70d9a1c
6e98bf
Author: Paul Floyd <pjfloyd@wanadoo.fr>
6e98bf
Date:   Wed Oct 27 21:37:00 2021 +0200
6e98bf
6e98bf
    Bug 444495 - dhat/tests/copy fails on s390x
6e98bf
    
6e98bf
    Add -fno-builtin to ensure that the copy functions get called and so dhat
6e98bf
    can intercept and count them.
6e98bf
6e98bf
diff --git a/dhat/tests/Makefile.am b/dhat/tests/Makefile.am
6e98bf
index 86a9b6d64..b86fc416d 100644
6e98bf
--- a/dhat/tests/Makefile.am
6e98bf
+++ b/dhat/tests/Makefile.am
6e98bf
@@ -29,3 +29,6 @@ AM_CXXFLAGS += $(AM_FLAG_M3264_PRI)
6e98bf
 # We don't care about uninitialized or unused malloc results
6e98bf
 basic_CFLAGS  = $(AM_CFLAGS) -Wno-uninitialized
6e98bf
 big_CFLAGS  = $(AM_CFLAGS) -Wno-unused-result
6e98bf
+
6e98bf
+# Prevent the copying functions from being inlined
6e98bf
+copy_CFLAGS = $(AM_CFLAGS) -fno-builtin