Objective-C [2/3] : Implement Wobjc-root-class [PR77404].
authorIain Sandoe <iain@sandoe.co.uk>
Thu, 12 Nov 2020 13:11:11 +0000 (13:11 +0000)
committerIain Sandoe <iain@sandoe.co.uk>
Fri, 13 Nov 2020 10:40:54 +0000 (10:40 +0000)
commitd35fbf7f7673b5c72ee61720f1a209d4e798152f
tree12118de58101ac5ca2dfe9c8f34a39e2461a4cd2
parent3fe07cdec8c79bce53ea5aeb8e607df6eb5c8c2c
Objective-C [2/3] : Implement Wobjc-root-class [PR77404].

Add "Wno-objc-root-class" to tests in the Objective-C suite where
needed.

gcc/testsuite/ChangeLog:

PR objc/77404
* objc.dg/anon-1.m: Add Wno-objc-root-class.
* objc.dg/attributes/class-attribute-1.m: Likewise.
* objc.dg/attributes/class-attribute-2.m: Likewise.
* objc.dg/attributes/class-attribute-3.m: Likewise.
* objc.dg/attributes/method-deprecated-1.m: Likewise.
* objc.dg/attributes/method-deprecated-2.m: Likewise.
* objc.dg/attributes/method-deprecated-3.m: Likewise.
* objc.dg/attributes/method-format-1.m: Likewise.
* objc.dg/attributes/method-nonnull-1.m: Likewise.
* objc.dg/attributes/method-noreturn-1.m: Likewise.
* objc.dg/attributes/method-sentinel-1.m: Likewise.
* objc.dg/attributes/nsobject-01.m: Likewise.
* objc.dg/attributes/objc-exception-1.m: Likewise.
* objc.dg/attributes/parameter-attribute-1.m: Likewise.
* objc.dg/attributes/parameter-attribute-2.m: Likewise.
* objc.dg/attributes/proto-attribute-1.m: Likewise.
* objc.dg/attributes/proto-attribute-2.m: Likewise.
* objc.dg/attributes/proto-attribute-3.m: Likewise.
* objc.dg/attributes/proto-attribute-4.m: Likewise.
* objc.dg/bitfield-2.m: Likewise.
* objc.dg/break-in-ifstmt.m: Likewise.
* objc.dg/class-1.m: Likewise.
* objc.dg/class-extension-1.m: Likewise.
* objc.dg/class-extension-2.m: Likewise.
* objc.dg/class-extension-3.m: Likewise.
* objc.dg/class-extension-4.m: Likewise.
* objc.dg/class-protocol-1.m: Likewise.
* objc.dg/comp-types-7.m: Likewise.
* objc.dg/demangle-1.m: Likewise.
* objc.dg/duplicate-class-1.m: Likewise.
* objc.dg/encode-6-next.m: Likewise.
* objc.dg/encode-6.m: Likewise.
* objc.dg/enhanced-proto-2.m: Likewise.
* objc.dg/exceptions-1.m: Likewise.
* objc.dg/exceptions-3.m: Likewise.
* objc.dg/exceptions-4.m: Likewise.
* objc.dg/exceptions-5.m: Likewise.
* objc.dg/fobjc-std-1.m: Likewise.
* objc.dg/foreach-2.m: Likewise.
* objc.dg/foreach-4.m: Likewise.
* objc.dg/foreach-5.m: Likewise.
* objc.dg/fsyntax-only.m: Likewise.
* objc.dg/gnu-api-2-class-meta.m: Likewise.
* objc.dg/gnu-api-2-class.m: Likewise.
* objc.dg/gnu-api-2-ivar.m: Likewise.
* objc.dg/gnu-api-2-method.m: Likewise.
* objc.dg/gnu-api-2-objc.m: Likewise.
* objc.dg/gnu-api-2-objc_msg_lookup.m: Likewise.
* objc.dg/gnu-api-2-object.m: Likewise.
* objc.dg/gnu-api-2-property.m: Likewise.
* objc.dg/gnu-api-2-protocol.m: Likewise.
* objc.dg/gnu-api-2-resolve-method.m: Likewise.
* objc.dg/gnu-api-2-sel.m: Likewise.
* objc.dg/incomplete-type-1.m: Likewise.
* objc.dg/instancetype-0.m: Likewise.
* objc.dg/invalid-method-2.m: Likewise.
* objc.dg/ivar-invalid-type-1.m: Likewise.
* objc.dg/ivar-problem-1.m: Likewise.
* objc.dg/ivar-scope-1.m: Likewise.
* objc.dg/ivar-scope-2.m: Likewise.
* objc.dg/ivar-scope-4.m: Likewise.
* objc.dg/ivar-visibility-1.m: Likewise.
* objc.dg/ivar-visibility-2.m: Likewise.
* objc.dg/ivar-visibility-3.m: Likewise.
* objc.dg/ivar-visibility-4.m: Likewise.
* objc.dg/local-decl-1.m: Likewise.
* objc.dg/lto/lto.exp: Likewise.
* objc.dg/lto/trivial-1_0.m: Likewise.
* objc.dg/method-1.m: Likewise.
* objc.dg/method-12.m: Likewise.
* objc.dg/method-13.m: Likewise.
* objc.dg/method-14.m: Likewise.
* objc.dg/missing-proto-3.m: Likewise.
* objc.dg/next-runtime-1.m: Likewise.
* objc.dg/objc-foreach-1.m: Likewise.
* objc.dg/objc-foreach-2.m: Likewise.
* objc.dg/objc-foreach-3.m: Likewise.
* objc.dg/objc-nofilename-1.m: Likewise.
* objc.dg/param-1.m: Likewise.
* objc.dg/pch/pch.exp: Likewise.
* objc.dg/plugin/diagnostic-test-expressions-1.m: Likewise.
* objc.dg/pr23709.m: Likewise.
* objc.dg/private-1.m: Likewise.
* objc.dg/private-2.m: Likewise.
* objc.dg/property/property.exp: Likewise.
* objc.dg/proto-hier-1.m: Likewise.
* objc.dg/proto-hier-2.m: Likewise.
* objc.dg/proto-lossage-1.m: Likewise.
* objc.dg/proto-lossage-5.m: Likewise.
* objc.dg/proto-qual-1.m: Likewise.
* objc.dg/protocol-inheritance-1.m: Likewise.
* objc.dg/protocol-inheritance-2.m: Likewise.
* objc.dg/protocol-optional-1.m: Likewise.
* objc.dg/selector-1.m: Likewise.
* objc.dg/selector-2.m: Likewise.
* objc.dg/selector-3.m: Likewise.
* objc.dg/selector-4.m: Likewise.
* objc.dg/shadow-1.m: Likewise.
* objc.dg/shadow-2.m: Likewise.
* objc.dg/special/load-category-1.m: Likewise.
* objc.dg/special/load-category-2.m: Likewise.
* objc.dg/special/load-category-3.m: Likewise.
* objc.dg/special/special.exp: Likewise.
* objc.dg/special/unclaimed-category-1.h: Likewise.
* objc.dg/special/unclaimed-category-1.m: Likewise.
* objc.dg/stabs-1.m: Likewise.
* objc.dg/strings/strings.exp: Likewise.
* objc.dg/stubify-1.m: Likewise.
* objc.dg/stubify-2.m: Likewise.
* objc.dg/super-class-2.m: Likewise.
* objc.dg/super-dealloc-1.m: Likewise.
* objc.dg/super-dealloc-2.m: Likewise.
* objc.dg/sync-3.m: Likewise.
* objc.dg/threedotthree-abi-1.m: Likewise.
* objc.dg/torture/dg-torture.exp: Likewise.
* objc.dg/torture/strings/strings.exp: Likewise.
* objc.dg/try-catch-11.m: Likewise.
* objc.dg/try-catch-12.m: Likewise.
* objc.dg/type-size-2.m: Likewise.
* objc.dg/type-size-3.m: Likewise.
* objc.dg/type-size-4.m: Likewise.
* objc.dg/type-size-5.m: Likewise.
* objc.dg/undeclared-selector.m: Likewise.
* objc.dg/volatile-1.m: Likewise.
124 files changed:
gcc/testsuite/objc.dg/anon-1.m
gcc/testsuite/objc.dg/attributes/class-attribute-1.m
gcc/testsuite/objc.dg/attributes/class-attribute-2.m
gcc/testsuite/objc.dg/attributes/class-attribute-3.m
gcc/testsuite/objc.dg/attributes/method-deprecated-1.m
gcc/testsuite/objc.dg/attributes/method-deprecated-2.m
gcc/testsuite/objc.dg/attributes/method-deprecated-3.m
gcc/testsuite/objc.dg/attributes/method-format-1.m
gcc/testsuite/objc.dg/attributes/method-nonnull-1.m
gcc/testsuite/objc.dg/attributes/method-noreturn-1.m
gcc/testsuite/objc.dg/attributes/method-sentinel-1.m
gcc/testsuite/objc.dg/attributes/nsobject-01.m
gcc/testsuite/objc.dg/attributes/objc-exception-1.m
gcc/testsuite/objc.dg/attributes/parameter-attribute-1.m
gcc/testsuite/objc.dg/attributes/parameter-attribute-2.m
gcc/testsuite/objc.dg/attributes/proto-attribute-1.m
gcc/testsuite/objc.dg/attributes/proto-attribute-2.m
gcc/testsuite/objc.dg/attributes/proto-attribute-3.m
gcc/testsuite/objc.dg/attributes/proto-attribute-4.m
gcc/testsuite/objc.dg/bitfield-2.m
gcc/testsuite/objc.dg/break-in-ifstmt.m
gcc/testsuite/objc.dg/class-1.m
gcc/testsuite/objc.dg/class-extension-1.m
gcc/testsuite/objc.dg/class-extension-2.m
gcc/testsuite/objc.dg/class-extension-3.m
gcc/testsuite/objc.dg/class-extension-4.m
gcc/testsuite/objc.dg/class-protocol-1.m
gcc/testsuite/objc.dg/comp-types-7.m
gcc/testsuite/objc.dg/demangle-1.m
gcc/testsuite/objc.dg/duplicate-class-1.m
gcc/testsuite/objc.dg/encode-6-next.m
gcc/testsuite/objc.dg/encode-6.m
gcc/testsuite/objc.dg/enhanced-proto-2.m
gcc/testsuite/objc.dg/exceptions-1.m
gcc/testsuite/objc.dg/exceptions-3.m
gcc/testsuite/objc.dg/exceptions-4.m
gcc/testsuite/objc.dg/exceptions-5.m
gcc/testsuite/objc.dg/fobjc-std-1.m
gcc/testsuite/objc.dg/foreach-2.m
gcc/testsuite/objc.dg/foreach-4.m
gcc/testsuite/objc.dg/foreach-5.m
gcc/testsuite/objc.dg/fsyntax-only.m
gcc/testsuite/objc.dg/gnu-api-2-class-meta.m
gcc/testsuite/objc.dg/gnu-api-2-class.m
gcc/testsuite/objc.dg/gnu-api-2-ivar.m
gcc/testsuite/objc.dg/gnu-api-2-method.m
gcc/testsuite/objc.dg/gnu-api-2-objc.m
gcc/testsuite/objc.dg/gnu-api-2-objc_msg_lookup.m
gcc/testsuite/objc.dg/gnu-api-2-object.m
gcc/testsuite/objc.dg/gnu-api-2-property.m
gcc/testsuite/objc.dg/gnu-api-2-protocol.m
gcc/testsuite/objc.dg/gnu-api-2-resolve-method.m
gcc/testsuite/objc.dg/gnu-api-2-sel.m
gcc/testsuite/objc.dg/incomplete-type-1.m
gcc/testsuite/objc.dg/instancetype-0.m
gcc/testsuite/objc.dg/invalid-method-2.m
gcc/testsuite/objc.dg/ivar-invalid-type-1.m
gcc/testsuite/objc.dg/ivar-problem-1.m
gcc/testsuite/objc.dg/ivar-scope-1.m
gcc/testsuite/objc.dg/ivar-scope-2.m
gcc/testsuite/objc.dg/ivar-scope-4.m
gcc/testsuite/objc.dg/ivar-visibility-1.m
gcc/testsuite/objc.dg/ivar-visibility-2.m
gcc/testsuite/objc.dg/ivar-visibility-3.m
gcc/testsuite/objc.dg/ivar-visibility-4.m
gcc/testsuite/objc.dg/local-decl-1.m
gcc/testsuite/objc.dg/lto/lto.exp
gcc/testsuite/objc.dg/lto/trivial-1_0.m
gcc/testsuite/objc.dg/method-1.m
gcc/testsuite/objc.dg/method-12.m
gcc/testsuite/objc.dg/method-13.m
gcc/testsuite/objc.dg/method-14.m
gcc/testsuite/objc.dg/missing-proto-3.m
gcc/testsuite/objc.dg/next-runtime-1.m
gcc/testsuite/objc.dg/objc-foreach-1.m
gcc/testsuite/objc.dg/objc-foreach-2.m
gcc/testsuite/objc.dg/objc-foreach-3.m
gcc/testsuite/objc.dg/objc-nofilename-1.m
gcc/testsuite/objc.dg/param-1.m
gcc/testsuite/objc.dg/pch/pch.exp
gcc/testsuite/objc.dg/plugin/diagnostic-test-expressions-1.m
gcc/testsuite/objc.dg/pr23709.m
gcc/testsuite/objc.dg/private-1.m
gcc/testsuite/objc.dg/private-2.m
gcc/testsuite/objc.dg/property/property.exp
gcc/testsuite/objc.dg/proto-hier-1.m
gcc/testsuite/objc.dg/proto-hier-2.m
gcc/testsuite/objc.dg/proto-lossage-1.m
gcc/testsuite/objc.dg/proto-lossage-5.m
gcc/testsuite/objc.dg/proto-qual-1.m
gcc/testsuite/objc.dg/protocol-inheritance-1.m
gcc/testsuite/objc.dg/protocol-inheritance-2.m
gcc/testsuite/objc.dg/protocol-optional-1.m
gcc/testsuite/objc.dg/selector-1.m
gcc/testsuite/objc.dg/selector-2.m
gcc/testsuite/objc.dg/selector-3.m
gcc/testsuite/objc.dg/selector-4.m
gcc/testsuite/objc.dg/shadow-1.m
gcc/testsuite/objc.dg/shadow-2.m
gcc/testsuite/objc.dg/special/load-category-1.m
gcc/testsuite/objc.dg/special/load-category-2.m
gcc/testsuite/objc.dg/special/load-category-3.m
gcc/testsuite/objc.dg/special/special.exp
gcc/testsuite/objc.dg/special/unclaimed-category-1.h
gcc/testsuite/objc.dg/special/unclaimed-category-1.m
gcc/testsuite/objc.dg/stabs-1.m
gcc/testsuite/objc.dg/strings/strings.exp
gcc/testsuite/objc.dg/stubify-1.m
gcc/testsuite/objc.dg/stubify-2.m
gcc/testsuite/objc.dg/super-class-2.m
gcc/testsuite/objc.dg/super-dealloc-1.m
gcc/testsuite/objc.dg/super-dealloc-2.m
gcc/testsuite/objc.dg/sync-3.m
gcc/testsuite/objc.dg/threedotthree-abi-1.m
gcc/testsuite/objc.dg/torture/dg-torture.exp
gcc/testsuite/objc.dg/torture/strings/strings.exp
gcc/testsuite/objc.dg/try-catch-11.m
gcc/testsuite/objc.dg/try-catch-12.m
gcc/testsuite/objc.dg/type-size-2.m
gcc/testsuite/objc.dg/type-size-3.m
gcc/testsuite/objc.dg/type-size-4.m
gcc/testsuite/objc.dg/type-size-5.m
gcc/testsuite/objc.dg/undeclared-selector.m
gcc/testsuite/objc.dg/volatile-1.m