From: Iain Buclaw Date: Wed, 29 Apr 2020 08:42:21 +0000 (+0200) Subject: libphobos: Fix KERNEL_VERSION condition in libphobos testsuite X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=5916f2f6735bf739a66fbebffba50bd975c22ecb;p=gcc.git libphobos: Fix KERNEL_VERSION condition in libphobos testsuite A typo in the macro call meant that the #error always triggered. libphobos/ChangeLog: * testsuite/lib/libphobos.exp (check_effective_target_linux_pre_2639): Fix KERNEL_VERSION condition. --- diff --git a/libphobos/ChangeLog b/libphobos/ChangeLog index a4e209d8615..f8a82182427 100644 --- a/libphobos/ChangeLog +++ b/libphobos/ChangeLog @@ -1,3 +1,8 @@ +2020-04-29 Iain Buclaw + + * testsuite/lib/libphobos.exp (check_effective_target_linux_pre_2639): + Fix KERNEL_VERSION condition. + 2020-04-28 Iain Buclaw PR d/94825 diff --git a/libphobos/testsuite/lib/libphobos.exp b/libphobos/testsuite/lib/libphobos.exp index 7e6e53e9d5c..2e9da95ac1c 100644 --- a/libphobos/testsuite/lib/libphobos.exp +++ b/libphobos/testsuite/lib/libphobos.exp @@ -285,7 +285,7 @@ proc check_effective_target_linux_pre_2639 { } { if { [check_no_compiler_messages linux_pre_2639 assembly { #include - #if !defined LINUX_VERSION_CODE || LINUX_VERSION_CODE < KERNEL_VERSION(2.6.39) + #if !defined LINUX_VERSION_CODE || LINUX_VERSION_CODE < KERNEL_VERSION(2,6,39) #error Yes, it is. #endif }] } {