Author: erj
Date: Thu Jan  2 23:18:43 2020
New Revision: 356307
URL: https://svnweb.freebsd.org/changeset/base/356307

Log:
  MFC r355055: Fix gcc build for bitstring_test by specifying 
"-fno-strict-overflow"
  
  Sponsored by: Intel Corporation

Modified:
  stable/12/tests/sys/sys/Makefile
Directory Properties:
  stable/12/   (props changed)

Modified: stable/12/tests/sys/sys/Makefile
==============================================================================
--- stable/12/tests/sys/sys/Makefile    Thu Jan  2 23:16:27 2020        
(r356306)
+++ stable/12/tests/sys/sys/Makefile    Thu Jan  2 23:18:43 2020        
(r356307)
@@ -1,9 +1,15 @@
 # $FreeBSD$
 
+.include <bsd.compiler.mk>
+
 TESTSDIR=      ${TESTSBASE}/sys/sys
 
 ATF_TESTS_C=   bitstring_test
 
 WARNS?=        5
+
+.if ${COMPILER_TYPE} == "gcc"
+CFLAGS.bitstring_test= -fno-strict-overflow
+.endif
 
 .include <bsd.test.mk>
_______________________________________________
[email protected] mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "[email protected]"

Reply via email to