[Bug c++/104670] New: ICE when using decltype of a lambda returning a struct inside of a struct

2022-02-23 Thread krzysio.kurek at wp dot pl via Gcc-bugs
: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: krzysio.kurek at wp dot pl Target Milestone: --- Created attachment 52502 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=52502=edit -freport-bug output GCC ICEs w

[Bug libstdc++/94960] New: extern template prevents inlining of standard library objects

2020-05-05 Thread krzysio.kurek at wp dot pl
Priority: P3 Component: libstdc++ Assignee: unassigned at gcc dot gnu.org Reporter: krzysio.kurek at wp dot pl Target Milestone: --- Consider this example void foo() { std::string(1, 0); } (https://godbolt.org/z/AlkBBJ) This function creates a string using

[Bug lto/88516] Internal LTO error when linking against static libSFML

2018-12-29 Thread krzysio.kurek at wp dot pl
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88516 krzysio.kurek at wp dot pl changed: What|Removed |Added Status|WAITING |RESOLVED Resolution

[Bug lto/88516] Internal LTO error when linking against static libSFML

2018-12-15 Thread krzysio.kurek at wp dot pl
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88516 --- Comment #2 from krzysio.kurek at wp dot pl --- Created attachment 45243 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=45243=edit preprocessed file Oh I just noticed that the preprocessed file didn't get attached.

[Bug lto/88516] Internal LTO error when linking against static libSFML

2018-12-15 Thread krzysio.kurek at wp dot pl
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88516 --- Comment #1 from krzysio.kurek at wp dot pl --- I'm afraid this is as minimal as it gets. Should I set up a git repo with all sources needed to reproduce the error?

[Bug lto/88516] New: Internal LTO error when linking against static libSFML

2018-12-15 Thread krzysio.kurek at wp dot pl
Component: lto Assignee: unassigned at gcc dot gnu.org Reporter: krzysio.kurek at wp dot pl CC: marxin at gcc dot gnu.org Target Milestone: --- sysinfo: gcc (SUSE Linux) 8.2.1 20181108 [gcc-8-branch revision 265914] OpenSUSE Tumbleweed 20181213 GCC configuration

[Bug lto/82229] GCC7's LTO underperforms compared to GCC6

2018-05-17 Thread krzysio.kurek at wp dot pl
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82229 --- Comment #28 from krzysio.kurek at wp dot pl --- I mean the relative performance is worse but still Profiled GCC6 is faster than GCC 7 or GCC 8.

[Bug lto/82229] GCC7's LTO underperforms compared to GCC6

2018-04-29 Thread krzysio.kurek at wp dot pl
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82229 krzysio.kurek at wp dot pl changed: What|Removed |Added Attachment #44025|0 |1 is obsolete

[Bug lto/82229] GCC7's LTO underperforms compared to GCC6

2018-04-26 Thread krzysio.kurek at wp dot pl
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82229 krzysio.kurek at wp dot pl changed: What|Removed |Added Attachment #42199|0 |1 is obsolete

[Bug lto/82229] GCC7's LTO underperforms compared to GCC6

2018-04-17 Thread krzysio.kurek at wp dot pl
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82229 --- Comment #22 from krzysio.kurek at wp dot pl --- I'm sorry but profiling doesn't seem to be well documented, what tools should I use to generate a profiling log?

[Bug lto/82229] GCC7's LTO underperforms compared to GCC6

2018-04-15 Thread krzysio.kurek at wp dot pl
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82229 krzysio.kurek at wp dot pl changed: What|Removed |Added Status|RESOLVED|REOPENED Resolution

[Bug lto/82229] GCC7's LTO underperforms compared to GCC6

2018-04-15 Thread krzysio.kurek at wp dot pl
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82229 --- Comment #19 from krzysio.kurek at wp dot pl --- I'm sorry if it's not clear, English isn't my native language. So to reiterate. The normal, unoptimized path is: World::update() simulates world which uses Random::get() to generate a random

[Bug lto/82229] GCC7's LTO underperforms compared to GCC6

2018-04-15 Thread krzysio.kurek at wp dot pl
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82229 --- Comment #18 from krzysio.kurek at wp dot pl --- I'm sorry if it's not clear, English isn't my native language. So to reiterate. The normal, unoptimized path is: World::update() simulates world which uses Random::get() on every person. Random

[Bug lto/82229] GCC7's LTO underperforms compared to GCC6

2018-04-14 Thread krzysio.kurek at wp dot pl
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82229 krzysio.kurek at wp dot pl changed: What|Removed |Added Version|7.1.0 |7.2.0 --- Comment #17 from

[Bug lto/82302] LTO producing bad code

2017-10-01 Thread krzysio.kurek at wp dot pl
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82302 --- Comment #12 from krzysio.kurek at wp dot pl --- UBSAN errors regarding integer overflow is by design, and is a part of libnoise. I can't find any documentation or help on what invalid vptr errors are though.

[Bug libstdc++/82346] [5.5 Regression] String is not detected as a part of std

2017-09-28 Thread krzysio.kurek at wp dot pl
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82346 --- Comment #8 from krzysio.kurek at wp dot pl --- Wouldn't this bug affect all gcc compilers? I have 5, 6 and 7 installed, and only 5 is affected.

[Bug lto/82302] LTO producing bad code

2017-09-27 Thread krzysio.kurek at wp dot pl
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82302 --- Comment #9 from krzysio.kurek at wp dot pl --- I think I located the issue, it works fine on my machine, but using I found an error using glslangValidator. Please try pulling and compiling again.

[Bug libstdc++/82346] [5.5 Regression] String is not detected as a part of std

2017-09-27 Thread krzysio.kurek at wp dot pl
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82346 --- Comment #5 from krzysio.kurek at wp dot pl --- $ g++-5 -std=c++11 main.cpp -o string -v Using built-in specs. COLLECT_GCC=g++-5 COLLECT_LTO_WRAPPER=/usr/lib/gcc/x86_64-linux-gnu/5/lto-wrapper Target: x86_64-linux-gnu Configured with: ../src

[Bug c++/82346] String is not detected as a part of std

2017-09-27 Thread krzysio.kurek at wp dot pl
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82346 krzysio.kurek at wp dot pl changed: What|Removed |Added Status|RESOLVED|UNCONFIRMED

[Bug c++/82346] New: String is not detected as a part of std

2017-09-27 Thread krzysio.kurek at wp dot pl
++ Assignee: unassigned at gcc dot gnu.org Reporter: krzysio.kurek at wp dot pl Target Milestone: --- Most basic code fails to compile. #include #include int main () { std::string perfect = std::to_string(1+2+4+7+14) + " is a perfect number"; std::cout <<

[Bug lto/82302] LTO producing bad code

2017-09-25 Thread krzysio.kurek at wp dot pl
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82302 --- Comment #8 from krzysio.kurek at wp dot pl --- In a sense that there is no error, the program goes into infinite loop.

[Bug lto/82302] LTO producing bad code

2017-09-25 Thread krzysio.kurek at wp dot pl
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82302 --- Comment #7 from krzysio.kurek at wp dot pl --- No, the error you're having is completely different from what I originally reported.

[Bug lto/82302] LTO producing bad code

2017-09-25 Thread krzysio.kurek at wp dot pl
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82302 --- Comment #5 from krzysio.kurek at wp dot pl --- I can't reproduce your error.

[Bug lto/82302] LTO producing bad code

2017-09-25 Thread krzysio.kurek at wp dot pl
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82302 --- Comment #3 from krzysio.kurek at wp dot pl --- This happens only on GCC7 with -flto activated. clang-6, GCC6 and GCC5 with either flag enabled or disabled compile code that runs fine. I don't know why this error is occurring for you Martin.

[Bug lto/82302] New: LTO producing bad code

2017-09-22 Thread krzysio.kurek at wp dot pl
: unassigned at gcc dot gnu.org Reporter: krzysio.kurek at wp dot pl CC: marxin at gcc dot gnu.org Target Milestone: --- I've found a repository with code which upon compilation with -flto under GCC7 creates a softlock. Works fine on GCC6. Here's a fork of the repo: https

[Bug lto/82229] GCC7's LTO underperforms compared to GCC6

2017-09-19 Thread krzysio.kurek at wp dot pl
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82229 --- Comment #11 from krzysio.kurek at wp dot pl --- Done, cmake will now default to Release config with altered compiler flags that include -flto.

[Bug lto/82229] GCC7's LTO underperforms compared to GCC6

2017-09-18 Thread krzysio.kurek at wp dot pl
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82229 --- Comment #8 from krzysio.kurek at wp dot pl --- Okay, I'm terribly sorry for the amount of messages but I'm failing over and over again trying to grasp the issue. The seed is only static for the first request, but changes later on becoming

[Bug lto/82229] GCC7's LTO underperforms compared to GCC6

2017-09-18 Thread krzysio.kurek at wp dot pl
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82229 --- Comment #7 from krzysio.kurek at wp dot pl --- I've created a fork with "devel" branch here: https://github.com/kiroma/Empire/tree/devel I've tweaked some things, so now random seed is set, the simulation will exit after 250

[Bug lto/82229] GCC7's LTO underperforms compared to GCC6

2017-09-18 Thread krzysio.kurek at wp dot pl
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82229 --- Comment #6 from krzysio.kurek at wp dot pl --- Oh, two comments about the callgrind output. Random::get() is being called 14 times less often on GCC6 There is a function created from template in GCC7 that is completely absent on GCC6.

[Bug lto/82229] GCC7's LTO underperforms compared to GCC6

2017-09-18 Thread krzysio.kurek at wp dot pl
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82229 --- Comment #5 from krzysio.kurek at wp dot pl --- Created attachment 42199 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=42199=edit callgrind output I can make the program output to console average fps after 20 iterations with 10 war

[Bug c++/82229] GCC7's LTO underperforms compared to GCC6

2017-09-16 Thread krzysio.kurek at wp dot pl
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82229 --- Comment #2 from krzysio.kurek at wp dot pl --- I'm using CMake to generate a Makefile. The Release build adds -O3 and -DNDEBUG by default to compile options. I modify the config so that it also adds -flto. Should I attach make verbose output?

[Bug c++/82229] New: GCC7's LTO underperforms compared to GCC6

2017-09-16 Thread krzysio.kurek at wp dot pl
++ Assignee: unassigned at gcc dot gnu.org Reporter: krzysio.kurek at wp dot pl Target Milestone: --- A small SFML project on github: https://github.com/Hopson97/Empire Takes huge advantage of -flto flag on GCC6, but after upgrading to GCC7, the difference is negligible. Here