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
475b5d2a
Commit
475b5d2a
authored
Feb 19, 2011
by
Nicola Pero
Committed by
Nicola Pero
Feb 19, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Do no emit GNU metadata if there is nothing to put into it
From-SVN: r170292
parent
34c10b3b
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
22 additions
and
5 deletions
+22
-5
gcc/objc/ChangeLog
+5
-0
gcc/objc/objc-gnu-runtime-abi-01.c
+17
-5
No files found.
gcc/objc/ChangeLog
View file @
475b5d2a
2011
-
01
-
19
Nicola
Pero
<
nicola
.
pero
@meta
-
innovation
.
com
>
*
objc
-
gnu
-
runtime
-
abi
-
01
.
c
(
objc_generate_v1_gnu_metadata
)
:
Do
not
generate
metadata
if
there
is
nothing
to
put
into
it
.
2011
-
02
-
17
Iain
Sandoe
<
iains
@gcc
.
gnu
.
org
>
*
config
-
lang
.
in
(
gtfiles
)
:
Updated
.
...
...
gcc/objc/objc-gnu-runtime-abi-01.c
View file @
475b5d2a
...
...
@@ -2105,11 +2105,23 @@ objc_generate_v1_gnu_metadata (void)
generate_protocols
();
/* Arrange for ObjC data structures to be initialized at run time. */
generate_objc_symtab_decl
();
/* Make sure that the meta-data are identified as being GNU-runtime. */
build_module_descriptor
(
OBJC_VERSION
,
build_tree_list
(
objc_meta
,
meta_base
));
build_module_initializer_routine
();
/* FIXME: Have some more elegant way to determine if we need to
generate objc_symtab_decl or not, instead of checking these
global symbols. */
if
(
imp_list
||
class_names_chain
||
meth_var_names_chain
||
meth_var_types_chain
||
sel_ref_chain
||
prop_names_attr_chain
)
generate_objc_symtab_decl
();
if
(
imp_list
||
class_names_chain
||
objc_static_instances
||
meth_var_names_chain
||
meth_var_types_chain
||
sel_ref_chain
)
{
/* Make sure that the meta-data are identified as being
GNU-runtime. */
build_module_descriptor
(
OBJC_VERSION
,
build_tree_list
(
objc_meta
,
meta_base
));
build_module_initializer_routine
();
}
/* Dump the class references. This forces the appropriate classes
to be linked into the executable image, preserving unix archive
...
...
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