On Mon, Jun 19, 2017 at 09:16:58AM +0200, Richard Biener wrote:
>
> The following fixes an ommision in find_constructor_constant_at_offset
> to handle RANGE_EXPR in array constructor indices. The handling is
> conservative in that it only handles the first index in the range.
>
> Bootstrapped and tested on x86_64-unknown-linux-gnu, applied to trunk
> sofar.
>
> Richard.
>
> 2017-06-19 Richard Biener <[email protected]>
>
> PR ipa/81112
> * ipa-prop.c (find_constructor_constant_at_offset): Handle
> RANGE_EXPR conservatively.
>
> * g++.dg/torture/pr81112.C: New testcase.
The testcase fails on i686-linux, fixed thusly, tested on
{x86_64,i686}-linux, committed to trunk.
2017-06-19 Jakub Jelinek <[email protected]>
PR ipa/81112
* g++.dg/torture/pr81112.C: Add -Wno-psabi to dg-additional-options.
--- gcc/testsuite/g++.dg/torture/pr81112.C.jj 2017-06-19 16:15:41.000000000
+0200
+++ gcc/testsuite/g++.dg/torture/pr81112.C 2017-06-19 16:32:37.812078027
+0200
@@ -1,4 +1,5 @@
// { dg-do compile }
+// { dg-additional-options "-Wno-psabi" }
class AssertionResult {
bool success_;
Jakub