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
4be204f0
Commit
4be204f0
authored
31 years ago
by
Richard Kenner
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(expand_assignment): Fix error in last change.
From-SVN: r4476
parent
b45863ec
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
3 deletions
+7
-3
gcc/expr.c
+7
-3
No files found.
gcc/expr.c
View file @
4be204f0
/* Convert tree expression to rtl instructions, for GNU compiler.
Copyright (C) 1988, 1992 Free Software Foundation, Inc.
Copyright (C) 1988, 1992
, 1993
Free Software Foundation, Inc.
This file is part of GNU CC.
...
...
@@ -2197,8 +2197,12 @@ expand_assignment (to, from, want_value, suggest_reg)
preserve_temp_slots
(
result
);
free_temp_slots
();
return
convert_to_mode
(
TYPE_MODE
(
TREE_TYPE
(
to
)),
result
,
TREE_UNSIGNED
(
TREE_TYPE
(
to
)));
/* If we aren't returning a result, just pass on what expand_expr
returned; it was probably const0_rtx. Otherwise, convert RESULT
to the proper mode. */
return
(
want_value
?
convert_to_mode
(
TYPE_MODE
(
TREE_TYPE
(
to
)),
result
,
TREE_UNSIGNED
(
TREE_TYPE
(
to
)))
:
result
);
}
/* Ordinary treatment. Expand TO to get a REG or MEM rtx.
...
...
This diff is collapsed.
Click to expand it.
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