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
b55d9ff8
Commit
b55d9ff8
authored
Dec 31, 1995
by
Richard Kenner
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(assign_temp): Add extra arg, DONT_PROMOTE.
Don't return (const_int 0) for VOIDmode. From-SVN: r10923
parent
eb7102fe
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
6 deletions
+7
-6
gcc/function.c
+7
-6
No files found.
gcc/function.c
View file @
b55d9ff8
...
...
@@ -922,13 +922,16 @@ assign_stack_temp (mode, size, keep)
/* Assign a temporary of given TYPE.
KEEP is as for assign_stack_temp.
MEMORY_REQUIRED is 1 if the result must be addressable stack memory;
it is 0 if a register is OK. */
it is 0 if a register is OK.
DONT_PROMOTE is 1 if we should not promote values in register
to wider modes. */
rtx
assign_temp
(
type
,
keep
,
memory_required
)
assign_temp
(
type
,
keep
,
memory_required
,
dont_promote
)
tree
type
;
int
keep
;
int
memory_required
;
int
dont_promote
;
{
enum
machine_mode
mode
=
TYPE_MODE
(
type
);
int
unsignedp
=
TREE_UNSIGNED
(
type
);
...
...
@@ -952,11 +955,9 @@ assign_temp (type, keep, memory_required)
return
tmp
;
}
if
(
mode
==
VOIDmode
)
return
const0_rtx
;
#ifndef PROMOTE_FOR_CALL_ONLY
mode
=
promote_mode
(
type
,
mode
,
&
unsignedp
,
0
);
if
(
!
dont_promote
)
mode
=
promote_mode
(
type
,
mode
,
&
unsignedp
,
0
);
#endif
return
gen_reg_rtx
(
mode
);
...
...
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