summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorccoutant <ccoutant@138bc75d-0d04-0410-961f-82ee72b054a4>2009-07-24 23:29:23 +0000
committerccoutant <ccoutant@138bc75d-0d04-0410-961f-82ee72b054a4>2009-07-24 23:29:23 +0000
commit15b7ca3a8bb57e90a0c0d6ae6c11b01fc53d828a (patch)
treec74559800c3434faa97fec95fe00c0202a5852cb
parentbe347f2e6655bfcb050fa8188435799369efab38 (diff)
downloadppe42-gcc-15b7ca3a8bb57e90a0c0d6ae6c11b01fc53d828a.tar.gz
ppe42-gcc-15b7ca3a8bb57e90a0c0d6ae6c11b01fc53d828a.zip
* tree-cfg.c (assign_discriminator): Add explicit parentheses.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@150068 138bc75d-0d04-0410-961f-82ee72b054a4
-rw-r--r--gcc/ChangeLog4
-rw-r--r--gcc/tree-cfg.c4
2 files changed, 6 insertions, 2 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 13acf76809e..0647513b03f 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,5 +1,9 @@
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.
* tree-cfg.c (assign_discriminator): Check location of last
instruction in block as well as first.
diff --git a/gcc/tree-cfg.c b/gcc/tree-cfg.c
index d818b6b52dc..49345c2535b 100644
--- a/gcc/tree-cfg.c
+++ b/gcc/tree-cfg.c
@@ -763,8 +763,8 @@ assign_discriminator (location_t locus, basic_block bb)
first_in_to_bb = first_non_label_stmt (bb);
last_in_to_bb = last_stmt (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)))
+ 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))))
bb->discriminator = next_discriminator_for_locus (locus);
}
OpenPOWER on IntegriCloud