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
4f52d290
Commit
4f52d290
authored
May 20, 1993
by
Richard Stallman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(handle_class_ref): Call assemble_constant_align before output_constant.
From-SVN: r4510
parent
d447ec6f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
3 deletions
+8
-3
gcc/objc/objc-act.c
+8
-3
No files found.
gcc/objc/objc-act.c
View file @
4f52d290
...
...
@@ -1043,7 +1043,7 @@ synth_module_prologue ()
umsg_decl
=
build_decl
(
FUNCTION_DECL
,
get_identifier
(
TAG_MSGSEND
),
temp_type
);
DECL_EXTERNAL
(
umsg_decl
)
=
1
;
TREE_PUBLIC
(
umsg_decl
)
=
0
;
TREE_PUBLIC
(
umsg_decl
)
=
1
;
DECL_INLINE
(
umsg_decl
)
=
1
;
if
(
flag_traditional
&&
TAG_MSGSEND
[
0
]
!=
'_'
)
...
...
@@ -7452,6 +7452,7 @@ handle_class_ref (chain)
{
tree
decl
;
char
*
string
=
(
char
*
)
alloca
(
strlen
(
name
)
+
30
);
tree
exp
;
sprintf
(
string
,
"%sobjc_class_name_%s"
,
(
flag_next_runtime
?
"."
:
"__"
),
name
);
...
...
@@ -7467,12 +7468,16 @@ handle_class_ref (chain)
/* Make following constant read-only (why not)? */
readonly_data_section
();
exp
=
build1
(
ADDR_EXPR
,
string_type_node
,
decl
);
/* Align the section properly. */
assemble_constant_align
(
exp
);
/* Inform the assembler about this new external thing. */
assemble_external
(
decl
);
/* Output a constant to reference this address. */
output_constant
(
build1
(
ADDR_EXPR
,
string_type_node
,
decl
),
int_size_in_bytes
(
string_type_node
));
output_constant
(
exp
,
int_size_in_bytes
(
string_type_node
));
}
else
{
...
...
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