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
65753f55
Commit
65753f55
authored
Nov 23, 1993
by
Richard Kenner
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(rare_destination): Ensure we always correctly handle a null
JUMP_LABEL. From-SVN: r6150
parent
647902e0
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
3 deletions
+6
-3
gcc/reorg.c
+6
-3
No files found.
gcc/reorg.c
View file @
65753f55
...
...
@@ -1239,7 +1239,7 @@ get_jump_flags (insn, label)
return
flags
;
}
/* Return 1 if
DEST
is a destination that will be branched to rarely (the
/* Return 1 if
INSN
is a destination that will be branched to rarely (the
return point of a function); return 2 if DEST will be branched to very
rarely (a call to a function that doesn't return). Otherwise,
return 0. */
...
...
@@ -1249,12 +1249,15 @@ rare_destination (insn)
rtx
insn
;
{
int
jump_count
=
0
;
rtx
next
;
for
(;
insn
;
insn
=
NEXT_INSN
(
insn
)
)
for
(;
insn
;
insn
=
next
)
{
if
(
GET_CODE
(
insn
)
==
INSN
&&
GET_CODE
(
PATTERN
(
insn
))
==
SEQUENCE
)
insn
=
XVECEXP
(
PATTERN
(
insn
),
0
,
0
);
next
=
NEXT_INSN
(
insn
);
switch
(
GET_CODE
(
insn
))
{
case
CODE_LABEL
:
...
...
@@ -1270,7 +1273,7 @@ rare_destination (insn)
return
1
;
else
if
(
simplejump_p
(
insn
)
&&
jump_count
++
<
10
)
insn
=
JUMP_LABEL
(
insn
);
next
=
JUMP_LABEL
(
insn
);
else
return
0
;
}
...
...
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