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
1cb8d58a
Commit
1cb8d58a
authored
Feb 23, 2000
by
Nick Clifton
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(arm_comp_type_attributes): Simply and comment tests on type attributes.
From-SVN: r32120
parent
211365c2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
gcc/config/arm/arm.c
+6
-6
No files found.
gcc/config/arm/arm.c
View file @
1cb8d58a
...
...
@@ -1641,23 +1641,23 @@ arm_comp_type_attributes (type1, type2)
tree
type1
;
tree
type2
;
{
tree
l1
,
l2
,
s1
,
s2
;
int
l1
,
l2
,
s1
,
s2
;
/* Check for mismatch of non-default calling convention. */
if
(
TREE_CODE
(
type1
)
!=
FUNCTION_TYPE
)
return
1
;
/* Check for mismatched call attributes. */
l1
=
lookup_attribute
(
"long_call"
,
TYPE_ATTRIBUTES
(
type1
));
l2
=
lookup_attribute
(
"long_call"
,
TYPE_ATTRIBUTES
(
type2
));
s1
=
lookup_attribute
(
"short_call"
,
TYPE_ATTRIBUTES
(
type1
));
s2
=
lookup_attribute
(
"short_call"
,
TYPE_ATTRIBUTES
(
type2
));
l1
=
lookup_attribute
(
"long_call"
,
TYPE_ATTRIBUTES
(
type1
))
!=
NULL
;
l2
=
lookup_attribute
(
"long_call"
,
TYPE_ATTRIBUTES
(
type2
))
!=
NULL
;
s1
=
lookup_attribute
(
"short_call"
,
TYPE_ATTRIBUTES
(
type1
))
!=
NULL
;
s2
=
lookup_attribute
(
"short_call"
,
TYPE_ATTRIBUTES
(
type2
))
!=
NULL
;
/* Only bother to check if an attribute is defined. */
if
(
l1
|
l2
|
s1
|
s2
)
{
/* If one type has an attribute, the other must have the same attribute. */
if
((
!
l1
!=
!
l2
)
||
(
!
s1
!=
!
s2
))
if
((
l1
!=
l2
)
||
(
s1
!=
s2
))
return
0
;
/* Disallow mixed attributes. */
...
...
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