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
f6beed21
Commit
f6beed21
authored
Nov 15, 1996
by
Richard Kenner
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(iteration_info): Fix code so that it knows iteration_var is a
HOST_WIDE_INT, not a long. From-SVN: r13164
parent
80906567
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
4 deletions
+6
-4
gcc/unroll.c
+6
-4
No files found.
gcc/unroll.c
View file @
f6beed21
...
...
@@ -2263,14 +2263,16 @@ iteration_info (iteration_var, initial_value, increment, loop_start, loop_end)
"Loop unrolling: No reg_iv_type entry for iteration var.
\n
"
);
return
;
}
/* Reject iteration variables larger than the host long size, since they
/* Reject iteration variables larger than the host wide int size, since they
could result in a number of iterations greater than the range of our
`unsigned long' variable loop_n_iterations. */
else
if
(
GET_MODE_BITSIZE
(
GET_MODE
(
iteration_var
))
>
HOST_BITS_PER_LONG
)
`unsigned HOST_WIDE_INT' variable loop_n_iterations. */
else
if
((
GET_MODE_BITSIZE
(
GET_MODE
(
iteration_var
))
>
HOST_BITS_PER_WIDE_INT
))
{
if
(
loop_dump_stream
)
fprintf
(
loop_dump_stream
,
"Loop unrolling: Iteration var rejected because mode
larger than host long
.
\n
"
);
"Loop unrolling: Iteration var rejected because mode
too large
.
\n
"
);
return
;
}
else
if
(
GET_MODE_CLASS
(
GET_MODE
(
iteration_var
))
!=
MODE_INT
)
...
...
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