This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH] Fix dump scan in test devirt-40.C



On 04/11/14 15:51, Paolo Carlini wrote:
Hi,

On 11/04/2014 04:37 PM, Martin Jambor wrote:
Hi,

since revision 216728, testsuite/g++.dg/ipa/devirt-40.C is failing
because although the tested-for devirtualization does happen, it is
probably being done earlier and the string we are trying to match is
not emitted.  But the important thing is that the tested
devirtualization takes place.

Patch has been pre-approved on IRC by Honza, I have tested it with
make -k check RUNTESTFLAGS="dg.exp=ipa/devirt-40.C" which I hope is
sufficient and I have tested that the pattern matches a call to an
OBJ_TYPE_REF in function body in an earlier dump file.  I will commit
the patch shortly.
Thanks. Just to confirm, devirt-42.C is also failing,

+1, on my local arm/aarch64 test environment.

FAIL: g++.dg/ipa/devirt-42.C  -std=gnu++11  scan-tree-dump-times optimized "return 2" 2
FAIL: g++.dg/ipa/devirt-42.C  -std=gnu++98  scan-tree-dump-times optimized "return 2" 2
FAIL: g++.dg/ipa/devirt-42.C  -std=gnu++1y  scan-ipa-dump-times inline "Discovered a virtual call to a known target" 2
FAIL: g++.dg/ipa/devirt-42.C  -std=gnu++1y  scan-ipa-dump-times inline "First type is base of second" 3
FAIL: g++.dg/ipa/devirt-42.C  -std=gnu++11  scan-ipa-dump-times inline "First type is base of second" 3
FAIL: g++.dg/ipa/devirt-42.C  -std=gnu++98  scan-ipa-dump-times inline "Discovered a virtual call to a known target" 2
FAIL: g++.dg/ipa/devirt-42.C  -std=gnu++11  scan-ipa-dump-times inline "Discovered a virtual call to a known target" 2
FAIL: g++.dg/ipa/devirt-42.C  -std=gnu++98  scan-ipa-dump-times inline "First type is base of second" 3
FAIL: g++.dg/ipa/devirt-42.C  -std=gnu++1y  scan-tree-dump-times optimized "return 2" 2

that is also
known, right?

FAIL: g++.dg/ipa/devirt-42.C -std=gnu++11 scan-tree-dump-times optimized
"return 2" 2 FAIL: g++.dg/ipa/devirt-42.C -std=gnu++1y
scan-tree-dump-times optimized "return 2" 2 FAIL: g++.dg/ipa/devirt-42.C
-std=gnu++98 scan-tree-dump-times optimized "return 2" 2

Thanks again,
Paolo.




Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]