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
88285acf
Commit
88285acf
authored
Mar 18, 1995
by
Richard Kenner
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(mark_used_regs, case SUBREG): Set reg_changes_size even for integer
modes. From-SVN: r9205
parent
6bc2f582
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
4 deletions
+9
-4
gcc/flow.c
+9
-4
No files found.
gcc/flow.c
View file @
88285acf
/* Data flow analysis for GNU compiler.
/* Data flow analysis for GNU compiler.
Copyright (C) 1987,
1988, 1992, 1993, 1994
Free Software Foundation, Inc.
Copyright (C) 1987,
88, 92, 93, 94, 1995
Free Software Foundation, Inc.
This file is part of GNU CC.
This file is part of GNU CC.
...
@@ -2379,9 +2379,7 @@ mark_used_regs (needed, live, x, final, insn)
...
@@ -2379,9 +2379,7 @@ mark_used_regs (needed, live, x, final, insn)
if
(
GET_CODE
(
SUBREG_REG
(
x
))
==
REG
if
(
GET_CODE
(
SUBREG_REG
(
x
))
==
REG
&&
REGNO
(
SUBREG_REG
(
x
))
>=
FIRST_PSEUDO_REGISTER
&&
REGNO
(
SUBREG_REG
(
x
))
>=
FIRST_PSEUDO_REGISTER
&&
(
GET_MODE_SIZE
(
GET_MODE
(
x
))
&&
(
GET_MODE_SIZE
(
GET_MODE
(
x
))
!=
GET_MODE_SIZE
(
GET_MODE
(
SUBREG_REG
(
x
))))
!=
GET_MODE_SIZE
(
GET_MODE
(
SUBREG_REG
(
x
)))))
&&
(
INTEGRAL_MODE_P
(
GET_MODE
(
x
))
||
INTEGRAL_MODE_P
(
GET_MODE
(
SUBREG_REG
(
x
)))))
reg_changes_size
[
REGNO
(
SUBREG_REG
(
x
))]
=
1
;
reg_changes_size
[
REGNO
(
SUBREG_REG
(
x
))]
=
1
;
/* While we're here, optimize this case. */
/* While we're here, optimize this case. */
...
@@ -2572,6 +2570,13 @@ mark_used_regs (needed, live, x, final, insn)
...
@@ -2572,6 +2570,13 @@ mark_used_regs (needed, live, x, final, insn)
||
GET_CODE
(
testreg
)
==
SIGN_EXTRACT
||
GET_CODE
(
testreg
)
==
SIGN_EXTRACT
||
GET_CODE
(
testreg
)
==
SUBREG
)
||
GET_CODE
(
testreg
)
==
SUBREG
)
{
{
if
(
GET_CODE
(
testreg
)
==
SUBREG
&&
GET_CODE
(
SUBREG_REG
(
testreg
))
==
REG
&&
REGNO
(
SUBREG_REG
(
testreg
))
>=
FIRST_PSEUDO_REGISTER
&&
(
GET_MODE_SIZE
(
GET_MODE
(
testreg
))
!=
GET_MODE_SIZE
(
GET_MODE
(
SUBREG_REG
(
testreg
)))))
reg_changes_size
[
REGNO
(
SUBREG_REG
(
testreg
))]
=
1
;
/* Modifying a single register in an alternate mode
/* Modifying a single register in an alternate mode
does not use any of the old value. But these other
does not use any of the old value. But these other
ways of storing in a register do use the old value. */
ways of storing in a register do use the old value. */
...
...
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