Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
R
riscv-gcc-1
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
lvzhengyang
riscv-gcc-1
Commits
ba2e2786
Commit
ba2e2786
authored
Apr 13, 1993
by
Tom Wood
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
*** empty log message ***
From-SVN: r4112
parent
f5689463
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
12 deletions
+12
-12
gcc/objc/objc-act.c
+12
-12
No files found.
gcc/objc/objc-act.c
View file @
ba2e2786
...
...
@@ -371,7 +371,7 @@ static tree UOBJC_SYMBOLS_decl;
static
tree
UOBJC_INSTANCE_VARIABLES_decl
,
UOBJC_CLASS_VARIABLES_decl
;
static
tree
UOBJC_INSTANCE_METHODS_decl
,
UOBJC_CLASS_METHODS_decl
;
static
tree
UOBJC_CLASS_decl
,
UOBJC_METACLASS_decl
;
static
tree
UOBJC_SELECTOR_
REFERENCES
_decl
;
static
tree
UOBJC_SELECTOR_
TABLE
_decl
;
static
tree
UOBJC_MODULES_decl
;
static
tree
UOBJC_STRINGS_decl
;
...
...
@@ -1054,12 +1054,12 @@ synth_module_prologue ()
objc_get_meta_class_decl
=
builtin_function
(
TAG_GETMETACLASS
,
temp_type
,
NOT_BUILT_IN
,
0
);
/* static SEL _OBJC_SELECTOR_
REFERENCES
[]; */
/* static SEL _OBJC_SELECTOR_
TABLE
[]; */
if
(
!
flag_next_runtime
)
UOBJC_SELECTOR_
REFERENCES
_decl
UOBJC_SELECTOR_
TABLE
_decl
=
create_builtin_decl
(
VAR_DECL
,
build_array_type
(
selector_type
,
NULLT
),
"_OBJC_SELECTOR_
REFERENCES
"
);
"_OBJC_SELECTOR_
TABLE
"
);
generate_forward_declaration_to_string_table
();
...
...
@@ -1255,12 +1255,12 @@ init_objc_symtab ()
initlist
=
build_tree_list
(
NULLT
,
build_int_2
(
0
,
0
));
/* refs = { ..., _OBJC_SELECTOR_
REFERENCES
, ... } */
/* refs = { ..., _OBJC_SELECTOR_
TABLE
, ... } */
if
(
flag_next_runtime
||
!
sel_ref_chain
)
initlist
=
tree_cons
(
NULLT
,
build_int_2
(
0
,
0
),
initlist
);
else
initlist
=
tree_cons
(
NULLT
,
UOBJC_SELECTOR_
REFERENCES
_decl
,
initlist
);
initlist
=
tree_cons
(
NULLT
,
UOBJC_SELECTOR_
TABLE
_decl
,
initlist
);
/* cls_def_cnt = { ..., 5, ... } */
...
...
@@ -1714,13 +1714,13 @@ build_selector_translation_table ()
if
(
!
flag_next_runtime
)
{
/* Cause the variable and its initial value to be actually output. */
DECL_EXTERNAL
(
UOBJC_SELECTOR_
REFERENCES
_decl
)
=
0
;
TREE_STATIC
(
UOBJC_SELECTOR_
REFERENCES
_decl
)
=
1
;
DECL_EXTERNAL
(
UOBJC_SELECTOR_
TABLE
_decl
)
=
0
;
TREE_STATIC
(
UOBJC_SELECTOR_
TABLE
_decl
)
=
1
;
/* NULL terminate the list and fix the decl for output. */
initlist
=
tree_cons
(
NULLT
,
build_int_2
(
0
,
0
),
initlist
);
DECL_INITIAL
(
UOBJC_SELECTOR_
REFERENCES
_decl
)
=
(
tree
)
1
;
DECL_INITIAL
(
UOBJC_SELECTOR_
TABLE
_decl
)
=
(
tree
)
1
;
initlist
=
build_nt
(
CONSTRUCTOR
,
NULLT
,
nreverse
(
initlist
));
finish_decl
(
UOBJC_SELECTOR_
REFERENCES
_decl
,
initlist
,
NULLT
);
finish_decl
(
UOBJC_SELECTOR_
TABLE
_decl
,
initlist
,
NULLT
);
}
}
...
...
@@ -1740,7 +1740,7 @@ build_selector_reference (ident)
if
(
TREE_VALUE
(
*
chain
)
==
ident
)
return
(
flag_next_runtime
?
TREE_PURPOSE
(
*
chain
)
:
build_array_ref
(
UOBJC_SELECTOR_
REFERENCES
_decl
,
:
build_array_ref
(
UOBJC_SELECTOR_
TABLE
_decl
,
build_int_2
(
index
,
0
)));
index
++
;
...
...
@@ -1753,7 +1753,7 @@ build_selector_reference (ident)
return
(
flag_next_runtime
?
decl
:
build_array_ref
(
UOBJC_SELECTOR_
REFERENCES
_decl
,
:
build_array_ref
(
UOBJC_SELECTOR_
TABLE
_decl
,
build_int_2
(
index
,
0
)));
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment