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
b3a5ad9c
Commit
b3a5ad9c
authored
Feb 15, 1992
by
Richard Stallman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
*** empty log message ***
From-SVN: r326
parent
349860d8
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
6 deletions
+12
-6
gcc/objc/objc-act.c
+12
-6
No files found.
gcc/objc/objc-act.c
View file @
b3a5ad9c
...
@@ -1034,7 +1034,7 @@ build_module_descriptor ()
...
@@ -1034,7 +1034,7 @@ build_module_descriptor ()
return
buf
;
return
buf
;
}
}
#else
/* NEXT_OBJC_RUNTIME */
#else
/* NEXT_OBJC_RUNTIME */
return
"__objcInit"
;
return
0
;
#endif
/* NEXT_OBJC_RUNTIME */
#endif
/* NEXT_OBJC_RUNTIME */
}
}
...
@@ -4998,7 +4998,8 @@ finish_objc ()
...
@@ -4998,7 +4998,8 @@ finish_objc ()
/* Arrange for Objc data structures to be initialized at run time. */
/* Arrange for Objc data structures to be initialized at run time. */
char
*
init_name
=
build_module_descriptor
();
char
*
init_name
=
build_module_descriptor
();
assemble_constructor
(
init_name
);
if
(
init_name
)
assemble_constructor
(
init_name
);
}
}
/* dump the string table last */
/* dump the string table last */
...
@@ -5016,14 +5017,15 @@ finish_objc ()
...
@@ -5016,14 +5017,15 @@ finish_objc ()
for
(
chain
=
cls_ref_chain
;
chain
;
chain
=
TREE_CHAIN
(
chain
))
for
(
chain
=
cls_ref_chain
;
chain
;
chain
=
TREE_CHAIN
(
chain
))
{
{
tree
decl
;
tree
decl
;
#if 0 /* Grossly unportable. */
#if 0 /* Grossly unportable. */
sprintf (utlbuf, ".reference .objc_class_name_%s",
sprintf (utlbuf, ".reference .objc_class_name_%s",
IDENTIFIER_POINTER (TREE_VALUE (chain)));
IDENTIFIER_POINTER (TREE_VALUE (chain)));
assemble_asm (my_build_string (strlen (utlbuf) + 1, utlbuf));
assemble_asm (my_build_string (strlen (utlbuf) + 1, utlbuf));
#e
ndif
#e
lse
sprintf
(
utlbuf
,
".objc_class_name_%s"
,
sprintf
(
utlbuf
,
".objc_class_name_%s"
,
IDENTIFIER_POINTER
(
TREE_VALUE
(
chain
)));
IDENTIFIER_POINTER
(
TREE_VALUE
(
chain
)));
assemble_global
(
utlbuf
);
#endif
/* Make a decl for this name, so we can use its address in a tree. */
/* Make a decl for this name, so we can use its address in a tree. */
decl
=
build_decl
(
VAR_DECL
,
get_identifier
(
utlbuf
),
char_type_node
);
decl
=
build_decl
(
VAR_DECL
,
get_identifier
(
utlbuf
),
char_type_node
);
TREE_EXTERNAL
(
decl
)
=
1
;
TREE_EXTERNAL
(
decl
)
=
1
;
...
@@ -5032,6 +5034,9 @@ finish_objc ()
...
@@ -5032,6 +5034,9 @@ finish_objc ()
pushdecl
(
decl
);
pushdecl
(
decl
);
rest_of_decl_compilation
(
decl
,
0
,
0
,
0
);
rest_of_decl_compilation
(
decl
,
0
,
0
,
0
);
/* Make following constant read-only (why not)? */
text_section
();
/* Output a constant to reference this address. */
/* Output a constant to reference this address. */
output_constant
(
build1
(
ADDR_EXPR
,
string_type_node
,
decl
),
output_constant
(
build1
(
ADDR_EXPR
,
string_type_node
,
decl
),
int_size_in_bytes
(
string_type_node
));
int_size_in_bytes
(
string_type_node
));
...
@@ -5044,8 +5049,9 @@ finish_objc ()
...
@@ -5044,8 +5049,9 @@ finish_objc ()
if
(
TREE_CODE
(
impent
->
imp_context
)
==
IMPLEMENTATION_TYPE
)
if
(
TREE_CODE
(
impent
->
imp_context
)
==
IMPLEMENTATION_TYPE
)
{
{
#if 0 /* Grossly unportable. People should know better that to
#if 0 /* Grossly unportable.
assume such things about assembler syntax! */
People should know better than to assume
such things about assembler syntax! */
sprintf (utlbuf, ".objc_class_name_%s=0",
sprintf (utlbuf, ".objc_class_name_%s=0",
IDENTIFIER_POINTER (CLASS_NAME (impent->imp_context)));
IDENTIFIER_POINTER (CLASS_NAME (impent->imp_context)));
assemble_asm (my_build_string (strlen (utlbuf) + 1, utlbuf));
assemble_asm (my_build_string (strlen (utlbuf) + 1, utlbuf));
...
...
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