mirror of
git://gcc.gnu.org/git/gcc.git
synced 2025-01-11 02:44:30 +08:00
objc-runtime-shared-support.c (build_module_descriptor): Set TREE_USED on UOBJC_MODULES_decl.
* objc-runtime-shared-support.c (build_module_descriptor): Set TREE_USED on UOBJC_MODULES_decl. From-SVN: r224213
This commit is contained in:
parent
2e188017ff
commit
02de9c16f0
@ -1,3 +1,8 @@
|
||||
2015-06-08 Aldy Hernandez <aldyh@redhat.com>
|
||||
|
||||
* objc-runtime-shared-support.c (build_module_descriptor): Set
|
||||
TREE_USED on UOBJC_MODULES_decl.
|
||||
|
||||
2015-06-05 Aldy Hernandez <aldyh@redhat.com>
|
||||
|
||||
* objc-act.c (objc_write_global_declarations): Adjust comment.
|
||||
|
@ -519,6 +519,9 @@ build_module_descriptor (long vers, tree attr)
|
||||
is referenced by the runtime and, therefore, needed. */
|
||||
DECL_PRESERVE_P (UOBJC_MODULES_decl) = 1;
|
||||
|
||||
/* Squash `defined but not used' warning. */
|
||||
TREE_USED (UOBJC_MODULES_decl) = 1;
|
||||
|
||||
/* Allow the runtime to mark meta-data such that it can be assigned to target
|
||||
specific sections by the back-end. */
|
||||
if (attr)
|
||||
|
Loading…
Reference in New Issue
Block a user