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
2a2869d6
Commit
2a2869d6
authored
Jul 24, 2009
by
Cary Coutant
Committed by
Cary Coutant
Jul 24, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* tree-cfg.c (assign_discriminator): Add explicit parentheses.
From-SVN: r150068
parent
b524249c
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
2 deletions
+6
-2
gcc/ChangeLog
+4
-0
gcc/tree-cfg.c
+2
-2
No files found.
gcc/ChangeLog
View file @
2a2869d6
2009-07-24 Cary Coutant <ccoutant@google.com>
2009-07-24 Cary Coutant <ccoutant@google.com>
* tree-cfg.c (assign_discriminator): Add explicit parentheses.
2009-07-24 Cary Coutant <ccoutant@google.com>
* cfghooks.c (split_block): Copy discriminator to new block.
* cfghooks.c (split_block): Copy discriminator to new block.
* tree-cfg.c (assign_discriminator): Check location of last
* tree-cfg.c (assign_discriminator): Check location of last
instruction in block as well as first.
instruction in block as well as first.
...
...
gcc/tree-cfg.c
View file @
2a2869d6
...
@@ -763,8 +763,8 @@ assign_discriminator (location_t locus, basic_block bb)
...
@@ -763,8 +763,8 @@ assign_discriminator (location_t locus, basic_block bb)
first_in_to_bb
=
first_non_label_stmt
(
bb
);
first_in_to_bb
=
first_non_label_stmt
(
bb
);
last_in_to_bb
=
last_stmt
(
bb
);
last_in_to_bb
=
last_stmt
(
bb
);
if
(
first_in_to_bb
&&
same_line_p
(
locus
,
gimple_location
(
first_in_to_bb
))
if
(
(
first_in_to_bb
&&
same_line_p
(
locus
,
gimple_location
(
first_in_to_bb
)
))
||
last_in_to_bb
&&
same_line_p
(
locus
,
gimple_location
(
last_in_to_bb
)))
||
(
last_in_to_bb
&&
same_line_p
(
locus
,
gimple_location
(
last_in_to_bb
)
)))
bb
->
discriminator
=
next_discriminator_for_locus
(
locus
);
bb
->
discriminator
=
next_discriminator_for_locus
(
locus
);
}
}
...
...
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