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
1f027d54
Commit
1f027d54
authored
Apr 13, 1997
by
Richard Kenner
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(invariant_p, case REG): Pointers into frame are not invariants if
function has nonlocal gotos. From-SVN: r13862
parent
51a96571
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
2 deletions
+7
-2
gcc/loop.c
+7
-2
No files found.
gcc/loop.c
View file @
1f027d54
...
...
@@ -2761,14 +2761,19 @@ invariant_p (x)
case
REG
:
/* We used to check RTX_UNCHANGING_P (x) here, but that is invalid
since the reg might be set by initialization within the loop. */
if
(
x
==
frame_pointer_rtx
||
x
==
hard_frame_pointer_rtx
||
x
==
arg_pointer_rtx
)
if
((
x
==
frame_pointer_rtx
||
x
==
hard_frame_pointer_rtx
||
x
==
arg_pointer_rtx
)
&&
!
current_function_has_nonlocal_goto
)
return
1
;
if
(
loop_has_call
&&
REGNO
(
x
)
<
FIRST_PSEUDO_REGISTER
&&
call_used_regs
[
REGNO
(
x
)])
return
0
;
if
(
n_times_set
[
REGNO
(
x
)]
<
0
)
return
2
;
return
n_times_set
[
REGNO
(
x
)]
==
0
;
case
MEM
:
...
...
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