Commit 741be22f by Richard Stallman

(build_selector_translation_table): NULL-terminate the selector list.

(build_selector_translation_table): NULL-terminate the
selector list.  Mark _OBJC_SELECTOR_REFERENCES_decl as static, not extern.

From-SVN: r1892
parent a8ccbf53
......@@ -1154,6 +1154,11 @@ build_selector_translation_table ()
}
#ifdef OBJC_SELECTORS_WITHOUT_LABELS
/* Cause the variable and its initial value to be actually output. */
DECL_EXTERNAL (_OBJC_SELECTOR_REFERENCES_decl) = 0;
TREE_STATIC (_OBJC_SELECTOR_REFERENCES_decl) = 1;
/* NULL terminate the list and fix the decl for output. */
initlist = tree_cons (NULLT, build_int_2 (0, 0), initlist);
DECL_INITIAL (_OBJC_SELECTOR_REFERENCES_decl) = (tree) 1;
initlist = build_nt (CONSTRUCTOR, NULLT, nreverse (initlist));
finish_decl (_OBJC_SELECTOR_REFERENCES_decl, initlist, NULLT);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment