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
ad074d60
Commit
ad074d60
authored
Dec 29, 2001
by
Stan Shebs
Committed by
Stan Shebs
Dec 29, 2001
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* objc/objc-act.c: Apply various cosmetic and formatting changes.
From-SVN: r48365
parent
7f3ad6b6
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
19 additions
and
19 deletions
+19
-19
gcc/ChangeLog
+4
-0
gcc/objc/objc-act.c
+15
-19
No files found.
gcc/ChangeLog
View file @
ad074d60
2001
-
12
-
29
Stan
Shebs
<
shebs
@apple
.
com
>
*
objc
/
objc
-
act
.
c
:
Apply
various
cosmetic
and
formatting
changes
.
2001
-
12
-
29
Kazu
Hirata
<
kazu
@hxi
.
com
>
*
config
/
rs6000
/
darwin
-
tramp
.
asm
:
Fix
comment
formatting
.
...
...
gcc/objc/objc-act.c
View file @
ad074d60
...
...
@@ -382,7 +382,7 @@ static const char *TAG_MSGSEND;
static
const
char
*
TAG_MSGSENDSUPER
;
static
const
char
*
TAG_EXECCLASS
;
/* The OCTI_... enumeration itself i
n
in objc/objc-act.h. */
/* The OCTI_... enumeration itself i
s
in objc/objc-act.h. */
tree
objc_global_trees
[
OCTI_MAX
];
int
objc_receiver_context
;
...
...
@@ -437,20 +437,19 @@ int flag_warn_protocol = 1;
/* Tells "encode_pointer/encode_aggregate" whether we are generating
type descriptors for instance variables (as opposed to methods).
Type descriptors for instance variables contain more information
than methods (for static typing and embedded structures). This
was added to support features being planned for dbkit2. */
than methods (for static typing and embedded structures). */
static
int
generating_instance_variables
=
0
;
/* Tells the compiler that this is a special run. Do not perform
any compiling, instead we are to test some platform dependent
features and output a C header file with appropriate definitions.
*/
/* Tells the compiler that this is a special run. Do not perform
any
compiling, instead we are to test some platform dependent features
and output a C header file with appropriate definitions.
*/
static
int
print_struct_values
=
0
;
/* Some platforms pass small structures through registers versus
through
an invisible pointer. Determine at what size structure is the
t
ransition point between the two possibilities.
*/
/* Some platforms pass small structures through registers versus
through an invisible pointer. Determine at what size structure is
t
he transition point between the two possibilities.
*/
static
void
generate_struct_by_value_array
()
...
...
@@ -1563,8 +1562,8 @@ init_objc_symtab (type)
return
build_constructor
(
type
,
nreverse
(
initlist
));
}
/* Push forward-declarations of all the categories
so that
init_def_list can use them in a CONSTRUCTOR. */
/* Push forward-declarations of all the categories
so that
init_def_list can use them in a CONSTRUCTOR. */
static
void
forward_declare_categories
()
...
...
@@ -2829,7 +2828,7 @@ generate_descriptor_table (type, name, size, list, proto)
}
static
void
generate_method_descriptors
(
protocol
)
/* generate_dispatch_tables */
generate_method_descriptors
(
protocol
)
tree
protocol
;
{
tree
initlist
,
chain
,
method_list_template
;
...
...
@@ -2837,9 +2836,7 @@ generate_method_descriptors (protocol) /* generate_dispatch_tables */
int
size
;
if
(
!
objc_method_prototype_template
)
{
objc_method_prototype_template
=
build_method_prototype_template
();
}
cast
=
build_tree_list
(
build_tree_list
(
NULL_TREE
,
xref_tag
(
RECORD_TYPE
,
get_identifier
(
UTAG_METHOD_PROTOTYPE_LIST
))),
...
...
@@ -5971,6 +5968,7 @@ check_protocol (p, type, name)
tree
subs
=
PROTOCOL_LIST
(
p
);
tree
super_class
=
lookup_interface
(
CLASS_SUPER_NAME
(
implementation_template
));
while
(
subs
)
{
tree
sub
=
TREE_VALUE
(
subs
);
...
...
@@ -6315,10 +6313,8 @@ lookup_protocol (ident)
tree
chain
;
for
(
chain
=
protocol_chain
;
chain
;
chain
=
TREE_CHAIN
(
chain
))
{
if
(
ident
==
PROTOCOL_NAME
(
chain
))
return
chain
;
}
return
NULL_TREE
;
}
...
...
@@ -7970,7 +7966,7 @@ dump_interface (fp, chain)
FILE
*
fp
;
tree
chain
;
{
char
*
buf
=
(
char
*
)
xmalloc
(
256
);
char
*
buf
=
(
char
*
)
xmalloc
(
256
);
const
char
*
my_name
=
IDENTIFIER_POINTER
(
CLASS_NAME
(
chain
));
tree
ivar_decls
=
CLASS_RAW_IVARS
(
chain
);
tree
nst_methods
=
CLASS_NST_METHODS
(
chain
);
...
...
@@ -8099,7 +8095,7 @@ init_objc ()
gcc_obstack_init
(
&
util_obstack
);
util_firstobj
=
(
char
*
)
obstack_finish
(
&
util_obstack
);
errbuf
=
(
char
*
)
xmalloc
(
BUFSIZE
);
errbuf
=
(
char
*
)
xmalloc
(
BUFSIZE
);
hash_init
();
synth_module_prologue
();
}
...
...
@@ -8171,7 +8167,7 @@ finish_objc ()
if
(
objc_implementation_context
||
class_names_chain
||
objc_static_instances
||
meth_var_names_chain
||
meth_var_types_chain
||
sel_ref_chain
)
{
/* Arrange for Obj
c
data structures to be initialized at run time. */
/* Arrange for Obj
C
data structures to be initialized at run time. */
rtx
init_sym
=
build_module_descriptor
();
if
(
init_sym
&&
targetm
.
have_ctors_dtors
)
(
*
targetm
.
asm_out
.
constructor
)
(
init_sym
,
DEFAULT_INIT_PRIORITY
);
...
...
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