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
1f546bbb
Commit
1f546bbb
authored
Jan 25, 2013
by
Marek Polacek
Committed by
Marek Polacek
Jan 25, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix PR56035.
From-SVN: r195462
parent
aaf1e810
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
47 additions
and
4 deletions
+47
-4
gcc/ChangeLog
+5
-0
gcc/cfgloopmanip.c
+2
-4
gcc/testsuite/ChangeLog
+5
-0
gcc/testsuite/gcc.dg/pr56035.c
+35
-0
No files found.
gcc/ChangeLog
View file @
1f546bbb
2013-01-25 Marek Polacek <polacek@redhat.com>
PR tree-optimization/56035
* cfgloopmanip.c (fix_loop_structure): Remove redundant condition.
2012-01-24 Uros Bizjak <ubizjak@gmail.com>
* config/i386/i386.md (*movti_internal_rex64): Add (o,e) alternative.
...
...
gcc/cfgloopmanip.c
View file @
1f546bbb
...
...
@@ -1823,10 +1823,8 @@ fix_loop_structure (bitmap changed_bbs)
/* If there was no latch, schedule the loop for removal. */
if
(
!
first_latch
)
loop
->
header
=
NULL
;
/* If there was a single latch and it belongs to the loop of the
header, record it. */
else
if
(
latch
&&
latch
->
src
->
loop_father
==
loop
)
/* If there was a single latch, record it. */
else
if
(
latch
)
loop
->
latch
=
latch
->
src
;
/* Otherwise there are multiple latches which are eventually
disambiguated below. */
...
...
gcc/testsuite/ChangeLog
View file @
1f546bbb
2013-01-22 Marek Polacek <polacek@redhat.com>
PR tree-optimization/56035
* gcc.dg/pr56035.c: New test.
2013-01-24 Richard Sandiford <rdsandiford@googlemail.com>
* gfortran.dg/bind_c_array_params_2.f90: Require -mno-relax-pic-calls
...
...
gcc/testsuite/gcc.dg/pr56035.c
0 → 100644
View file @
1f546bbb
/* PR tree-optimization/56035 */
/* { dg-do compile } */
/* { dg-options "-O1 -ftree-vectorize -fcse-follow-jumps -fstrict-overflow" } */
short
a
,
c
,
*
p
;
void
f
(
void
)
{
int
b
;
if
(
c
)
lbl1:
for
(
a
=
0
;
a
<
1
;
a
++
)
{
for
(
c
=
0
;
c
<
1
;
c
++
)
{
goto
lbl1
;
while
(
*
p
++
)
lbl2:
;
}
}
for
(;;
b
++
)
{
if
(
c
)
goto
lbl2
;
lbl3:
for
(
c
=
0
;
c
<
9
;
c
++
)
for
(
c
=
-
17
;
c
<
2
;
c
++
)
if
(
*
p
)
goto
lbl3
;
}
}
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