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
2d43e089
Commit
2d43e089
authored
Oct 29, 1995
by
Richard Kenner
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(stupid_mark_refs): Handle SUBREG of pseudo-reg in a SET_DEST same as
we handle a pseudo-reg in a SET_DEST. From-SVN: r10541
parent
4f069e14
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
3 deletions
+12
-3
gcc/stupid.c
+12
-3
No files found.
gcc/stupid.c
View file @
2d43e089
/* Dummy data flow analysis for GNU compiler in nonoptimizing mode.
/* Dummy data flow analysis for GNU compiler in nonoptimizing mode.
Copyright (C) 1987, 1991, 1994 Free Software Foundation, Inc.
Copyright (C) 1987, 1991, 1994
, 1995
Free Software Foundation, Inc.
This file is part of GNU CC.
This file is part of GNU CC.
...
@@ -423,10 +423,19 @@ stupid_mark_refs (x, insn)
...
@@ -423,10 +423,19 @@ stupid_mark_refs (x, insn)
if
(
code
==
SET
||
code
==
CLOBBER
)
if
(
code
==
SET
||
code
==
CLOBBER
)
{
{
if
(
SET_DEST
(
x
)
!=
0
&&
GET_CODE
(
SET_DEST
(
x
))
==
REG
)
if
(
SET_DEST
(
x
)
!=
0
&&
(
GET_CODE
(
SET_DEST
(
x
))
==
REG
||
(
GET_CODE
(
SET_DEST
(
x
))
==
SUBREG
&&
GET_CODE
(
SUBREG_REG
(
SET_DEST
(
x
)))
==
REG
&&
(
REGNO
(
SUBREG_REG
(
SET_DEST
(
x
)))
>=
FIRST_PSEUDO_REGISTER
))))
{
{
/* Register is being assigned. */
/* Register is being assigned. */
regno
=
REGNO
(
SET_DEST
(
x
));
/* If setting a SUBREG, we treat the entire reg as being set. */
if
(
GET_CODE
(
SET_DEST
(
x
))
==
SUBREG
)
regno
=
REGNO
(
SUBREG_REG
(
SET_DEST
(
x
)));
else
regno
=
REGNO
(
SET_DEST
(
x
));
/* For hard regs, update the where-live info. */
/* For hard regs, update the where-live info. */
if
(
regno
<
FIRST_PSEUDO_REGISTER
)
if
(
regno
<
FIRST_PSEUDO_REGISTER
)
...
...
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