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
28612f9e
Commit
28612f9e
authored
Apr 18, 1994
by
Richard Kenner
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(expand_value_return, expand_decl): Use promote_mode.
From-SVN: r7070
parent
78911e8b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
18 deletions
+5
-18
gcc/stmt.c
+5
-18
No files found.
gcc/stmt.c
View file @
28612f9e
...
...
@@ -2655,17 +2655,11 @@ expand_value_return (val)
if
(
return_reg
!=
val
)
{
#ifdef PROMOTE_FUNCTION_RETURN
enum
machine_mode
mode
=
DECL_MODE
(
DECL_RESULT
(
current_function_decl
));
tree
type
=
TREE_TYPE
(
DECL_RESULT
(
current_function_decl
));
int
unsignedp
=
TREE_UNSIGNED
(
type
);
if
(
TREE_CODE
(
type
)
==
INTEGER_TYPE
||
TREE_CODE
(
type
)
==
ENUMERAL_TYPE
||
TREE_CODE
(
type
)
==
BOOLEAN_TYPE
||
TREE_CODE
(
type
)
==
CHAR_TYPE
||
TREE_CODE
(
type
)
==
REAL_TYPE
||
TREE_CODE
(
type
)
==
POINTER_TYPE
||
TREE_CODE
(
type
)
==
OFFSET_TYPE
)
{
PROMOTE_MODE
(
mode
,
unsignedp
,
type
);
}
enum
machine_mode
mode
=
promote_mode
(
type
,
DECL_MODE
(
DECL_RESULT
(
current_function_decl
)),
&
unsignedp
,
1
);
if
(
GET_MODE
(
val
)
!=
VOIDmode
&&
GET_MODE
(
val
)
!=
mode
)
convert_move
(
return_reg
,
val
,
unsignedp
);
...
...
@@ -3406,16 +3400,9 @@ expand_decl (decl)
&&
(
DECL_REGISTER
(
decl
)
||
!
obey_regdecls
))
{
/* Automatic variable that can go in a register. */
enum
machine_mode
reg_mode
=
DECL_MODE
(
decl
);
int
unsignedp
=
TREE_UNSIGNED
(
type
);
if
(
TREE_CODE
(
type
)
==
INTEGER_TYPE
||
TREE_CODE
(
type
)
==
ENUMERAL_TYPE
||
TREE_CODE
(
type
)
==
BOOLEAN_TYPE
||
TREE_CODE
(
type
)
==
CHAR_TYPE
||
TREE_CODE
(
type
)
==
REAL_TYPE
||
TREE_CODE
(
type
)
==
POINTER_TYPE
||
TREE_CODE
(
type
)
==
OFFSET_TYPE
)
{
PROMOTE_MODE
(
reg_mode
,
unsignedp
,
type
);
}
enum
machine_mode
reg_mode
=
promote_mode
(
type
,
DECL_MODE
(
decl
),
&
unsignedp
,
0
);
if
(
TREE_CODE
(
type
)
==
COMPLEX_TYPE
)
{
...
...
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