From: Alan Modra Date: Sat, 3 Dec 2016 10:28:55 +0000 (+1030) Subject: Correct cdtest g++ version test X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=f522190fa7f04a8d9a1dfc51d0cf69973c08afb5;p=binutils-gdb.git Correct cdtest g++ version test Fixes declaration conflict with built-in strncpy. * testsuite/ld-cdtest/cdtest-foo.cc: Test for __GNUG__ >= 2. --- 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;