[Bug c++/80297] [6/7 Regression] Compiler time crash: type mismatch in binary expression

2017-04-04 Thread jakub at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80297 --- Comment #10 from Jakub Jelinek --- Author: jakub Date: Tue Apr 4 19:14:47 2017 New Revision: 246693 URL: https://gcc.gnu.org/viewcvs?rev=246693=gcc=rev Log: PR c++/80297 * genmatch.c (capture::gen_transform): For GENERIC

[Bug c++/80297] [6/7 Regression] Compiler time crash: type mismatch in binary expression

2017-04-04 Thread rguenther at suse dot de
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80297 --- Comment #9 from rguenther at suse dot de --- On Tue, 4 Apr 2017, jakub at gcc dot gnu.org wrote: > https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80297 > > --- Comment #8 from Jakub Jelinek --- > Created attachment 41121 > -->

[Bug c++/80297] [6/7 Regression] Compiler time crash: type mismatch in binary expression

2017-04-04 Thread jakub at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80297 --- Comment #8 from Jakub Jelinek --- Created attachment 41121 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=41121=edit gcc7-pr80297.patch Patch I'm going to test.

[Bug c++/80297] [6/7 Regression] Compiler time crash: type mismatch in binary expression

2017-04-04 Thread rguenther at suse dot de
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80297 --- Comment #7 from rguenther at suse dot de --- On Tue, 4 Apr 2017, jakub at gcc dot gnu.org wrote: > https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80297 > > --- Comment #6 from Jakub Jelinek --- > (In reply to Richard Biener from comment #5)

[Bug c++/80297] [6/7 Regression] Compiler time crash: type mismatch in binary expression

2017-04-04 Thread jakub at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80297 --- Comment #6 from Jakub Jelinek --- (In reply to Richard Biener from comment #5) > We can experiment with adding unshare_exprs to genmatch and see in how many > patterns that triggers. But as said, the general issue looks latent to me. >

[Bug c++/80297] [6/7 Regression] Compiler time crash: type mismatch in binary expression

2017-04-04 Thread rguenth at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80297 --- Comment #5 from Richard Biener --- We can experiment with adding unshare_exprs to genmatch and see in how many patterns that triggers. But as said, the general issue looks latent to me. Folding during gimplification is dangerous.

[Bug c++/80297] [6/7 Regression] Compiler time crash: type mismatch in binary expression

2017-04-04 Thread rguenth at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80297 Richard Biener changed: What|Removed |Added CC||rguenth at gcc dot gnu.org --- Comment

[Bug c++/80297] [6/7 Regression] Compiler time crash: type mismatch in binary expression

2017-04-04 Thread jakub at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80297 --- Comment #3 from Jakub Jelinek --- So, it is indeed that /* Fold (A & ~B) - (A & B) into (A ^ B) - B. */ (simplify (minus (bit_and:cs @0 (bit_not @1)) (bit_and:cs @0 @1)) (minus (bit_xor @0 @1) @1)) pattern which uses @1 more than once.

[Bug c++/80297] [6/7 Regression] Compiler time crash: type mismatch in binary expression

2017-04-04 Thread jakub at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80297 --- Comment #2 from Jakub Jelinek --- So far this looks like some tree sharing issue. *expr_p = gimple_boolify (*expr_p); if (!useless_type_conversion_p (org_type,

[Bug c++/80297] [6/7 Regression] Compiler time crash: type mismatch in binary expression

2017-04-03 Thread jakub at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80297 Jakub Jelinek changed: What|Removed |Added Priority|P3 |P2 Status|UNCONFIRMED