[Bug tree-optimization/92323] bogus -Warray-bounds after unrolling despite __builtin_unreachable

2020-01-30 Thread msebor at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92323 Martin Sebor changed: What|Removed |Added Status|NEW |RESOLVED Known to work|

[Bug tree-optimization/56456] [meta-bug] bogus/missing -Warray-bounds

2020-01-30 Thread msebor at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=56456 Bug 56456 depends on bug 92323, which changed state. Bug 92323 Summary: bogus -Warray-bounds after unrolling despite __builtin_unreachable https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92323 What|Removed |Added

[Bug tree-optimization/84050] [8/9/10 Regression] missing -Warray-bounds accessing a struct array member

2020-01-30 Thread msebor at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84050 Martin Sebor changed: What|Removed |Added Last reconfirmed|2018-01-26 00:00:00 |2020-1-30 Known to fail|

[Bug middle-end/93514] New: missing warning on a strlen with a negative or just past-the-end offset

2020-01-30 Thread msebor at gcc dot gnu.org
Priority: P3 Component: middle-end Assignee: unassigned at gcc dot gnu.org Reporter: msebor at gcc dot gnu.org Target Milestone: --- Of the three calls with invalid arguments in the test case below only the last one is diagnosed. The negative offset isn&#

[Bug middle-end/93514] missing warning on a strlen with a negative or just past-the-end offset

2020-01-30 Thread msebor at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93514 Martin Sebor changed: What|Removed |Added Keywords||diagnostic Blocks|

[Bug middle-end/93514] missing warning on a strlen with a negative or just past-the-end offset

2020-01-30 Thread msebor at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93514 --- Comment #3 from Martin Sebor --- There is no tail padding at ax2.a + 3, it's just past the end of the the four-byte object because ax2.a is at offset 1. -Warray-bounds takes tail padding into consideration by calling component_ref_size(). T

[Bug middle-end/93517] New: bogus -Wrestrict on sprintf with unknown strings bounded by array size

2020-01-30 Thread msebor at gcc dot gnu.org
Priority: P3 Component: middle-end Assignee: unassigned at gcc dot gnu.org Reporter: msebor at gcc dot gnu.org Target Milestone: --- The warning below is incorrect because (assuming a is a nul-terminated string) the length of s1 must be at most 1 and the

[Bug middle-end/93518] New: missing warning on a possible overflow by sprintf %s with an allocated argument

2020-01-30 Thread msebor at gcc dot gnu.org
: normal Priority: P3 Component: middle-end Assignee: unassigned at gcc dot gnu.org Reporter: msebor at gcc dot gnu.org Target Milestone: --- In the test case below only the sprintf call in first function is diagnosed for the potential overflow, not the

[Bug middle-end/93519] New: bogus -Wrestrict for strcpy(d, s) call guarded by d != s

2020-01-30 Thread msebor at gcc dot gnu.org
Priority: P3 Component: middle-end Assignee: unassigned at gcc dot gnu.org Reporter: msebor at gcc dot gnu.org Target Milestone: --- This was reported in RHBZ #1796688 (and previously for memcpy in bug 83456). The warning is obviously incorrect here: #include static

[Bug middle-end/93519] bogus -Wrestrict for strcpy(d, s) call guarded by d != s

2020-01-30 Thread msebor at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93519 Martin Sebor changed: What|Removed |Added Keywords||diagnostic Status|UNCONFIRMED

[Bug middle-end/93531] New: missing -Wrestrict calling strcat with strcpy as argument

2020-01-31 Thread msebor at gcc dot gnu.org
Priority: P3 Component: middle-end Assignee: unassigned at gcc dot gnu.org Reporter: msebor at gcc dot gnu.org Target Milestone: --- In the following test case only the overlapping calls are diagnosed that pass the source argument as the destination are diagnosed; none of

[Bug middle-end/93519] [8/9/10 Regression] bogus -Wrestrict for strcpy(d, s) call guarded by d != s

2020-01-31 Thread msebor at gcc dot gnu.org
at gcc dot gnu.org |msebor at gcc dot gnu.org

[Bug tree-optimization/93538] New: equality of address of first member to address to enclosing object not folded

2020-02-01 Thread msebor at gcc dot gnu.org
: normal Priority: P3 Component: tree-optimization Assignee: unassigned at gcc dot gnu.org Reporter: msebor at gcc dot gnu.org Target Milestone: --- The inequality below is trivially false but since GCC 4.6 the middle-end fails to fold it into a constant (it is

[Bug tree-optimization/93538] equality of address of first member to address to enclosing object not folded

2020-02-01 Thread msebor at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93538 --- Comment #1 from Martin Sebor --- (I noticed this while testing my fix for bug 93519.) Here's a (strictly undefined) test case involving memcpy where the lack of folding it prevents the call from being eliminated (it is ultimately eliminated

[Bug tree-optimization/93538] equality of address of first member to address to enclosing object not folded

2020-02-01 Thread msebor at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93538 --- Comment #2 from Martin Sebor --- A better (well-defined) test case involves memmove: $ cat a.c && gcc -O2 -S -Wall -fdump-tree-optimized=/dev/stdout -o/dev/stdout a.c struct A { char a[3]; }; void f (struct A *a) { void *p = a; void *q

[Bug tree-optimization/93539] New: memmove over self with result of string function not eliminated

2020-02-01 Thread msebor at gcc dot gnu.org
Priority: P3 Component: tree-optimization Assignee: unassigned at gcc dot gnu.org Reporter: msebor at gcc dot gnu.org Target Milestone: --- While experimenting with the test case from pr3538 I noticed that GCC doesn't take full advantage of the fact that func

[Bug tree-optimization/93556] New: lower mempcpy to memcpy when result is unused

2020-02-03 Thread msebor at gcc dot gnu.org
: tree-optimization Assignee: unassigned at gcc dot gnu.org Reporter: msebor at gcc dot gnu.org Target Milestone: --- GCC lowers calls to strpcpy whose result isn't used to strcpy, presumably because the latter tends to be more efficient. With pr90263 resolved, GCC also ex

[Bug tree-optimization/93558] New: missing mempcpy folding defeats strlen optimization

2020-02-03 Thread msebor at gcc dot gnu.org
Component: tree-optimization Assignee: unassigned at gcc dot gnu.org Reporter: msebor at gcc dot gnu.org Target Milestone: --- The two functions below create the same string but f1() is micro-optimized to avoid copying the terminating nul in "1234" before immediately appen

[Bug middle-end/93519] [8/9/10 Regression] bogus -Wrestrict for strcpy(d, s) call guarded by d != s

2020-02-03 Thread msebor at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93519 Martin Sebor changed: What|Removed |Added Keywords||patch --- Comment #2 from Martin Sebor -

[Bug tree-optimization/93560] New: strstr(s, s) not folded to s

2020-02-03 Thread msebor at gcc dot gnu.org
Assignee: unassigned at gcc dot gnu.org Reporter: msebor at gcc dot gnu.org Target Milestone: --- GCC should fold strstr(a, b) to a when a and b point to the same string, the same way Clang does. $ cat a.c && gcc -O2 -S -Wall -fdump-tree-optimized=/dev/stdout a.c void

[Bug middle-end/93582] [10 Regression] -Warray-bounds gives error: array subscript 0 is outside array bounds of struct E[1]

2020-02-04 Thread msebor at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93582 --- Comment #2 from Martin Sebor --- Below is a simplified C test case. The warning is justified and works correctly, but the index and the type it prints might be a little confusing. The index corresponds to the MEM_REF offset which is set to

[Bug middle-end/93576] [10 Regression] internal compiler error: Segmentation fault (in gimplify.c)

2020-02-04 Thread msebor at gcc dot gnu.org
|UNCONFIRMED |NEW Last reconfirmed||2020-02-04 CC||msebor at gcc dot gnu.org Component|c |middle-end Summary|internal compiler error:|[10 Regression] internal

[Bug middle-end/93582] [10 Regression] -Warray-bounds gives error: array subscript 0 is outside array bounds of struct E[1]

2020-02-04 Thread msebor at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93582 Martin Sebor changed: What|Removed |Added Status|UNCONFIRMED |RESOLVED Resolution|---

[Bug middle-end/93576] [10 Regression] internal compiler error: Segmentation fault (in gimplify.c)

2020-02-04 Thread msebor at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93576 --- Comment #5 from Martin Sebor --- The full compiler output is useful. Some of us use it to quickly see what part of the compiler is affected. It also helps make sure we're reproducing the same problem.

[Bug middle-end/93582] [10 Regression] -Warray-bounds gives error: array subscript 0 is outside array bounds of struct E[1]

2020-02-04 Thread msebor at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93582 --- Comment #8 from Martin Sebor --- We would need to see the original code (the translation unit) to tell for sure why the warning is only issued on some targets and not on others, but the most likely answer is that the code results in different

[Bug middle-end/93582] [10 Regression] -Warray-bounds gives error: array subscript 0 is outside array bounds of struct E[1]

2020-02-04 Thread msebor at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93582 --- Comment #11 from Martin Sebor --- -mtune=z13 seems to enable more inlining so many of the past-the-end references to the tempGrab local variable end up inlined into the bodies of the functions that define them. For example: PassivGrab.c: In

[Bug middle-end/84275] missing warning on conflicting alloc_size attributes on different declarations

2020-02-04 Thread msebor at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84275 Martin Sebor changed: What|Removed |Added Status|UNCONFIRMED |NEW Last reconfirmed|

[Bug middle-end/93582] [10 Regression] -Warray-bounds gives error: array subscript 0 is outside array bounds of struct E[1]

2020-02-05 Thread msebor at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93582 Martin Sebor changed: What|Removed |Added Keywords||missed-optimization --- Comment #13 from

[Bug tree-optimization/92765] [10 Regression] wrong code for strcmp of a union member

2020-02-05 Thread msebor at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92765 Martin Sebor changed: What|Removed |Added Status|ASSIGNED|RESOLVED Resolution|---

[Bug tree-optimization/93616] Missed chance to use alias checks to vectorise invariant indirection

2020-02-06 Thread msebor at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93616 Martin Sebor changed: What|Removed |Added CC||msebor at gcc dot gnu.org --- Comment #1

[Bug c/89288] ICE with __builtin_has_attribute in tree_code_size

2020-02-07 Thread msebor at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89288 Martin Sebor changed: What|Removed |Added Status|NEW |RESOLVED Resolution|---

[Bug middle-end/93627] New: inconsistencies between sprintf and strcpy overflow warnings

2020-02-07 Thread msebor at gcc dot gnu.org
Priority: P3 Component: middle-end Assignee: unassigned at gcc dot gnu.org Reporter: msebor at gcc dot gnu.org Target Milestone: --- -Wformat-overflow diagnoses sprintf calls that might overflow the destination based solely on the size of the array where the string

[Bug middle-end/93644] [10 Regression] -Wreturn-local-addr July regression: new false-positive warning

2020-02-09 Thread msebor at gcc dot gnu.org
|UNCONFIRMED |NEW Last reconfirmed||2020-02-09 CC||msebor at gcc dot gnu.org Component|other |middle-end Summary|-Wreturn-local-addr July|[10 Regression

[Bug other/90556] [meta-bug] bogus/missing -Wreturn-local-addr

2020-02-09 Thread msebor at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90556 Bug 90556 depends on bug 81811, which changed state. Bug 81811 Summary: missing -Wreturn-local-addr returning strcpy result https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81811 What|Removed |Added

[Bug middle-end/81811] missing -Wreturn-local-addr returning strcpy result

2020-02-09 Thread msebor at gcc dot gnu.org
-optimization |middle-end Resolution|--- |FIXED Assignee|unassigned at gcc dot gnu.org |msebor at gcc dot gnu.org Target Milestone|--- |10.0 --- Comment #5 from Martin Sebor --- Fixed for GCC 10 (most likely by r273261

[Bug c/93640] The write_only and read_write attributes can be mistyped due to invalid strncmp size argument

2020-02-09 Thread msebor at gcc dot gnu.org
|UNCONFIRMED |NEW Last reconfirmed||2020-02-09 CC||msebor at gcc dot gnu.org Assignee|unassigned at gcc dot gnu.org |msebor at gcc dot gnu.org Ever confirmed|0 |1

[Bug c/93640] The write_only and read_write attributes can be mistyped due to invalid strncmp size argument

2020-02-09 Thread msebor at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93640 Martin Sebor changed: What|Removed |Added Status|NEW |ASSIGNED

[Bug c/93636] Incorrect diagnostic of a potential string overflow in strncat

2020-02-09 Thread msebor at gcc dot gnu.org
|UNCONFIRMED |RESOLVED CC||msebor at gcc dot gnu.org Resolution|--- |INVALID --- Comment #1 from Martin Sebor --- The warning is intentional. The expected use of the strncat function is to limit the output to the

[Bug middle-end/93644] [10 Regression] -Wreturn-local-addr July regression: new false-positive warning

2020-02-09 Thread msebor at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93644 Martin Sebor changed: What|Removed |Added See Also||https://gcc.gnu.org/bugzill

[Bug middle-end/93644] [10 Regression] -Wreturn-local-addr July regression: new false-positive warning

2020-02-09 Thread msebor at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93644 --- Comment #4 from Martin Sebor --- pr90735 suggests using the location of the closing curly brace of the function instead. Another alternative might be to use the location associated with the note.

[Bug middle-end/93646] New: confusing -Wstringop-truncation on strncat where -Wstringop-overflow is expected

2020-02-09 Thread msebor at gcc dot gnu.org
: normal Priority: P3 Component: middle-end Assignee: unassigned at gcc dot gnu.org Reporter: msebor at gcc dot gnu.org Target Milestone: --- The -Wstringop-overflow warning in the code below is expected because a call to strncat with a bound equal to the

[Bug middle-end/93646] confusing -Wstringop-truncation on strncat where -Wstringop-overflow is expected

2020-02-09 Thread msebor at gcc dot gnu.org
Assignee|unassigned at gcc dot gnu.org |msebor at gcc dot gnu.org Ever confirmed|0 |1 Referenced Bugs: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88781 [Bug 88781] [meta-bug] bogus/missing -Wstringop-truncation warnings

[Bug c/93653] New: diagnose calls to strncmp with bound less than constant string length

2020-02-10 Thread msebor at gcc dot gnu.org
Priority: P3 Component: c Assignee: unassigned at gcc dot gnu.org Reporter: msebor at gcc dot gnu.org Target Milestone: --- -Wstring-compare diagnoses equality expressions involving calls to strcmp and strncmp that evaluate to constant s based on the size of

[Bug c/93640] The write_only and read_write attributes can be mistyped due to invalid strncmp size argument

2020-02-10 Thread msebor at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93640 Martin Sebor changed: What|Removed |Added Status|ASSIGNED|RESOLVED Resolution|---

[Bug c/93653] diagnose calls to strncmp with bound less than constant string length

2020-02-10 Thread msebor at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93653 Martin Sebor changed: What|Removed |Added Keywords||diagnostic Severity|normal

[Bug middle-end/93655] New: diagnose calls to strncmp with bound greater than constant string length

2020-02-10 Thread msebor at gcc dot gnu.org
: enhancement Priority: P3 Component: middle-end Assignee: unassigned at gcc dot gnu.org Reporter: msebor at gcc dot gnu.org Target Milestone: --- In addition to pr93653, the -Wstring-compare warning (new in GCC 10) could also diagnose strncmp calls where the bound

[Bug middle-end/93646] confusing -Wstringop-truncation on strncat where -Wstringop-overflow is expected

2020-02-10 Thread msebor at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93646 Martin Sebor changed: What|Removed |Added Keywords||patch --- Comment #1 from Martin Sebor -

[Bug tree-optimization/82456] missing -Wstringop-overflow on strcpy reading past the end of an array

2020-02-10 Thread msebor at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82456 Martin Sebor changed: What|Removed |Added Last reconfirmed|2019-01-14 00:00:00 |2020-2-10 Known to fail|9.0

[Bug middle-end/93665] New: missing warning on strncmp reading past unterminated array

2020-02-10 Thread msebor at gcc dot gnu.org
Priority: P3 Component: middle-end Assignee: unassigned at gcc dot gnu.org Reporter: msebor at gcc dot gnu.org Target Milestone: --- GCC 10 diagnoses the call to strcmp below because it attempts to read past the end of the unterminated array a3 but not the call to

[Bug tree-optimization/93661] [10 Regression] ICE in tree_to_poly_int64, at tree.c:2976

2020-02-10 Thread msebor at gcc dot gnu.org
||2020-02-10 CC||msebor at gcc dot gnu.org Ever confirmed|0 |1 --- Comment #2 from Martin Sebor --- Bisection points to r273194: 2019-07-08 Richard Biener PR tree-optimization/83518 * tree

[Bug target/93663] [10 Regression] ICE in is_halfway_below, at real.c:5192

2020-02-10 Thread msebor at gcc dot gnu.org
||i386-*-* Status|UNCONFIRMED |NEW Last reconfirmed||2020-02-10 CC||msebor at gcc dot gnu.org Component|c |target Ever confirmed|0

[Bug c++/93666] Dependence of optimization on use of constexpr seems inappropriate

2020-02-10 Thread msebor at gcc dot gnu.org
||2020-02-10 CC||msebor at gcc dot gnu.org Ever confirmed|0 |1 --- Comment #1 from Martin Sebor --- Please include all details relevant to your report, including a description of the problem you see and the

[Bug middle-end/93663] [10 Regression] ICE in is_halfway_below, at real.c:5192

2020-02-10 Thread msebor at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93663 Martin Sebor changed: What|Removed |Added Component|target |middle-end --- Comment #2 from Martin Seb

[Bug tree-optimization/93683] [10 Regression] ICE in ao_ref_init_from_ptr_and_size, at tree-ssa-alias.c:714

2020-02-11 Thread msebor at gcc dot gnu.org
|UNCONFIRMED |NEW Last reconfirmed||2020-02-11 CC||msebor at gcc dot gnu.org Component|c |tree-optimization Target Milestone|--- |10.0 Ever

[Bug tree-optimization/93683] [10 Regression] ICE in ao_ref_init_from_ptr_and_size, at tree-ssa-alias.c:714

2020-02-11 Thread msebor at gcc dot gnu.org
at gcc dot gnu.org |msebor at gcc dot gnu.org --- Comment #2 from Martin Sebor --- It looks like the new code simply assumes the LHS is non-zero when it need not be.

[Bug c++/90938] [9/10 Regression] Initializing array with {1} works, but not {0}

2020-02-11 Thread msebor at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90938 Martin Sebor changed: What|Removed |Added Keywords||patch --- Comment #12 from Martin Sebor

[Bug tree-optimization/93683] [10 Regression] ICE in ao_ref_init_from_ptr_and_size, at tree-ssa-alias.c:714

2020-02-11 Thread msebor at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93683 Martin Sebor changed: What|Removed |Added Keywords||patch --- Comment #3 from Martin Sebor -

[Bug tree-optimization/93683] [10 Regression] ICE in ao_ref_init_from_ptr_and_size, at tree-ssa-alias.c:714

2020-02-11 Thread msebor at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93683 Martin Sebor changed: What|Removed |Added Status|ASSIGNED|RESOLVED Resolution|---

[Bug testsuite/93697] pr93661.c does not warn on (32-bit) powerpc-linux

2020-02-12 Thread msebor at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93697 Martin Sebor changed: What|Removed |Added CC||msebor at gcc dot gnu.org --- Comment #4

[Bug middle-end/93708] New: missing warning on memset overflow with transposed arguments

2020-02-12 Thread msebor at gcc dot gnu.org
Priority: P3 Component: middle-end Assignee: unassigned at gcc dot gnu.org Reporter: msebor at gcc dot gnu.org Target Milestone: --- GCC diagnoses some suspicious memset calls whose last two arguments look like they may have been transposed by -Wmemset-transposed-args

[Bug c++/93710] New: poor location in diagnostics of messages about array initializers

2020-02-12 Thread msebor at gcc dot gnu.org
Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: msebor at gcc dot gnu.org Target Milestone: --- With one exception, the warnings for the invalid array initializers are not associated with their location: they all point to the closing

[Bug c++/80329] Poor location for array bounds warning

2020-02-12 Thread msebor at gcc dot gnu.org
||2020-2-12 CC||msebor at gcc dot gnu.org Resolution|--- |DUPLICATE Known to fail||10.0, 7.3.0, 8.3.0, 9.2.0 --- Comment #1 from Martin Sebor --- Confirmed. These -Warray

[Bug tree-optimization/86650] -Warray-bounds missing inlining context

2020-02-12 Thread msebor at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86650 Martin Sebor changed: What|Removed |Added CC||redi at gcc dot gnu.org --- Comment #6 fr

[Bug c++/93607] Deprecated alias templates don't produce warnings

2020-02-12 Thread msebor at gcc dot gnu.org
||2020-02-12 CC||msebor at gcc dot gnu.org See Also||https://gcc.gnu.org/bugzill ||a/show_bug.cgi?id=84542

[Bug middle-end/88781] [meta-bug] bogus/missing -Wstringop-truncation warnings

2020-02-12 Thread msebor at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88781 Bug 88781 depends on bug 93646, which changed state. Bug 93646 Summary: confusing -Wstringop-truncation on strncat where -Wstringop-overflow is expected https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93646 What|Removed

[Bug middle-end/93646] confusing -Wstringop-truncation on strncat where -Wstringop-overflow is expected

2020-02-12 Thread msebor at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93646 Martin Sebor changed: What|Removed |Added Status|ASSIGNED|RESOLVED Resolution|---

[Bug target/93721] New: swapping adjacent scalars could be more efficient

2020-02-12 Thread msebor at gcc dot gnu.org
: target Assignee: unassigned at gcc dot gnu.org Reporter: msebor at gcc dot gnu.org Target Milestone: --- For an implementation of a swap function like this: template void swap (std::pair &x) { T t = x.first; x.first = x.second; x.second = t; } GCC

[Bug tree-optimization/93737] New: inline memmove for insertion into small arrays

2020-02-13 Thread msebor at gcc dot gnu.org
: tree-optimization Assignee: unassigned at gcc dot gnu.org Reporter: msebor at gcc dot gnu.org Target Milestone: --- GCC emits what's likely more efficient code for the insertion of elements into the middle of small arrays by copying parts of the array into a temporary b

[Bug tree-optimization/93737] inline memmove for insertion into small arrays

2020-02-13 Thread msebor at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93737 Martin Sebor changed: What|Removed |Added Keywords||missed-optimization See Also|

[Bug c/93573] [8/9/10 Regression] internal compiler error: in force_constant_size, at gimplify.c:733

2020-02-13 Thread msebor at gcc dot gnu.org
||2020-02-13 CC||msebor at gcc dot gnu.org Known to work||7.3.0 Summary|internal compiler error: in |[8/9/10 Regression] |force_constant_size, at |internal compiler error: in

[Bug c/93572] [8/9/10 Regression] internal compiler error: q from h referenced in main

2020-02-13 Thread msebor at gcc dot gnu.org
||2020-02-13 CC||msebor at gcc dot gnu.org Known to work||4.4.3 Summary|internal compiler error: q |[8/9/10 Regression] |from h referenced in main |internal compiler error: q

[Bug target/93737] inline memmove for insertion into small arrays

2020-02-13 Thread msebor at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93737 --- Comment #3 from Martin Sebor --- I was thinking for small N, the middle-end could make it work by emitting copies of the sequences using MEM_REFs, along these lines: char _2[N - 2]; _2 = MEM [(char * {ref-all})&a + 1]; MEM [(char * {

[Bug ipa/92799] [8/9/10 Regression] ICE on a weakref function definition followed by a declaration

2020-02-14 Thread msebor at gcc dot gnu.org
|NEW |ASSIGNED CC||msebor at gcc dot gnu.org Known to work||4.4.3 Assignee|unassigned at gcc dot gnu.org |msebor at gcc dot gnu.org Summary|ICE: in get, at

[Bug ipa/92799] [8/9/10 Regression] ICE on a weakref function definition followed by a declaration

2020-02-14 Thread msebor at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92799 Martin Sebor changed: What|Removed |Added Keywords||patch --- Comment #5 from Martin Sebor -

[Bug tree-optimization/93745] Redundant store not eliminated with intermediate instruction

2020-02-14 Thread msebor at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93745 Martin Sebor changed: What|Removed |Added CC||msebor at gcc dot gnu.org --- Comment #3

[Bug tree-optimization/93745] [8/9/10 Regression] Redundant store not eliminated with intermediate instruction

2020-02-16 Thread msebor at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93745 Martin Sebor changed: What|Removed |Added Summary|Redundant store not |[8/9/10 Regression] |el

[Bug ipa/93763] [10 Regression] ice in propagate_vals_across_arith_jfunc, at ipa-cp.c:2039

2020-02-16 Thread msebor at gcc dot gnu.org
||2020-02-16 CC||fxue at os dot amperecomputing.com ||, msebor at gcc dot gnu.org Ever confirmed|0 |1 --- Comment #2 from Martin Sebor --- Bisection points to r10

[Bug c++/93752] internal compiler error: in pop_local_binding, at cp/name-lookup.c:2036

2020-02-16 Thread msebor at gcc dot gnu.org
||2020-02-16 CC||msebor at gcc dot gnu.org Ever confirmed|0 |1 Known to fail||10.0, 4.1.3, 4.3.5, 4.4.7, ||4.8.5, 4.9.4, 5.4.0, 6.4.0

[Bug c++/58646] ICE on a multidimensional VLA with an empty initializer list

2020-02-17 Thread msebor at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=58646 Martin Sebor changed: What|Removed |Added CC||akhilesh.k at samsung dot com --- Comment

[Bug rtl-optimization/93730] [8/9/10 Regression] ICE in make_decl_rtl, at varasm.c:1375

2020-02-17 Thread msebor at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93730 Martin Sebor changed: What|Removed |Added Keywords||ice-on-invalid-code Status|NE

[Bug c++/58646] [8/9/10 Regression] ICE on a multidimensional VLA with an empty initializer list

2020-02-17 Thread msebor at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=58646 Martin Sebor changed: What|Removed |Added Keywords|ice-on-valid-code |ice-on-invalid-code Known to work|

[Bug c++/93753] [8/9/10 Regression] ICE on a flexible array followed by a member in an anonymous struct with an initializer

2020-02-17 Thread msebor at gcc dot gnu.org
at gcc dot gnu.org |msebor at gcc dot gnu.org Summary|[8/9/10 Regression] ICe in |[8/9/10 Regression] ICE on |output_constructor_regular_ |a flexible array followed |field, at varasm.c:5255 |by a member in an anonymous

[Bug c++/93753] [8/9/10 Regression] ICE on a flexible array followed by a member in an anonymous struct with an initializer

2020-02-17 Thread msebor at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93753 Martin Sebor changed: What|Removed |Added Keywords||patch Known to fail|

[Bug c/93631] [8/9/10 Regression] ICE on an invalid strcmp call in gimple_ca ll_arg, at gimple.h:3258

2020-02-17 Thread msebor at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93631 Martin Sebor changed: What|Removed |Added CC||msebor at gcc dot gnu.org

[Bug tree-optimization/93745] [8/9/10 Regression] Redundant store not eliminated with intermediate instruction

2020-02-17 Thread msebor at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93745 --- Comment #7 from Martin Sebor --- That's why I asked "What language relies on this?" But regardless of what language might have even looser rules than C/C++ in this area, it would seem like a rather unfortunate design limitation for GCC not t

[Bug c++/93804] New: exempt extern "C" headers from -Wredundant-tags

2020-02-18 Thread msebor at gcc dot gnu.org
iority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: msebor at gcc dot gnu.org Target Milestone: --- As noted in https://gcc.gnu.org/ml/gcc-patches/2020-02/msg01016.html, -Wredundant-tags is not useful for declarations in shared C/C++ headers that cannot be

[Bug c++/93801] False -Wmismatched-tags upon redundant typename

2020-02-18 Thread msebor at gcc dot gnu.org
at gcc dot gnu.org |msebor at gcc dot gnu.org

[Bug c++/93809] New: bogus error class tag used in naming union on typedef typename ::U U2

2020-02-18 Thread msebor at gcc dot gnu.org
Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: msebor at gcc dot gnu.org Target Milestone: --- While testing a fix for pr93801 I noticed that G++ rejects the last type definition in the test case below. The code looks valid to

[Bug c++/93809] bogus error class tag used in naming union on typedef typename ::U U2

2020-02-18 Thread msebor at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93809 Martin Sebor changed: What|Removed |Added Keywords||rejects-valid Known to fail|

[Bug c++/93810] New: missing -Wmismatched-tags on a typedef of an implicit class template specialization

2020-02-18 Thread msebor at gcc dot gnu.org
Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: msebor at gcc dot gnu.org Target Milestone: --- The typedef below should be diagnosed by -Wmismatched-tags but isn't. Both Clang and Visual C++ diagnose it as exp

[Bug c++/93810] missing -Wmismatched-tags and -Wredundant-tags on a typedef of an implicit class template specialization

2020-02-18 Thread msebor at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93810 Martin Sebor changed: What|Removed |Added Summary|missing -Wmismatched-tags |missing -Wmismatched-tags

[Bug c++/93816] New: invalid typedef name with class key accepted

2020-02-18 Thread msebor at gcc dot gnu.org
++ Assignee: unassigned at gcc dot gnu.org Reporter: msebor at gcc dot gnu.org Target Milestone: --- The second typedef in the test case below is invalid for the same reason as the first but only the first one is diagnosed and rejected. The second one is silently accepted and

[Bug c++/93804] exempt extern "C" headers from -Wredundant-tags

2020-02-18 Thread msebor at gcc dot gnu.org
|ASSIGNED Last reconfirmed||2020-02-19 Assignee|unassigned at gcc dot gnu.org |msebor at gcc dot gnu.org Ever confirmed|0 |1 --- Comment #1 from Martin Sebor --- Patch: https://gcc.gnu.org/ml/gcc-patches

[Bug rtl-optimization/93730] [8/9/10 Regression] ICE in make_decl_rtl, at varasm.c:1375

2020-02-19 Thread msebor at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93730 --- Comment #7 from Martin Sebor --- I think VLA initialization should be rejected in C++ just as it is in C. The mangling wasn't specified the last time I checked so unless there has been some informal consensus on how to do it changing it for

[Bug middle-end/93829] New: [10 Regression] bogus -Wstringop-overflow on memcpy of a struct with a pointer member from another with a long string

2020-02-19 Thread msebor at gcc dot gnu.org
: 10.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: middle-end Assignee: unassigned at gcc dot gnu.org Reporter: msebor at gcc dot gnu.org Target Milestone: --- The following test case reduced from RHBZ #1800289 shows a

[Bug middle-end/93829] [10 Regression] bogus -Wstringop-overflow on memcpy of a struct with a pointer member from another with a long string

2020-02-19 Thread msebor at gcc dot gnu.org
Assignee|unassigned at gcc dot gnu.org |msebor at gcc dot gnu.org Ever confirmed|0 |1 Known to fail||10.0

[Bug tree-optimization/63989] tree-ssa-strlen.c doesn't handle constant pointer plus and array refs if constant offset is smaller than known constant string length

2020-02-19 Thread msebor at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63989 Martin Sebor changed: What|Removed |Added Last reconfirmed|2014-11-20 00:00:00 |2020-2-19 Known to fail|

[Bug tree-optimization/77889] missing optimization on strlen(p + offset) with a bounded offset

2020-02-19 Thread msebor at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=77889 Martin Sebor changed: What|Removed |Added Last reconfirmed|2016-10-07 00:00:00 |2020-2-19 Component|middle-end

[Bug middle-end/93829] [10 Regression] bogus -Wstringop-overflow on memcpy of a struct with a pointer member from another with a long string

2020-02-19 Thread msebor at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93829 Martin Sebor changed: What|Removed |Added Keywords||patch Target Milestone|---

[Bug c++/68531] changing bound variable of a VLA type changes type size

2020-02-20 Thread msebor at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68531 Martin Sebor changed: What|Removed |Added Last reconfirmed|2016-07-11 00:00:00 |2020-2-20 Summary|incorrect co

<    5   6   7   8   9   10   11   12   13   14   >