[Bug tree-optimization/79161] possibly lost DCE / invariant motion optimization

2023-06-20 Thread skvadrik at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79161 Ulya changed: What|Removed |Added Status|NEW |RESOLVED Resolution|---

[Bug middle-end/88401] -Wshift-overflow only works for const variables

2018-12-07 Thread skvadrik at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88401 --- Comment #5 from Ulya --- (In reply to Jakub Jelinek from comment #4) Right, I see. Bugzilla forced me to add the previous comment when I changed the status. ;)

[Bug middle-end/88401] -Wshift-overflow only works for const variables

2018-12-07 Thread skvadrik at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88401 Ulya changed: What|Removed |Added Status|UNCONFIRMED |RESOLVED Resolution|---

[Bug middle-end/88401] -Wshift-overflow only works for const variables

2018-12-07 Thread skvadrik at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88401 --- Comment #2 from Ulya --- (In reply to Jakub Jelinek from comment #1) > It is a front-end warning, so there is no constant propagation possible. > You can use -fsanitize=shift to detect this stuff at runtime. Ok, understood. Maybe someday it

[Bug middle-end/88401] New: -Wshift-overflow only works for const variables

2018-12-07 Thread skvadrik at gmail dot com
: middle-end Assignee: unassigned at gcc dot gnu.org Reporter: skvadrik at gmail dot com Target Milestone: --- Consider this program (1.cc): #include void foo () { int32_t x = -32768; x << 31; const int32_t y = -32768; y << 31; } GCC detects shift overfl

[Bug tree-optimization/87264] missed optimization of std::find_if (predicate inlining)

2018-09-09 Thread skvadrik at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87264 Ulya changed: What|Removed |Added CC||skvadrik at gmail dot com --- Comment #1 from

[Bug tree-optimization/87264] New: missed optimization of std::find_if (predicate inlining)

2018-09-09 Thread skvadrik at gmail dot com
Priority: P3 Component: tree-optimization Assignee: unassigned at gcc dot gnu.org Reporter: skvadrik at gmail dot com Target Milestone: --- A recent talk on the C++ Russia conference showed GCC performing ~1.5x worse than Clang on a simple test that calls std::find_if on

[Bug middle-end/84184] gcc generates wrong relocations with negative offsets in struct arrays

2018-08-04 Thread skvadrik at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84184 Ulya changed: What|Removed |Added CC||skvadrik at gmail dot com --- Comment #12 from

[Bug lto/86412] lto1: internal compiler error: in lto_symtab_prevailing_virtual_decl, at lto/lto-symtab.c

2018-07-05 Thread skvadrik at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86412 --- Comment #4 from Ulya --- Just in case, here is the output of the latest crashing 'g++ -v': $ g++ -v Using built-in specs. COLLECT_GCC=/home/ulya/devel/gcc-9-20180701-install/bin/g++ COLLECT_LTO_WRAPPER=/home/ulya/devel/gcc-9-20180701-install

[Bug lto/86412] lto1: internal compiler error: in lto_symtab_prevailing_virtual_decl, at lto/lto-symtab.c

2018-07-05 Thread skvadrik at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86412 --- Comment #3 from Ulya --- Also, please delete the original file when you download it -- my co-workers are not happy with it being pasted here. :)

[Bug lto/86412] lto1: internal compiler error: in lto_symtab_prevailing_virtual_decl, at lto/lto-symtab.c

2018-07-05 Thread skvadrik at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86412 --- Comment #2 from Ulya --- Sorry, forgot to paste the last line in the minimal file: template class a; template class b; class c { virtual bool d(); }; template class e : c { public: template e(f); }; void g() { (e>>(g)); }

[Bug lto/86412] lto1: internal compiler error: in lto_symtab_prevailing_virtual_decl, at lto/lto-symtab.c

2018-07-05 Thread skvadrik at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86412 --- Comment #1 from Ulya --- Created attachment 44355 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=44355&action=edit original reproducer

[Bug lto/86412] New: lto1: internal compiler error: in lto_symtab_prevailing_virtual_decl, at lto/lto-symtab.c

2018-07-05 Thread skvadrik at gmail dot com
: UNCONFIRMED Severity: normal Priority: P3 Component: lto Assignee: unassigned at gcc dot gnu.org Reporter: skvadrik at gmail dot com CC: marxin at gcc dot gnu.org Target Milestone: --- Created attachment 44354 --> ht

[Bug c++/86320] very long compilation time for std::array, 1024 * 1024>

2018-06-26 Thread skvadrik at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86320 --- Comment #7 from Ulya --- Thank you, that was really fast!

[Bug c++/86320] very long compilation time for std::array, 1024 * 1024>

2018-06-26 Thread skvadrik at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86320 Ulya changed: What|Removed |Added Summary|very long compilatio n |very long compilation time |

[Bug c++/86320] New: very long compilatio n

2018-06-26 Thread skvadrik at gmail dot com
: unassigned at gcc dot gnu.org Reporter: skvadrik at gmail dot com Target Milestone: ---

[Bug c++/80458] [-Wreturn-type] false negative on missing return statement in a member function

2017-04-19 Thread skvadrik at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80458 --- Comment #4 from Ulya --- That sounds reasonable, however if I comment out 'if (!p) exit(1);', I get warning no matter inline or not: $ cat 1.cc #include // exit extern void *f(); inline void *g() { void *p = f(); //if (!p) exit(1);

[Bug c++/80458] New: [-Wreturn-type] false negative on missing return statement in a member function

2017-04-18 Thread skvadrik at gmail dot com
: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: skvadrik at gmail dot com Target Milestone: --- On the following example (missing return statement in a member function) GCC emits no warning: $ cat 1.cc #include

[Bug middle-end/79161] New: possibly lost DCE optimization

2017-01-20 Thread skvadrik at gmail dot com
Assignee: unassigned at gcc dot gnu.org Reporter: skvadrik at gmail dot com Target Milestone: --- Created attachment 40553 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=40553&action=edit a.c Consider the following example (a.c in attach): static void f(const

[Bug ipa/67783] [4.9/5 Regression] quadratic time consumption in IPA inlining with -O1 and higher

2015-10-05 Thread skvadrik at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67783 --- Comment #6 from Ulya --- (In reply to Richard Biener from comment #5) > Fixed on trunk sofar. Thank you! Compiles much faster now.

[Bug ipa/67783] New: quadratic time consumption in IPA inlining with -O1 and higher

2015-09-30 Thread skvadrik at gmail dot com
Priority: P3 Component: ipa Assignee: unassigned at gcc dot gnu.org Reporter: skvadrik at gmail dot com Target Milestone: --- Created attachment 36423 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=36423&action=edit 1.c, real1.c Consider the following co

[Bug middle-end/65472] -Wunreachable-code failure

2015-03-19 Thread skvadrik at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65472 Ulya changed: What|Removed |Added Resolution|DUPLICATE |FIXED --- Comment #6 from Ulya --- (In reply to

[Bug middle-end/65472] -Wunreachable-code failure

2015-03-19 Thread skvadrik at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65472 Ulya changed: What|Removed |Added Resolution|INVALID |FIXED --- Comment #4 from Ulya --- So GCC's inte

[Bug middle-end/65472] -Wunreachable-code failure

2015-03-19 Thread skvadrik at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65472 --- Comment #2 from Ulya --- $ gcc -W -Wall -Wextra -c 1.c gives the same result: no warning

[Bug middle-end/65472] New: -Wunreachable-code failure

2015-03-19 Thread skvadrik at gmail dot com
Assignee: unassigned at gcc dot gnu.org Reporter: skvadrik at gmail dot com Created attachment 35065 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=35065&action=edit 1.c Given the following code: extern void f (); void g () { for (;;) { f (); c

[Bug tree-optimization/65412] New: missing control flow optimisation

2015-03-12 Thread skvadrik at gmail dot com
-optimization Assignee: unassigned at gcc dot gnu.org Reporter: skvadrik at gmail dot com Created attachment 35023 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=35023&action=edit files 1.c (source), 1.s (gcc assembly), 2.s (clang assembly) Consider the following code: voi

[Bug tree-optimization/64541] FRE pass optimization failure

2015-01-14 Thread skvadrik at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64541 --- Comment #4 from Ulya --- Ah! Now I see the problem, thanks.

[Bug tree-optimization/64541] FRE pass optimization failure

2015-01-14 Thread skvadrik at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64541 --- Comment #2 from Ulya --- > we have to assume that p == q and thus the store to *q invalidates the > previously load *p I see. It seemed to me from GIMPLE dumps that both cases are equally easy to optimize, perhaps I'm missing something.

[Bug tree-optimization/64541] New: .fre1 pass optimization failure

2015-01-08 Thread skvadrik at gmail dot com
Assignee: unassigned at gcc dot gnu.org Reporter: skvadrik at gmail dot com Created attachment 34403 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=34403&action=edit 1.c 2.c 1.c.028t.esra 2.c.028t.esra 1.c.030t.fre1 2.c.030t.fre1 1.s 2.s compile_gcc.sh Files 1.c

[Bug c++/62293] New: Obsure error message

2014-08-28 Thread skvadrik at gmail dot com
: unassigned at gcc dot gnu.org Reporter: skvadrik at gmail dot com Created attachment 33410 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=33410&action=edit obscure_error.h Given the following program (file obscure_error.h): class A { inline void * f (size_t n) {r

[Bug middle-end/60741] New: [-Wmaybe-uninitialized] false negative and confusing warning message

2014-04-02 Thread skvadrik at gmail dot com
Priority: P3 Component: middle-end Assignee: unassigned at gcc dot gnu.org Reporter: skvadrik at gmail dot com Created attachment 32521 --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=32521&action=edit wmaybe_uninitialized_strange_behavior.c Given th

[Bug c/60725] New: [-Wreturn-type] false positive in trivial switch

2014-04-01 Thread skvadrik at gmail dot com
: c Assignee: unassigned at gcc dot gnu.org Reporter: skvadrik at gmail dot com Created attachment 32510 --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=32510&action=edit wreturn_false_positive.c Given this program (see attachment): // wreturn_false_positive.c