Commit 4bd34c39 by Stan Shebs Committed by Stan Shebs

objc-act.c: Remove all code ifdefed with the never-used macro OBJC_INT_SELECTORS.

        * objc/objc-act.c: Remove all code ifdefed with the never-used
        macro OBJC_INT_SELECTORS.
        * config/d30v/d30v.h: Remove commented-out ref to OBJC_INT_SELECTORS.
        * tm.texi: Remove doc for OBJC_INT_SELECTORS.

From-SVN: r41317
parent ee8fc32b
2001-04-12 Stan Shebs <shebs@apple.com>
* objc/objc-act.c: Remove all code ifdefed with the never-used
macro OBJC_INT_SELECTORS.
* config/d30v/d30v.h: Remove commented-out ref to OBJC_INT_SELECTORS.
* tm.texi: Remove doc for OBJC_INT_SELECTORS.
Thu Apr 12 18:13:37 2001 Rodney Brown <RodneyBrown@mynd.com> Thu Apr 12 18:13:37 2001 Rodney Brown <RodneyBrown@mynd.com>
* config/pa/quadlib.c: Add prototypes. * config/pa/quadlib.c: Add prototypes.
......
...@@ -1013,12 +1013,6 @@ do { \ ...@@ -1013,12 +1013,6 @@ do { \
at run-time. This is used in `cpp'. */ at run-time. This is used in `cpp'. */
/* #define MAX_WCHAR_TYPE_SIZE */ /* #define MAX_WCHAR_TYPE_SIZE */
/* Define this macro if the type of Objective C selectors should be `int'.
If this macro is not defined, then selectors should have the type `struct
objc_selector *'. */
/* #define OBJC_INT_SELECTORS */
/* Define this macro if the compiler can group all the selectors together into /* Define this macro if the compiler can group all the selectors together into
a vector and use just one label at the beginning of the vector. Otherwise, a vector and use just one label at the beginning of the vector. Otherwise,
the compiler must give each selector its own assembler label. the compiler must give each selector its own assembler label.
......
...@@ -37,7 +37,7 @@ Boston, MA 02111-1307, USA. */ ...@@ -37,7 +37,7 @@ Boston, MA 02111-1307, USA. */
code generation `options': code generation `options':
- OBJC_INT_SELECTORS */ */
#include "config.h" #include "config.h"
#include "system.h" #include "system.h"
...@@ -1276,15 +1276,10 @@ synth_module_prologue () ...@@ -1276,15 +1276,10 @@ synth_module_prologue ()
/* Declare type of selector-objects that represent an operation name. */ /* Declare type of selector-objects that represent an operation name. */
#ifdef OBJC_INT_SELECTORS
/* `unsigned int' */
selector_type = unsigned_type_node;
#else
/* `struct objc_selector *' */ /* `struct objc_selector *' */
selector_type selector_type
= build_pointer_type (xref_tag (RECORD_TYPE, = build_pointer_type (xref_tag (RECORD_TYPE,
get_identifier (TAG_SELECTOR))); get_identifier (TAG_SELECTOR)));
#endif /* not OBJC_INT_SELECTORS */
/* Forward declare type, or else the prototype for msgSendSuper will /* Forward declare type, or else the prototype for msgSendSuper will
complain. */ complain. */
...@@ -2807,18 +2802,10 @@ build_method_prototype_template () ...@@ -2807,18 +2802,10 @@ build_method_prototype_template ()
proto_record proto_record
= start_struct (RECORD_TYPE, get_identifier (UTAG_METHOD_PROTOTYPE)); = start_struct (RECORD_TYPE, get_identifier (UTAG_METHOD_PROTOTYPE));
#ifdef OBJC_INT_SELECTORS
/* unsigned int _cmd; */
decl_specs
= tree_cons (NULL_TREE, ridpointers[(int) RID_UNSIGNED], NULL_TREE);
decl_specs = tree_cons (NULL_TREE, ridpointers[(int) RID_INT], decl_specs);
field_decl = get_identifier ("_cmd");
#else /* OBJC_INT_SELECTORS */
/* struct objc_selector *_cmd; */ /* struct objc_selector *_cmd; */
decl_specs = tree_cons (NULL_TREE, xref_tag (RECORD_TYPE, decl_specs = tree_cons (NULL_TREE, xref_tag (RECORD_TYPE,
get_identifier (TAG_SELECTOR)), NULL_TREE); get_identifier (TAG_SELECTOR)), NULL_TREE);
field_decl = build1 (INDIRECT_REF, NULL_TREE, get_identifier ("_cmd")); field_decl = build1 (INDIRECT_REF, NULL_TREE, get_identifier ("_cmd"));
#endif /* OBJC_INT_SELECTORS */
field_decl field_decl
= grokfield (input_filename, lineno, field_decl, decl_specs, NULL_TREE); = grokfield (input_filename, lineno, field_decl, decl_specs, NULL_TREE);
...@@ -4047,20 +4034,12 @@ build_method_template () ...@@ -4047,20 +4034,12 @@ build_method_template ()
_SLT_record = start_struct (RECORD_TYPE, get_identifier (UTAG_METHOD)); _SLT_record = start_struct (RECORD_TYPE, get_identifier (UTAG_METHOD));
#ifdef OBJC_INT_SELECTORS
/* unsigned int _cmd; */
decl_specs = tree_cons (NULL_TREE, ridpointers[(int) RID_UNSIGNED],
NULL_TREE);
decl_specs = tree_cons (NULL_TREE, ridpointers[(int) RID_INT], decl_specs);
field_decl = get_identifier ("_cmd");
#else /* not OBJC_INT_SELECTORS */
/* struct objc_selector *_cmd; */ /* struct objc_selector *_cmd; */
decl_specs = tree_cons (NULL_TREE, decl_specs = tree_cons (NULL_TREE,
xref_tag (RECORD_TYPE, xref_tag (RECORD_TYPE,
get_identifier (TAG_SELECTOR)), get_identifier (TAG_SELECTOR)),
NULL_TREE); NULL_TREE);
field_decl = build1 (INDIRECT_REF, NULL_TREE, get_identifier ("_cmd")); field_decl = build1 (INDIRECT_REF, NULL_TREE, get_identifier ("_cmd"));
#endif /* not OBJC_INT_SELECTORS */
field_decl = grokfield (input_filename, lineno, field_decl, field_decl = grokfield (input_filename, lineno, field_decl,
decl_specs, NULL_TREE); decl_specs, NULL_TREE);
...@@ -6559,13 +6538,11 @@ encode_pointer (type, curtype, format) ...@@ -6559,13 +6538,11 @@ encode_pointer (type, curtype, format)
obstack_1grow (&util_obstack, '#'); obstack_1grow (&util_obstack, '#');
return; return;
} }
#ifndef OBJC_INT_SELECTORS
else if (strcmp (name, TAG_SELECTOR) == 0) /* ':' */ else if (strcmp (name, TAG_SELECTOR) == 0) /* ':' */
{ {
obstack_1grow (&util_obstack, ':'); obstack_1grow (&util_obstack, ':');
return; return;
} }
#endif /* OBJC_INT_SELECTORS */
} }
} }
else if (TREE_CODE (pointer_to) == INTEGER_TYPE else if (TREE_CODE (pointer_to) == INTEGER_TYPE
...@@ -6981,12 +6958,6 @@ start_method_def (method) ...@@ -6981,12 +6958,6 @@ start_method_def (method)
build1 (INDIRECT_REF, NULL_TREE, self_id)), build1 (INDIRECT_REF, NULL_TREE, self_id)),
build_tree_list (unused_list, NULL_TREE))); build_tree_list (unused_list, NULL_TREE)));
#ifdef OBJC_INT_SELECTORS
decl_specs = build_tree_list (NULL_TREE, ridpointers[(int) RID_UNSIGNED]);
decl_specs = tree_cons (NULL_TREE, ridpointers[(int) RID_INT], decl_specs);
push_parm_decl (build_tree_list (build_tree_list (decl_specs, ucmd_id),
build_tree_list (unused_list, NULL_TREE)));
#else /* not OBJC_INT_SELECTORS */
decl_specs = build_tree_list (NULL_TREE, decl_specs = build_tree_list (NULL_TREE,
xref_tag (RECORD_TYPE, xref_tag (RECORD_TYPE,
get_identifier (TAG_SELECTOR))); get_identifier (TAG_SELECTOR)));
...@@ -6994,7 +6965,6 @@ start_method_def (method) ...@@ -6994,7 +6965,6 @@ start_method_def (method)
(build_tree_list (decl_specs, (build_tree_list (decl_specs,
build1 (INDIRECT_REF, NULL_TREE, ucmd_id)), build1 (INDIRECT_REF, NULL_TREE, ucmd_id)),
build_tree_list (unused_list, NULL_TREE))); build_tree_list (unused_list, NULL_TREE)));
#endif /* not OBJC_INT_SELECTORS */
/* Generate argument declarations if a keyword_decl. */ /* Generate argument declarations if a keyword_decl. */
if (METHOD_SEL_ARGS (method)) if (METHOD_SEL_ARGS (method))
......
...@@ -1435,14 +1435,6 @@ If you don't define this macro, the default is the first of ...@@ -1435,14 +1435,6 @@ If you don't define this macro, the default is the first of
unsigned int"} that has as much precision as @code{long long unsigned unsigned int"} that has as much precision as @code{long long unsigned
int}. int}.
@findex OBJC_INT_SELECTORS
@item OBJC_INT_SELECTORS
Define this macro if the type of Objective C selectors should be
@code{int}.
If this macro is not defined, then selectors should have the type
@code{struct objc_selector *}.
@findex OBJC_SELECTORS_WITHOUT_LABELS @findex OBJC_SELECTORS_WITHOUT_LABELS
@item OBJC_SELECTORS_WITHOUT_LABELS @item OBJC_SELECTORS_WITHOUT_LABELS
Define this macro if the compiler can group all the selectors together Define this macro if the compiler can group all the selectors together
......
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