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
b8093d02
Commit
b8093d02
authored
Mar 06, 1992
by
Richard Stallman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
*** empty log message ***
From-SVN: r399
parent
ce1be81d
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
16 additions
and
15 deletions
+16
-15
gcc/objc/objc-act.c
+15
-14
gcc/reload1.c
+1
-1
No files found.
gcc/objc/objc-act.c
View file @
b8093d02
...
@@ -2603,24 +2603,25 @@ receiver_is_class_object (receiver)
...
@@ -2603,24 +2603,25 @@ receiver_is_class_object (receiver)
* ...check if it is a call to objc_getClass, if so, give it
* ...check if it is a call to objc_getClass, if so, give it
* special treatment.
* special treatment.
*/
*/
tree
exp
=
0
;
tree
exp
=
TREE_OPERAND
(
receiver
,
0
)
;
if
(
(
exp
=
TREE_OPERAND
(
receiver
,
0
))
&&
(
TREE_CODE
(
exp
)
==
ADDR_EXPR
))
if
(
exp
!=
0
&&
(
TREE_CODE
(
exp
)
==
ADDR_EXPR
))
{
{
if
((
exp
=
TREE_OPERAND
(
exp
,
0
))
&&
exp
=
TREE_OPERAND
(
exp
,
0
);
(
TREE_CODE
(
exp
)
==
FUNCTION_DECL
)
&&
exp
==
objc_getClass_decl
)
if
(
exp
!=
0
&&
TREE_CODE
(
exp
)
==
FUNCTION_DECL
&&
exp
==
objc_getClass_decl
)
{
{
/* we have a call to objc_getClass! */
/* we have a call to objc_getClass! */
tree
arg
=
0
;
tree
arg
=
TREE_OPERAND
(
receiver
,
1
)
;
if
(
(
arg
=
TREE_OPERAND
(
receiver
,
1
))
&&
if
(
arg
!=
0
(
TREE_CODE
(
arg
)
==
TREE_LIST
)
&&
&&
TREE_CODE
(
arg
)
==
TREE_LIST
(
arg
=
TREE_VALUE
(
arg
))
&&
&&
arg
=
TREE_VALUE
(
arg
)
(
TREE_CODE
(
arg
)
==
NOP_EXPR
)
&&
&&
TREE_CODE
(
arg
)
==
NOP_EXPR
(
arg
=
TREE_OPERAND
(
arg
,
0
))
&&
&&
arg
=
TREE_OPERAND
(
arg
,
0
)
(
TREE_CODE
(
arg
)
==
ADDR_EXPR
)
&&
&&
TREE_CODE
(
arg
)
==
ADDR_EXPR
(
arg
=
TREE_OPERAND
(
arg
,
0
))
&&
&&
arg
=
TREE_OPERAND
(
arg
,
0
)
(
TREE_CODE
(
arg
)
==
STRING_CST
)
)
&&
TREE_CODE
(
arg
)
==
STRING_CST
)
/* finally, we have the class name */
/* finally, we have the class name */
return
get_identifier
(
TREE_STRING_POINTER
(
arg
));
return
get_identifier
(
TREE_STRING_POINTER
(
arg
));
}
}
...
...
gcc/reload1.c
View file @
b8093d02
...
@@ -702,7 +702,7 @@ reload (first, global, dumpfile)
...
@@ -702,7 +702,7 @@ reload (first, global, dumpfile)
if
(
reg_renumber
[
i
]
==
-
1
&&
reg_n_refs
[
i
]
!=
0
)
if
(
reg_renumber
[
i
]
==
-
1
&&
reg_n_refs
[
i
]
!=
0
)
break
;
break
;
if
(
i
==
max_regno
&&
num_eliminable
=
0
&&
!
caller_save_needed
)
if
(
i
==
max_regno
&&
num_eliminable
=
=
0
&&
!
caller_save_needed
)
return
;
return
;
#endif
#endif
...
...
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