[Bug c++/93046] New: [10 Regression] ICE in cp_gimplify_init_expr

2019-12-22 Thread asolokha at gmx dot com
9 | return id (1) ?: id (2); | ^ 0xf529d0 crash_signal /var/tmp/portage/sys-devel/gcc-10.0.0_alpha20191222/work/gcc-10-20191222/gcc/toplev.c:328 0x8939d8 cp_gimplify_init_expr /var/tmp/portage/sys-devel/gcc-10.0.0_alpha20191222/work/gcc-10-20191222/gcc

[Bug c++/91777] No warning for iterator going out of scope

2019-12-22 Thread egallager at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91777 --- Comment #8 from Eric Gallager --- (In reply to Jonathan Wakely from comment #7) > It's also diagnosed by libstdc++ Debug Mode: > > /home/jwakely/gcc/10/include/c++/10.0.0/debug/safe_iterator.h:294: > In function: >

[Bug c++/91770] warn on #includes inside extern C regions

2019-12-22 Thread egallager at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91770 --- Comment #2 from Eric Gallager --- I wonder how hard it would be to get the interaction with -Wsystem-headers right here, given how many other issues with -Wsystem-headers there are...

[Bug tree-optimization/92644] [9 Regression] ICE in wide_int_to_tree_1, at tree.c:1530

2019-12-22 Thread asolokha at gmx dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92644 --- Comment #9 from Arseny Solokha --- I believe, it can be closed now, as the gcc 8 branch is not affected?

[Bug tree-optimization/83336] [meta-bug] Issues with displaying inlining chain for middle-end warnings

2019-12-22 Thread egallager at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83336 Eric Gallager changed: What|Removed |Added Keywords||meta-bug CC|

[Bug middle-end/53917] Wuninitialized warning points to place where variable doesn't occur

2019-12-22 Thread egallager at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=53917 Eric Gallager changed: What|Removed |Added Last reconfirmed|2017-09-24 00:00:00 |2019-12-23 --- Comment #7 from Eric

[Bug rtl-optimization/18395] [meta-bug] combine needs to be templatized like a peepholer

2019-12-22 Thread egallager at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=18395 --- Comment #4 from Eric Gallager --- Does the new combine2 pass proposed for GCC 10 address any of these issues?

[Bug rtl-optimization/26190] combine misses some distributivity

2019-12-22 Thread egallager at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=26190 --- Comment #8 from Eric Gallager --- Does the new combine2 pass proposed for GCC 10 fix any of this?

[Bug ipa/92794] [10 Regression] ICE in decide_about_value, at ipa-cp.c:5186

2019-12-22 Thread asolokha at gmx dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92794 Arseny Solokha changed: What|Removed |Added Status|NEW |RESOLVED Resolution|---

[Bug c/93045] New: gc bug with test "start_unit-test-1.c"

2019-12-22 Thread rjiejie at me dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93045 Bug ID: 93045 Summary: gc bug with test "start_unit-test-1.c" Product: gcc Version: 8.1.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c

[Bug c/47781] warnings from custom printf format specifiers

2019-12-22 Thread cjwelborn at live dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=47781 --- Comment #22 from Cj Welborn --- Thank you for the reply. It's probably out of my league, but I might take a look when I get time.

[Bug c/47781] warnings from custom printf format specifiers

2019-12-22 Thread egallager at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=47781 --- Comment #21 from Eric Gallager --- (In reply to Cj Welborn from comment #20) > Has anything changed since 2017 that would let me use > register_printf_specifier and -Wformat warnings at the same time? Not that I know of; people still can't

[Bug testsuite/90806] Warray-bounds-2.c fail on cross-aarch64 on RH6 host

2019-12-22 Thread egallager at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90806 Eric Gallager changed: What|Removed |Added Blocks||84774 --- Comment #7 from Eric Gallager

[Bug tree-optimization/90906] diagnose returning pointers to freed memory

2019-12-22 Thread egallager at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90906 --- Comment #2 from Eric Gallager --- (In reply to Martin Sebor from comment #0) > GCC doesn't diagnose returning a freed pointer as in the function below: > > void* f (void *p) > { > __builtin_free (p); > // ... > return p; >

[Bug c/88737] RFE: Track ownership moves

2019-12-22 Thread egallager at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88737 --- Comment #8 from Eric Gallager --- (In reply to Neal H. Walfield from comment #0) > I would like an attribute to indicate that ownership of an argument is moved > to the function. That is, any subsequent accesses to the variable should be >

[Bug c/82179] Optionally compile free calls in such a way that the passed pointer is clobbered after the call

2019-12-22 Thread egallager at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82179 --- Comment #6 from Eric Gallager --- (In reply to Eric Gallager from comment #5) > (In reply to Federico Bento from comment #1) > > > > https://sourceware.org/ml/libc-alpha/2017-09/msg00238.html > >

[Bug middle-end/88518] Function call defeats -Wuninitialized

2019-12-22 Thread egallager at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88518 --- Comment #5 from Eric Gallager --- (In reply to Matthew Wilcox from comment #2) > Thanks! What I actually want to do is annotate g() to the effect that it > reads the pointed-to variable before it writes it. IOW, I want to write > something

[Bug c/52981] Separate -Wpadded into two options

2019-12-22 Thread egallager at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=52981 Eric Gallager changed: What|Removed |Added Keywords||diagnostic

[Bug fortran/91960] ICE: backend decl for module variable 'j' already exists

2019-12-22 Thread anlauf at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91960 anlauf at gcc dot gnu.org changed: What|Removed |Added Status|UNCONFIRMED |NEW Last reconfirmed|

[Bug fortran/92873] ICE in unmodified_parm_or_parm_agg_item, at ipa-fnsummary.c:1166

2019-12-22 Thread anlauf at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92873 anlauf at gcc dot gnu.org changed: What|Removed |Added CC||anlauf at gcc dot gnu.org

[Bug c/52981] Separate -Wpadded into two options

2019-12-22 Thread david at doublewise dot net
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=52981 --- Comment #9 from David Stone --- It might further be worth giving the "you can rearrange to save sapce" option two warning levels. The highest level would warn for all cases where rearranging can reduce size, and the lowest level would warn

[Bug libstdc++/93034] variant not constexpr in c++17 mode

2019-12-22 Thread rene.r...@fu-berlin.de
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93034 --- Comment #2 from rene.r...@fu-berlin.de --- ok, thanks for the heads up. best regards

[Bug fortran/92976] [8/9/10 Regression][OOP] ICE in trans_associate_var, at fortran/trans-stmt.c:1963

2019-12-22 Thread tkoenig at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92976 Thomas Koenig changed: What|Removed |Added CC||tkoenig at gcc dot gnu.org Target

[Bug tree-optimization/93044] extra cast is not removed

2019-12-22 Thread glisse at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93044 --- Comment #2 from Marc Glisse --- In match.pd && ((inter_unsignedp && inter_prec > inside_prec) == (final_unsignedp && final_prec > inter_prec)) looks suspicious.

[Bug tree-optimization/93044] extra cast is not removed

2019-12-22 Thread pinskia at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93044 --- Comment #1 from Andrew Pinski --- Note this is the original testcase where I saw the issue (even without the bit-field lowering pass; that I am working on): #define N 100 #define M struct S { int a : 3; int b : 17; int c : 12; }; struct

[Bug tree-optimization/93044] New: extra cast is not removed

2019-12-22 Thread pinskia at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93044 Bug ID: 93044 Summary: extra cast is not removed Product: gcc Version: 10.0 Status: UNCONFIRMED Keywords: missed-optimization Severity: normal Priority: P3

[Bug c++/93043] New: fails to compile comparison between pointer and convertible to nullptr_t

2019-12-22 Thread gccbugbjorn at fahller dot se
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93043 Bug ID: 93043 Summary: fails to compile comparison between pointer and convertible to nullptr_t Product: gcc Version: 9.2.1 Status: UNCONFIRMED Severity:

[Bug analyzer/93032] analyzer fails to detect FILE * leak in zlib/contrib/minizip/mztools.c

2019-12-22 Thread dcb314 at hotmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93032 David Binderman changed: What|Removed |Added CC||dcb314 at hotmail dot com --- Comment

[Bug tree-optimization/93042] New: bit-field optimizations get in the way of interchange

2019-12-22 Thread pinskia at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93042 Bug ID: 93042 Summary: bit-field optimizations get in the way of interchange Product: gcc Version: 10.0 Status: UNCONFIRMED Keywords: missed-optimization Severity: