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
79d06d29
Commit
79d06d29
authored
Jul 13, 1997
by
Richard Kenner
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(stupid_mark_refs): If setting reg set only in this insn and not
referenced, make REG_UNUSED note. From-SVN: r14416
parent
a23ea598
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
1 deletions
+14
-1
gcc/stupid.c
+14
-1
No files found.
gcc/stupid.c
View file @
79d06d29
/* 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, 1995, 19
96, 1997 Free Software Foundation, Inc.
Copyright (C) 1987,
91, 94, 95,
96, 1997 Free Software Foundation, Inc.
This file is part of GNU CC.
This file is part of GNU CC.
...
@@ -514,6 +514,19 @@ stupid_mark_refs (x, insn)
...
@@ -514,6 +514,19 @@ stupid_mark_refs (x, insn)
if
(
last_setjmp_suid
<
reg_where_dead
[
regno
])
if
(
last_setjmp_suid
<
reg_where_dead
[
regno
])
regs_crosses_setjmp
[
regno
]
=
1
;
regs_crosses_setjmp
[
regno
]
=
1
;
/* If this register is only used in this insn and is only
set, mark it unused. We have to do this even when not
optimizing so that MD patterns which count on this
behavior (e.g., it not causing an output reload on
an insn setting CC) will operate correctly. */
if
(
GET_CODE
(
SET_DEST
(
x
))
==
REG
&&&
REGNO_FIRST_UID
(
regno
)
==
INSN_UID
(
insn
)
&&
REGNO_LAST_UID
(
regno
)
==
INSN_UID
(
insn
)
&&
(
code
==
CLOBBER
||
!
reg_mentioned_p
(
SET_DEST
(
x
),
SET_SRC
(
x
))))
REG_NOTES
(
insn
)
=
gen_rtx
(
EXPR_LIST
,
REG_UNUSED
,
SET_DEST
(
x
),
REG_NOTES
(
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