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
afc6898e
Commit
afc6898e
authored
24 years ago
by
Bernd Schmidt
Committed by
Bernd Schmidt
24 years ago
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix shorten_branches bugs
From-SVN: r36538
parent
3fbef42f
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
5 deletions
+7
-5
gcc/ChangeLog
+4
-2
gcc/final.c
+3
-3
No files found.
gcc/ChangeLog
View file @
afc6898e
2000-09-19 Bernd Schmidt <bernds@redhat.co.uk>
* final.c (insn_current_reference_address): Use INSN_SHUID of seq
rather than that of branch.
(shorten_branches): Don't increment insn_current_address twice.
Undo most of the Wed Jan 27 23:39:53 1999 patch:
* loop.h (struct induction): Delete members derived, ix and last_use.
(struct loop_ivs): Delete members first_increment_giv and
...
...
@@ -22,8 +26,6 @@
increments.
Don't set derived_regs.
2000-09-19 Bernd Schmidt <bernds@redhat.co.uk>
Fix misapplied earlier patch:
* config/sh/sh.md (floatsisf_ie): Reenable. Remove explicit reference
to fpul.
...
...
This diff is collapsed.
Click to expand it.
gcc/final.c
View file @
afc6898e
...
...
@@ -932,8 +932,9 @@ insn_current_reference_address (branch)
return
insn_current_address
;
dest
=
JUMP_LABEL
(
branch
);
/* BRANCH has no proper alignment chain set, so use SEQ. */
if
(
INSN_SHUID
(
branch
)
<
INSN_SHUID
(
dest
))
/* BRANCH has no proper alignment chain set, so use SEQ.
BRANCH also has no INSN_SHUID. */
if
(
INSN_SHUID
(
seq
)
<
INSN_SHUID
(
dest
))
{
/* Forward branch. */
return
(
insn_last_address
+
insn_lengths
[
seq_uid
]
...
...
@@ -1241,7 +1242,6 @@ shorten_branches (first)
int
align
=
1
<<
log
;
int
new_address
=
(
insn_current_address
+
align
-
1
)
&
-
align
;
insn_lengths
[
uid
]
=
new_address
-
insn_current_address
;
insn_current_address
=
new_address
;
}
}
...
...
This diff is collapsed.
Click to expand it.
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