[Bug bootstrap/87672] [9 regression] 81512c36 causes ICE in bootstrap stage 3 using "-D_FORTIFY_SOURCE=2" (invalid operand in unary operation, incorrect sharing of tree nodes, verify_gimple failed)

2018-10-22 Thread bernd.edlinger at hotmail dot de
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87672 --- Comment #12 from Bernd Edlinger --- (In reply to jamespharvey20 from comment #11) > I can confirm applying Bernd Edlinger's "2018-10-21 18:16:41 UTC" patch on > current trunk prevents all 3 reported errors, and allows using >

[Bug bootstrap/87672] [9 regression] 81512c36 causes ICE in bootstrap stage 3 using "-D_FORTIFY_SOURCE=2" (invalid operand in unary operation, incorrect sharing of tree nodes, verify_gimple failed)

2018-10-22 Thread jamespharvey20 at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87672 --- Comment #11 from jamespharvey20 at gmail dot com --- I can confirm applying Bernd Edlinger's "2018-10-21 18:16:41 UTC" patch on current trunk prevents all 3 reported errors, and allows using CPPFLAGS="-D_FORTIFY_SOURCE=2" and the additions of

[Bug bootstrap/87672] [9 regression] 81512c36 causes ICE in bootstrap stage 3 using "-D_FORTIFY_SOURCE=2" (invalid operand in unary operation, incorrect sharing of tree nodes, verify_gimple failed)

2018-10-21 Thread bernd.edlinger at hotmail dot de
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87672 --- Comment #10 from Bernd Edlinger --- untested patch: Index: gcc/gimple-fold.c === --- gcc/gimple-fold.c (revision 265240) +++ gcc/gimple-fold.c (working copy) @@ -2715,6

[Bug bootstrap/87672] [9 regression] 81512c36 causes ICE in bootstrap stage 3 using "-D_FORTIFY_SOURCE=2" (invalid operand in unary operation, incorrect sharing of tree nodes, verify_gimple failed)

2018-10-21 Thread bernd.edlinger at hotmail dot de
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87672 --- Comment #9 from Bernd Edlinger --- reduced test case: $ cat pr87672.c char buf[40]; void test (int x) { __builtin_strcpy(buf, "test"); __builtin___strcat_chk(buf, "postfix" + x, sizeof(buf)); } $ gcc -O2 -S -Wall pr87672.c pr87672.c:

[Bug bootstrap/87672] [9 regression] 81512c36 causes ICE in bootstrap stage 3 using "-D_FORTIFY_SOURCE=2" (invalid operand in unary operation, incorrect sharing of tree nodes, verify_gimple failed)

2018-10-21 Thread edlinger at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87672 Bernd Edlinger changed: What|Removed |Added Status|UNCONFIRMED |NEW Last reconfirmed|

[Bug bootstrap/87672] [9 regression] 81512c36 causes ICE in bootstrap stage 3 using "-D_FORTIFY_SOURCE=2" (invalid operand in unary operation, incorrect sharing of tree nodes, verify_gimple failed)

2018-10-21 Thread bernd.edlinger at hotmail dot de
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87672 --- Comment #7 from Bernd Edlinger --- Until dom3, everything is OK... i386.ii.176t.dom3: [local count: 267871744]: __builtin___strcat_chk (, _14, 40); output_asm_insn (, operands_23(D)); goto ; [100.00%] ... but strlen does an

[Bug bootstrap/87672] [9 regression] 81512c36 causes ICE in bootstrap stage 3 using "-D_FORTIFY_SOURCE=2" (invalid operand in unary operation, incorrect sharing of tree nodes, verify_gimple failed)

2018-10-21 Thread jamespharvey20 at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87672 --- Comment #6 from jamespharvey20 at gmail dot com --- P.S. In case it sheds any light, I just found out that after the build failure, if I manually re-run the stage 3 "./prev-gcc/xg++ ... .../i386/i386.c" command without "-D_FORTIFY_SOURCE=2",

[Bug bootstrap/87672] [9 regression] 81512c36 causes ICE in bootstrap stage 3 using "-D_FORTIFY_SOURCE=2" (invalid operand in unary operation, incorrect sharing of tree nodes, verify_gimple failed)

2018-10-20 Thread jamespharvey20 at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87672 --- Comment #5 from jamespharvey20 at gmail dot com --- Created attachment 44872 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=44872=edit [Part 5] i386.ii

[Bug bootstrap/87672] [9 regression] 81512c36 causes ICE in bootstrap stage 3 using "-D_FORTIFY_SOURCE=2" (invalid operand in unary operation, incorrect sharing of tree nodes, verify_gimple failed)

2018-10-20 Thread jamespharvey20 at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87672 --- Comment #4 from jamespharvey20 at gmail dot com --- Created attachment 44871 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=44871=edit [Part 4] i386.ii

[Bug bootstrap/87672] [9 regression] 81512c36 causes ICE in bootstrap stage 3 using "-D_FORTIFY_SOURCE=2" (invalid operand in unary operation, incorrect sharing of tree nodes, verify_gimple failed)

2018-10-20 Thread jamespharvey20 at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87672 --- Comment #3 from jamespharvey20 at gmail dot com --- Created attachment 44870 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=44870=edit [Part 3] i386.ii

[Bug bootstrap/87672] [9 regression] 81512c36 causes ICE in bootstrap stage 3 using "-D_FORTIFY_SOURCE=2" (invalid operand in unary operation, incorrect sharing of tree nodes, verify_gimple failed)

2018-10-20 Thread jamespharvey20 at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87672 --- Comment #2 from jamespharvey20 at gmail dot com --- Created attachment 44869 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=44869=edit [Part 2] i386.ii

[Bug bootstrap/87672] [9 regression] 81512c36 causes ICE in bootstrap stage 3 using "-D_FORTIFY_SOURCE=2" (invalid operand in unary operation, incorrect sharing of tree nodes, verify_gimple failed)

2018-10-20 Thread jamespharvey20 at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87672 --- Comment #1 from jamespharvey20 at gmail dot com --- Created attachment 44868 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=44868=edit [Part 1] i386.ii