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
79777b79
Commit
79777b79
authored
Feb 15, 1994
by
Richard Kenner
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(expand_increment): Handle both BAD_SUBREG and POST.
From-SVN: r6567
parent
a37adfc7
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
1 deletions
+9
-1
gcc/expr.c
+9
-1
No files found.
gcc/expr.c
View file @
79777b79
...
...
@@ -7951,7 +7951,15 @@ expand_increment (exp, post)
SUBREG_REG
(
op0
)
=
copy_to_reg
(
SUBREG_REG
(
op0
));
else
if
(
GET_CODE
(
op0
)
==
SUBREG
&&
GET_MODE_BITSIZE
(
GET_MODE
(
op0
))
<
BITS_PER_WORD
)
bad_subreg
=
1
;
{
/* We cannot increment this SUBREG in place. If we are
post-incrementing, get a copy of the old value. Otherwise,
just mark that we cannot increment in place. */
if
(
post
)
op0
=
copy_to_reg
(
op0
);
else
bad_subreg
=
1
;
}
op0_is_copy
=
((
GET_CODE
(
op0
)
==
SUBREG
||
GET_CODE
(
op0
)
==
REG
)
&&
temp
!=
get_last_insn
());
...
...
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