ipa-inline-analysis.c (add_clause): Avoid shifting integer NUM_CONDITIONS bit positions.
* ipa-inline-analysis.c (add_clause): Avoid shifting integer NUM_CONDITIONS bit positions. From-SVN: r201719
This commit is contained in:
parent
d753b1363d
commit
61c1a609ee
|
@ -1,3 +1,8 @@
|
||||||
|
2013-08-14 Marek Polacek <polacek@redhat.com>
|
||||||
|
|
||||||
|
* ipa-inline-analysis.c (add_clause): Avoid shifting integer
|
||||||
|
NUM_CONDITIONS bit positions.
|
||||||
|
|
||||||
2013-08-13 Cary Coutant <ccoutant@google.com>
|
2013-08-13 Cary Coutant <ccoutant@google.com>
|
||||||
|
|
||||||
* dwarf2out.c (CHECKSUM_BLOCK): New macro.
|
* dwarf2out.c (CHECKSUM_BLOCK): New macro.
|
||||||
|
|
|
@ -337,7 +337,7 @@ add_clause (conditions conditions, struct predicate *p, clause_t clause)
|
||||||
and thus there is no point for looking for them. */
|
and thus there is no point for looking for them. */
|
||||||
if (cc1->code == CHANGED || cc1->code == IS_NOT_CONSTANT)
|
if (cc1->code == CHANGED || cc1->code == IS_NOT_CONSTANT)
|
||||||
continue;
|
continue;
|
||||||
for (c2 = c1 + 1; c2 <= NUM_CONDITIONS; c2++)
|
for (c2 = c1 + 1; c2 < NUM_CONDITIONS; c2++)
|
||||||
if (clause & (1 << c2))
|
if (clause & (1 << c2))
|
||||||
{
|
{
|
||||||
condition *cc1 =
|
condition *cc1 =
|
||||||
|
|
Loading…
Reference in New Issue