[Bug debug/93951] ICE with '-flto -g -femit-struct-debug-baseonly'

2020-02-28 Thread guillaume at morinfr dot org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93951 --- Comment #2 from Guillaume Morin --- fwiw the reproducer can be reduced further to: #include struct S1 { bool fct() const; }; struct V { bool visit() const { auto visitor = [](auto&& s) -> bool { return s.fct(); };

[Bug debug/93951] New: ICE with '-flto -femit-struct-debug-baseonly'

2020-02-26 Thread guillaume at morinfr dot org
Component: debug Assignee: unassigned at gcc dot gnu.org Reporter: guillaume at morinfr dot org Target Milestone: --- Created attachment 47917 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=47917&action=edit reproducer This program ICEs with '-g -flto -femit

[Bug tree-optimization/91914] [9 Regression] Invalid strlen optimization

2019-10-05 Thread guillaume at morinfr dot org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91914 --- Comment #5 from Guillaume Morin --- Just FYI, we've hit the same wrong-code bug compiling our codebase. And I can confirm that the patch in comment #2 does fix the problem for us as well.

[Bug c++/91563] [9 regression] wrong code

2019-08-27 Thread guillaume at morinfr dot org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91563 --- Comment #5 from Guillaume Morin --- Jakub mentioned that r273135 fixed the abort() in the trunk. I noticed that this revision had already been backported to the gcc-9 branch as r274532. So I built the gcc-9 branch and I can confirm that it do

[Bug c++/91563] [9 regression] wrong code

2019-08-27 Thread guillaume at morinfr dot org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91563 --- Comment #3 from Guillaume Morin --- Jonathan, Are you sure? I modified the code to print std::is_trivially_copyable::value and it does print "1". Am I missing something obvious?

[Bug c++/91563] New: [9 regression] wrong code

2019-08-27 Thread guillaume at morinfr dot org
: unassigned at gcc dot gnu.org Reporter: guillaume at morinfr dot org Target Milestone: --- Created attachment 46766 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=46766&action=edit test program Hi, The attached program aborts with gcc 9.x -O{1,2,3} (including recent ver

[Bug c++/86108] New: crash during unwinding with -O2

2018-06-11 Thread guillaume at morinfr dot org
++ Assignee: unassigned at gcc dot gnu.org Reporter: guillaume at morinfr dot org Target Milestone: --- Created attachment 44259 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=44259&action=edit reproducer I have a program that crashes very reliably after an exception is throw

[Bug c++/82242] New: x86_64 bad optimization with -march

2017-09-18 Thread guillaume at morinfr dot org
++ Assignee: unassigned at gcc dot gnu.org Reporter: guillaume at morinfr dot org Target Milestone: --- Created attachment 42200 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=42200&action=edit "slow" testcase I have attached a test case (slow_add.cpp) that

[Bug c++/82242] x86_64 bad optimization with -march

2017-09-18 Thread guillaume at morinfr dot org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82242 --- Comment #1 from Guillaume Morin --- Created attachment 42201 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=42201&action=edit "fast" testcase

[Bug middle-end/47466] c++ __builtin_expect() regression

2011-01-26 Thread guillaume at morinfr dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47466 --- Comment #1 from Guillaume Morin 2011-01-26 18:26:34 UTC --- A recent 4.6 snapshot shows the same issue .file"foo.cpp" .text .p2align 4,,15 .globltest_expect(EnumStruct const&) .typetest_expect(EnumStruct const

[Bug middle-end/47466] New: c++ __builtin_expect() regression

2011-01-25 Thread guillaume at morinfr dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47466 Summary: c++ __builtin_expect() regression Product: gcc Version: 4.5.2 Status: UNCONFIRMED Severity: normal Priority: P3 Component: middle-end AssignedTo: unassig...@