Objective-C, NeXT: Reorganise meta-data declarations.
authorIain Sandoe <iain@sandoe.co.uk>
Sun, 5 Dec 2021 20:15:40 +0000 (20:15 +0000)
committerIain Sandoe <iain@sandoe.co.uk>
Sun, 5 Dec 2021 20:22:16 +0000 (20:22 +0000)
commitc9419faef0bfaf31e6a6f744baa064892e0d105c
tree208ce1e250cbe345231b63479e3a832152851c67
parent8d4ef2299cbf9517877dab60d48f34835758a6ee
Objective-C, NeXT: Reorganise meta-data declarations.

This moves the GTY declaration of the meta-data indentifier
array into the header that enumerates these and provides
shorthand defines for them.  This avoids a problem seen with
a relocatable PCH implementation.

Signed-off-by: Iain Sandoe <iain@sandoe.co.uk>
gcc/objc/ChangeLog:

* objc-next-metadata-tags.h (objc_rt_trees): Declare here.
* objc-next-runtime-abi-01.c: Remove from here.
* objc-next-runtime-abi-02.c: Likewise.
* objc-runtime-shared-support.c: Reorder headers, provide
a GTY declaration the definition of objc_rt_trees.
gcc/objc/objc-next-metadata-tags.h
gcc/objc/objc-next-runtime-abi-01.c
gcc/objc/objc-next-runtime-abi-02.c
gcc/objc/objc-runtime-shared-support.c