From f522190fa7f04a8d9a1dfc51d0cf69973c08afb5 Mon Sep 17 00:00:00 2001 From: Alan Modra Date: Sat, 3 Dec 2016 20:58:55 +1030 Subject: [PATCH] Correct cdtest g++ version test Fixes declaration conflict with built-in strncpy. * testsuite/ld-cdtest/cdtest-foo.cc: Test for __GNUG__ >= 2. --- ld/ChangeLog | 4 ++++ ld/testsuite/ld-cdtest/cdtest-foo.cc | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/ld/ChangeLog b/ld/ChangeLog index b86e203895f..c02f5e8e3a9 100644 --- a/ld/ChangeLog +++ b/ld/ChangeLog @@ -1,3 +1,7 @@ +2016-12-03 Alan Modra + + * testsuite/ld-cdtest/cdtest-foo.cc: Test for __GNUG__ >= 2. + 2016-12-03 Alan Modra * ldexp.c (try_copy_symbol_type): Remove unnecessary check. diff --git a/ld/testsuite/ld-cdtest/cdtest-foo.cc b/ld/testsuite/ld-cdtest/cdtest-foo.cc index d8e5cbe24c5..7e6bd75cab1 100644 --- a/ld/testsuite/ld-cdtest/cdtest-foo.cc +++ b/ld/testsuite/ld-cdtest/cdtest-foo.cc @@ -5,7 +5,7 @@ // We don't use header files, since we only want to see, whether the // compiler is installed properly. // -#if (__GNUG__ == 2) +#if __GNUG__ >= 2 typedef __SIZE_TYPE__ size_t; #else typedef unsigned int size_t; -- 2.30.2