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
400d6322
Commit
400d6322
authored
Oct 09, 1998
by
David Edelsohn
Committed by
David Edelsohn
Oct 09, 1998
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* loop.c (insert_bct): Ensure loop_iteration_var non-zero before use.
From-SVN: r22955
parent
3fe88ebf
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
2 deletions
+15
-2
gcc/ChangeLog
+4
-0
gcc/loop.c
+11
-2
No files found.
gcc/ChangeLog
View file @
400d6322
Fri
Oct
9
11
:
44
:
47
1998
David
Edelsohn
<
edelsohn
@mhpcc
.
edu
>
*
loop
.
c
(
insert_bct
)
:
Ensure
loop_iteration_var
non
-
zero
before
use
.
Thu
Oct
8
21
:
59
:
47
1998
Dave
Brolley
<
brolley
@cygnus
.
com
>
Thu
Oct
8
21
:
59
:
47
1998
Dave
Brolley
<
brolley
@cygnus
.
com
>
*
emit
-
rtl
.
c
(
init_emit_once
)
:
Call
INIT_EXPANDERS
.
*
emit
-
rtl
.
c
(
init_emit_once
)
:
Call
INIT_EXPANDERS
.
...
...
gcc/loop.c
View file @
400d6322
...
@@ -8054,12 +8054,21 @@ insert_bct (loop_start, loop_end)
...
@@ -8054,12 +8054,21 @@ insert_bct (loop_start, loop_end)
at compile time. In this case we generate run_time calculation
at compile time. In this case we generate run_time calculation
of the number of iterations. */
of the number of iterations. */
if
(
loop_iteration_var
==
0
)
{
if
(
loop_dump_stream
)
fprintf
(
loop_dump_stream
,
"insert_bct %d: BCT Runtime Instrumentation failed: no loop iteration variable found
\n
"
,
loop_num
);
return
;
}
if
(
GET_MODE_CLASS
(
GET_MODE
(
loop_iteration_var
))
!=
MODE_INT
if
(
GET_MODE_CLASS
(
GET_MODE
(
loop_iteration_var
))
!=
MODE_INT
||
GET_MODE_SIZE
(
GET_MODE
(
loop_iteration_var
))
!=
UNITS_PER_WORD
)
||
GET_MODE_SIZE
(
GET_MODE
(
loop_iteration_var
))
!=
UNITS_PER_WORD
)
{
{
if
(
loop_dump_stream
)
if
(
loop_dump_stream
)
fprintf
(
loop_dump_stream
,
fprintf
(
loop_dump_stream
,
"insert_bct %d: BCT Instrumentation failed: loop variable not integer
\n
"
,
"insert_bct %d: BCT
Runtime
Instrumentation failed: loop variable not integer
\n
"
,
loop_num
);
loop_num
);
return
;
return
;
}
}
...
@@ -8069,7 +8078,7 @@ insert_bct (loop_start, loop_end)
...
@@ -8069,7 +8078,7 @@ insert_bct (loop_start, loop_end)
{
{
if
(
loop_dump_stream
)
if
(
loop_dump_stream
)
fprintf
(
loop_dump_stream
,
fprintf
(
loop_dump_stream
,
"insert_bct %d: runtime bounds with != comparison
\n
"
,
"insert_bct %d:
BCT Runtime Instrumentation failed:
runtime bounds with != comparison
\n
"
,
loop_num
);
loop_num
);
return
;
return
;
}
}
...
...
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