testsuite, Objective-C : Compatibility fixes.
authorIain Sandoe <iain@sandoe.co.uk>
Sat, 3 Oct 2020 23:03:54 +0000 (00:03 +0100)
committerIain Sandoe <iain@sandoe.co.uk>
Sun, 11 Oct 2020 13:28:53 +0000 (14:28 +0100)
commit67f984d62e3acd729e086d49780be8e3e5e69833
tree981332f097cb4bbb14540472c4642a7943a5a8e8
parent8703bf5d31fdb4789b5eddca394f8e92a0c55801
testsuite, Objective-C : Compatibility fixes.

Changes to deal with warnings and/or errors seen when compiling the
tests with clang.

gcc/testsuite/ChangeLog:

* objc-obj-c++-shared/TestsuiteObject.h: If the compiler
supports objc_root_object attributes, then mark the testsuite
object accordingly.
* objc-obj-c++-shared/TestsuiteObject.m: Avoid direct access
to isa, which is an error for modern Objective-C.
* objc/execute/class-tests-1.h: Declare a string function we
use locally (avoid pulling in the whole of string.h).
gcc/testsuite/objc-obj-c++-shared/TestsuiteObject.h
gcc/testsuite/objc-obj-c++-shared/TestsuiteObject.m
gcc/testsuite/objc/execute/class-tests-1.h