* [patch 8/10] debug-early merge: Objective-C front-end
@ 2015-05-08 0:38 Aldy Hernandez
2015-05-08 17:48 ` Mike Stump
0 siblings, 1 reply; 2+ messages in thread
From: Aldy Hernandez @ 2015-05-08 0:38 UTC (permalink / raw)
To: gcc-patches
[-- Attachment #1: Type: text/plain, Size: 0 bytes --]
[-- Attachment #2: dearly-objc.patch --]
[-- Type: text/x-patch, Size: 1185 bytes --]
gcc/objc/
* objc-act.c (objc_write_global_declarations): Adjust comment.
* objc-gnu-runtime-abi-01.c (build_selector_table_decl): Set
TREE_USED bit.
diff --git a/gcc/objc/objc-act.c b/gcc/objc/objc-act.c
index 718fdf0..3528c89 100644
--- a/gcc/objc/objc-act.c
+++ b/gcc/objc/objc-act.c
@@ -439,8 +439,7 @@ objc_init (void)
return true;
}
-/* This is called automatically (at the very end of compilation) by
- c_write_global_declarations and cp_write_global_declarations. */
+/* This is called at the end of parsing by the C/C++ parsers. */
void
objc_write_global_declarations (void)
{
diff --git a/gcc/objc/objc-gnu-runtime-abi-01.c b/gcc/objc/objc-gnu-runtime-abi-01.c
index b096fb9..cdf77b2 100644
--- a/gcc/objc/objc-gnu-runtime-abi-01.c
+++ b/gcc/objc/objc-gnu-runtime-abi-01.c
@@ -500,6 +500,8 @@ build_selector_table_decl (void)
temp = build_array_type (objc_selector_template, NULL_TREE);
UOBJC_SELECTOR_TABLE_decl = start_var_decl (temp, "_OBJC_SELECTOR_TABLE");
+ /* Squash `defined but not used' warning check_global_declaration. */
+ TREE_USED (UOBJC_SELECTOR_TABLE_decl) = 1;
OBJCMETA (UOBJC_SELECTOR_TABLE_decl, objc_meta, meta_base);
}
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [patch 8/10] debug-early merge: Objective-C front-end
2015-05-08 0:38 [patch 8/10] debug-early merge: Objective-C front-end Aldy Hernandez
@ 2015-05-08 17:48 ` Mike Stump
0 siblings, 0 replies; 2+ messages in thread
From: Mike Stump @ 2015-05-08 17:48 UTC (permalink / raw)
To: Aldy Hernandez; +Cc: gcc-patches
On May 7, 2015, at 5:38 PM, Aldy Hernandez <aldyh@redhat.com> wrote:
Ok.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2015-05-08 17:48 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-05-08 0:38 [patch 8/10] debug-early merge: Objective-C front-end Aldy Hernandez
2015-05-08 17:48 ` Mike Stump
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).