[Bug c++/91222] [10 Regression] 507.cactuBSSN_r build fails in warn_types_mismatch at ipa-devirt.c:1006 since r273571

2019-12-02 Thread marxin at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91222 Martin Liška changed: What|Removed |Added Status|NEW |RESOLVED Resolution|---

[Bug c++/91222] [10 Regression] 507.cactuBSSN_r build fails in warn_types_mismatch at ipa-devirt.c:1006 since r273571

2019-11-27 Thread marxin at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91222 --- Comment #30 from Martin Liška --- *** Bug 91273 has been marked as a duplicate of this bug. ***

[Bug c++/91222] [10 Regression] 507.cactuBSSN_r build fails in warn_types_mismatch at ipa-devirt.c:1006 since r273571

2019-11-22 Thread jakub at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91222 Jakub Jelinek changed: What|Removed |Added CC||jakub at gcc dot gnu.org --- Comment

[Bug c++/91222] [10 Regression] 507.cactuBSSN_r build fails in warn_types_mismatch at ipa-devirt.c:1006 since r273571

2019-10-02 Thread hubicka at ucw dot cz
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91222 --- Comment #28 from Jan Hubicka --- > Thanks! That fixes the benchmark build (and the rest of SPEC builds fine with > -flto). It also bootstraps and tests on aarch64-none-linux-gnu fine. Thanks! My testing concluded independently so I went

[Bug c++/91222] [10 Regression] 507.cactuBSSN_r build fails in warn_types_mismatch at ipa-devirt.c:1006 since r273571

2019-10-02 Thread hubicka at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91222 --- Comment #27 from Jan Hubicka --- Author: hubicka Date: Wed Oct 2 12:41:36 2019 New Revision: 276454 URL: https://gcc.gnu.org/viewcvs?rev=276454=gcc=rev Log: PR c++/91222 * ipa-devirt.c (warn_types_mismatch): Fix conditional

[Bug c++/91222] [10 Regression] 507.cactuBSSN_r build fails in warn_types_mismatch at ipa-devirt.c:1006 since r273571

2019-10-02 Thread ktkachov at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91222 --- Comment #26 from ktkachov at gcc dot gnu.org --- (In reply to Jan Hubicka from comment #25) > > --- Comment #24 from ktkachov at gcc dot gnu.org --- > > Thanks. Unfortunately I still see the ICE building 507.cactuBSSN_r on > > aarch64 > >

[Bug c++/91222] [10 Regression] 507.cactuBSSN_r build fails in warn_types_mismatch at ipa-devirt.c:1006 since r273571

2019-10-02 Thread hubicka at ucw dot cz
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91222 --- Comment #25 from Jan Hubicka --- > --- Comment #24 from ktkachov at gcc dot gnu.org --- > Thanks. Unfortunately I still see the ICE building 507.cactuBSSN_r on aarch64 > with -flto in the same place: > 995 gcc_assert (TYPE_NAME (t1) >

[Bug c++/91222] [10 Regression] 507.cactuBSSN_r build fails in warn_types_mismatch at ipa-devirt.c:1006 since r273571

2019-10-02 Thread ktkachov at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91222 --- Comment #24 from ktkachov at gcc dot gnu.org --- Thanks. Unfortunately I still see the ICE building 507.cactuBSSN_r on aarch64 with -flto in the same place: 995 gcc_assert (TYPE_NAME (t1) 996 && TREE_CODE (TYPE_NAME

[Bug c++/91222] [10 Regression] 507.cactuBSSN_r build fails in warn_types_mismatch at ipa-devirt.c:1006 since r273571

2019-10-01 Thread hubicka at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91222 Jan Hubicka changed: What|Removed |Added Status|ASSIGNED|NEW Assignee|hubicka at gcc dot

[Bug c++/91222] [10 Regression] 507.cactuBSSN_r build fails in warn_types_mismatch at ipa-devirt.c:1006 since r273571

2019-10-01 Thread hubicka at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91222 --- Comment #22 from Jan Hubicka --- Hi, I have commited patch that avoids the ICE while producing warning. However I wonder why C++ FE is silent here $ cat 2.ii extern "C" { struct { } admbaserest_; } We probably could warn about two things

[Bug c++/91222] [10 Regression] 507.cactuBSSN_r build fails in warn_types_mismatch at ipa-devirt.c:1006 since r273571

2019-10-01 Thread hubicka at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91222 --- Comment #21 from Jan Hubicka --- Author: hubicka Date: Tue Oct 1 18:21:31 2019 New Revision: 276420 URL: https://gcc.gnu.org/viewcvs?rev=276420=gcc=rev Log: PR lto/91222 * ipa-devirt.c (warn_types_mismatch): Do not ICE when

[Bug c++/91222] [10 Regression] 507.cactuBSSN_r build fails in warn_types_mismatch at ipa-devirt.c:1006 since r273571

2019-10-01 Thread hubicka at ucw dot cz
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91222 --- Comment #20 from Jan Hubicka --- > Still seeing this today building cactuBSSN_r with -flto Sorry for that - I had some unexpected developments after cauldron. I am back from vacation now and will fix it ASAP. Honza

[Bug c++/91222] [10 Regression] 507.cactuBSSN_r build fails in warn_types_mismatch at ipa-devirt.c:1006 since r273571

2019-10-01 Thread ktkachov at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91222 ktkachov at gcc dot gnu.org changed: What|Removed |Added Last reconfirmed|2019-07-22 00:00:00 |2019-10-1

[Bug c++/91222] [10 Regression] 507.cactuBSSN_r build fails in warn_types_mismatch at ipa-devirt.c:1006 since r273571

2019-09-24 Thread marxin at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91222 --- Comment #18 from Martin Liška --- I would like to see this also fixed. But I know Honza has some comments about the patch. Honza?

[Bug c++/91222] [10 Regression] 507.cactuBSSN_r build fails in warn_types_mismatch at ipa-devirt.c:1006 since r273571

2019-09-23 Thread sje at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91222 --- Comment #17 from Steve Ellcey --- I tested Jason's patch on my Aarch64 box and it fixed the ICE. Any chance we could check that patch in so that we could build SPEC 2017 with -flto? I don't know if we want to allow this mismatch or not but

[Bug c++/91222] [10 Regression] 507.cactuBSSN_r build fails in warn_types_mismatch at ipa-devirt.c:1006 since r273571

2019-08-28 Thread marxin at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91222 --- Comment #16 from Martin Liška --- (In reply to Jason Merrill from comment #15) > (In reply to Jason Merrill from comment #13) > > But that still doesn't make the types the same, and the use of the variable > > in 2.ii has undefined behavior

[Bug c++/91222] [10 Regression] 507.cactuBSSN_r build fails in warn_types_mismatch at ipa-devirt.c:1006 since r273571

2019-08-27 Thread jason at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91222 --- Comment #15 from Jason Merrill --- (In reply to Jason Merrill from comment #13) > But that still doesn't make the types the same, and the use of the variable > in 2.ii has undefined behavior because it is accessing the value of the > object

[Bug c++/91222] [10 Regression] 507.cactuBSSN_r build fails in warn_types_mismatch at ipa-devirt.c:1006 since r273571

2019-08-27 Thread jason at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91222 Jason Merrill changed: What|Removed |Added Attachment #46765|0 |1 is obsolete|

[Bug c++/91222] [10 Regression] 507.cactuBSSN_r build fails in warn_types_mismatch at ipa-devirt.c:1006 since r273571

2019-08-27 Thread jason at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91222 --- Comment #13 from Jason Merrill --- Ah, I was reading the passage a bit wrong: where the extern "C" matters is not on the type, but on the variable (ml_bssnrest_). Because it's extern "C", declarations in different translation units

[Bug c++/91222] [10 Regression] 507.cactuBSSN_r build fails in warn_types_mismatch at ipa-devirt.c:1006 since r273571

2019-08-27 Thread hubicka at ucw dot cz
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91222 --- Comment #12 from Jan Hubicka --- > Created attachment 46765 > --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=46765=edit > clear TYPE_NAME in free_lang_data for anonymous types > > Perhaps like this? It seems that this will disable

[Bug c++/91222] [10 Regression] 507.cactuBSSN_r build fails in warn_types_mismatch at ipa-devirt.c:1006 since r273571

2019-08-27 Thread jason at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91222 --- Comment #11 from Jason Merrill --- Created attachment 46765 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=46765=edit clear TYPE_NAME in free_lang_data for anonymous types Perhaps like this?

[Bug c++/91222] [10 Regression] 507.cactuBSSN_r build fails in warn_types_mismatch at ipa-devirt.c:1006 since r273571

2019-08-27 Thread hubicka at ucw dot cz
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91222 --- Comment #10 from Jan Hubicka --- > > > > They aren't in the anonymous namespace, but they are themselves anonymous, > > so they have no linkage. The standard says, > > > > A type without linkage shall not be used as the type of a variable

[Bug c++/91222] [10 Regression] 507.cactuBSSN_r build fails in warn_types_mismatch at ipa-devirt.c:1006 since r273571

2019-08-27 Thread marxin at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91222 --- Comment #9 from Martin Liška --- (In reply to Jason Merrill from comment #8) > (In reply to Jan Hubicka from comment #2) > > 2.ii:62:3: warning: ‘ml_bssnrest_’ violates the C++ One Definition Rule > > [-Wodr] > >62 | } ml_bssnrest_; > >

[Bug c++/91222] [10 Regression] 507.cactuBSSN_r build fails in warn_types_mismatch at ipa-devirt.c:1006 since r273571

2019-08-14 Thread jason at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91222 Jason Merrill changed: What|Removed |Added CC||jason at gcc dot gnu.org --- Comment #8

[Bug c++/91222] [10 Regression] 507.cactuBSSN_r build fails in warn_types_mismatch at ipa-devirt.c:1006 since r273571

2019-07-31 Thread hubicka at ucw dot cz
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91222 --- Comment #7 from Jan Hubicka --- > https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91222 > > --- Comment #5 from Martin Liška --- > (In reply to Jan Hubicka from comment #3) > > Author: hubicka > > Date: Mon Jul 29 08:18:38 2019 > > New

[Bug c++/91222] [10 Regression] 507.cactuBSSN_r build fails in warn_types_mismatch at ipa-devirt.c:1006 since r273571

2019-07-31 Thread marxin at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91222 Martin Liška changed: What|Removed |Added Status|NEW |ASSIGNED Assignee|unassigned

[Bug c++/91222] [10 Regression] 507.cactuBSSN_r build fails in warn_types_mismatch at ipa-devirt.c:1006 since r273571

2019-07-31 Thread marxin at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91222 --- Comment #5 from Martin Liška --- (In reply to Jan Hubicka from comment #3) > Author: hubicka > Date: Mon Jul 29 08:18:38 2019 > New Revision: 273866 > > URL: https://gcc.gnu.org/viewcvs?rev=273866=gcc=rev > Log: > > PR lto/91222 >

[Bug c++/91222] [10 Regression] 507.cactuBSSN_r build fails in warn_types_mismatch at ipa-devirt.c:1006 since r273571

2019-07-29 Thread hubicka at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91222 Jan Hubicka changed: What|Removed |Added Status|ASSIGNED|NEW CC|