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
ff78f773
Commit
ff78f773
authored
Apr 05, 1993
by
Richard Kenner
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(expand_expr, case SAVE_EXPR): Pass promoted type to store_expr.
From-SVN: r4022
parent
597bb7f1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
1 deletions
+15
-1
gcc/expr.c
+15
-1
No files found.
gcc/expr.c
View file @
ff78f773
...
...
@@ -3491,10 +3491,24 @@ expand_expr (exp, target, tmode, modifier)
}
SAVE_EXPR_RTL
(
exp
)
=
temp
;
store_expr
(
TREE_OPERAND
(
exp
,
0
),
temp
,
0
);
if
(
!
optimize
&&
GET_CODE
(
temp
)
==
REG
)
save_expr_regs
=
gen_rtx
(
EXPR_LIST
,
VOIDmode
,
temp
,
save_expr_regs
);
/* If the mode of TEMP does not match that of the expression, it
must be a promoted value. We pass store_expr a SUBREG of the
wanted mode but mark it so that we know that it was already
extended. Note that `unsignedp' was modified above in
this case. */
if
(
GET_CODE
(
temp
)
==
REG
&&
GET_MODE
(
temp
)
!=
mode
)
{
temp
=
gen_rtx
(
SUBREG
,
mode
,
SAVE_EXPR_RTL
(
exp
),
0
);
SUBREG_PROMOTED_VAR_P
(
temp
)
=
1
;
SUBREG_PROMOTED_UNSIGNED_P
(
temp
)
=
unsignedp
;
}
store_expr
(
TREE_OPERAND
(
exp
,
0
),
temp
,
0
);
}
/* If the mode of SAVE_EXPR_RTL does not match that of the expression, 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