aboutsummaryrefslogtreecommitdiff
path: root/gcc/objc/objc-act.c
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/objc/objc-act.c')
-rw-r--r--gcc/objc/objc-act.c43
1 files changed, 0 insertions, 43 deletions
diff --git a/gcc/objc/objc-act.c b/gcc/objc/objc-act.c
index b6ea821..6f04357 100644
--- a/gcc/objc/objc-act.c
+++ b/gcc/objc/objc-act.c
@@ -8661,46 +8661,3 @@ lookup_objc_ivar (id)
else
return 0;
}
-
-/* Parser callbacks.
- Some ObjC keywords are reserved only in a particular context:
- in out inout bycopy byref oneway.
- We have to save and restore the IDENTIFIER_NODEs that describe
- them as keywords, when appropriate. */
-
-#define N_PQ 6
-static tree saved_pq[N_PQ];
-static tree saved_not_pq[N_PQ];
-static const char *const pq_strings[N_PQ] = {
- "bycopy", "byref", "in", "inout", "oneway", "out"
-};
-
-void
-save_and_forget_protocol_qualifiers ()
-{
- int i;
- for (i = 0; i < N_PQ; i++)
- saved_pq[i] = set_identifier (pq_strings[i], NULL_TREE);
-
- ggc_add_tree_root (saved_pq, N_PQ);
- ggc_add_tree_root (saved_not_pq, N_PQ);
-}
-
-void
-forget_protocol_qualifiers ()
-{
- int i;
- for (i = 0; i < N_PQ; i++)
- {
- set_identifier (pq_strings[i], saved_not_pq[i]);
- saved_not_pq[i] = NULL_TREE;
- }
-}
-
-void
-remember_protocol_qualifiers ()
-{
- int i;
- for (i = 0; i < N_PQ; i++)
- saved_not_pq[i] = set_identifier (pq_strings[i], saved_pq[i]);
-}