[Bug tree-optimization/88443] [meta-bug] bogus/missing -Wstringop-overflow warnings

2019-01-18 Thread msebor at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88443 Bug 88443 depends on bug 79220, which changed state. Bug 79220 Summary: missing -Wstringop-overflow= on a memcpy overflow with a small power-of-2 size https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79220 What|Removed

[Bug middle-end/88921] inconsistent warning on a power-of-2 memcpy with out-of-bounds offset

2019-01-18 Thread msebor at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88921 Martin Sebor changed: What|Removed |Added Keywords||diagnostic See Also|

[Bug c++/88293] [9 Regression] ICE on C++11 code: in build_target_expr_with_type, at cp/tree.c:793

2019-01-18 Thread msebor at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88293 Martin Sebor changed: What|Removed |Added CC||msebor at gcc dot gnu.org --- Comment #2

[Bug target/88954] __attribute__((noplt)) doesn't work with function pointers

2019-01-21 Thread msebor at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88954 Martin Sebor changed: What|Removed |Added CC||msebor at gcc dot gnu.org --- Comment #1

[Bug c++/87996] [8/9 Regression] "size of array is negative" error when SIZE_MAX/2 < sizeof(array) <= SIZE_MAX

2019-01-21 Thread msebor at gcc dot gnu.org
at gcc dot gnu.org |msebor at gcc dot gnu.org --- Comment #3 from Martin Sebor --- Let me work on this.

[Bug target/88954] __attribute__((noplt)) doesn't work with function pointers

2019-01-21 Thread msebor at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88954 --- Comment #3 from Martin Sebor --- My question is about the change you are proposing. How do you expect g() to be called if the test case from comment #0 is modified for example as follows: void f_plt(void); void f_noplt(void) __attribute

[Bug tree-optimization/88973] [8/9 Regression] New -Wrestrict warning since r268048

2019-01-22 Thread msebor at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88973 Martin Sebor changed: What|Removed |Added Blocks||84774 --- Comment #2 from Martin Sebor -

[Bug tree-optimization/88973] [8/9 Regression] New -Wrestrict warning since r268048

2019-01-22 Thread msebor at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88973 --- Comment #3 from Martin Sebor --- Created attachment 45497 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=45497&action=edit canonicalize_pathname function extracted from the translation unit. Attached is the canonicalize_pathname functi

[Bug tree-optimization/88973] [8/9 Regression] New -Wrestrict warning since r268048

2019-01-22 Thread msebor at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88973 Martin Sebor changed: What|Removed |Added Status|UNCONFIRMED |RESOLVED Resolution|---

[Bug tree-optimization/84774] [meta-bug] bogus/missing -Wrestrict

2019-01-22 Thread msebor at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84774 Bug 84774 depends on bug 88973, which changed state. Bug 88973 Summary: [8/9 Regression] New -Wrestrict warning since r268048 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88973 What|Removed |Added --

[Bug middle-end/88991] New: missing warning on a strcpy and strlen from a zero-length array

2019-01-22 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 the undefined behavior in function f() in the test case below but fails to diagnose the same bug in g() or h(). However

[Bug middle-end/88991] missing warning on a strcpy and strlen from a zero-length array

2019-01-22 Thread msebor at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88991 Martin Sebor changed: What|Removed |Added Keywords||diagnostic See Also|

[Bug middle-end/88992] New: missing -Warray-bounds indexing into a zero-length array

2019-01-22 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: --- Also while adding a test for the fix for bug 88956 I noticed that GCC doesn't diagnose indexing into zero-length arrays. The out-of-b

[Bug middle-end/88991] missing warning on a strcpy and strlen from a zero-length array

2019-01-22 Thread msebor at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88991 Martin Sebor changed: What|Removed |Added Blocks||88443 --- Comment #2 from Martin Sebor -

[Bug c/88993] GCC 9 -Wformat-overflow=2 should reflect real libc limits

2019-01-22 Thread msebor at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88993 Martin Sebor changed: What|Removed |Added Keywords||diagnostic --- Comment #2 from Martin Seb

[Bug ipa/88985] [9 Regression] ICE in estimate_edge_devirt_benefit, at ipa-fnsummary.c:2585

2019-01-22 Thread msebor at gcc dot gnu.org
||2019-01-23 CC||msebor at gcc dot gnu.org Known to work||8.2.0 Ever confirmed|0 |1 Known to fail||9.0 --- Comment #1 from Martin Sebor

[Bug c/88993] GCC 9 -Wformat-overflow=2 should reflect real libc limits

2019-01-23 Thread msebor at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88993 --- Comment #5 from Martin Sebor --- For some background into the source of the limit see the discussion below: https://gcc.gnu.org/ml/gcc-patches/2016-08/msg01772.html The warning is based on the C limit in the discussion and the Glibc bug/lim

[Bug tree-optimization/89043] New: strcat (strcpy (d, a), b) not folded to stpcpy (strcpy (d, a), b)

2019-01-24 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: --- GCC folds a small subset of calls to C strcpy to the POSIX stpcpy when doing so is profitable, such as in function f below

[Bug tree-optimization/89043] strcat (strcpy (d, a), b) not folded to stpcpy (strcpy (d, a), b)

2019-01-24 Thread msebor at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89043 Martin Sebor changed: What|Removed |Added Keywords||missed-optimization See Also|

[Bug c/89035] Request - builtins for unspecified and arbitrary values

2019-01-24 Thread msebor at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89035 Martin Sebor changed: What|Removed |Added CC||msebor at gcc dot gnu.org --- Comment #3

[Bug c++/89038] #pragma GCC diagnostic ignored "-Wunknown-pragmas" does not work

2019-01-24 Thread msebor at gcc dot gnu.org
|UNCONFIRMED |NEW Last reconfirmed||2019-01-24 CC||msebor at gcc dot gnu.org Component|preprocessor|c++ Ever confirmed|0 |1 Known to fail

[Bug c/88993] [9 Regression] GCC 9 -Wformat-overflow=2 should reflect real libc limits

2019-01-24 Thread msebor at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88993 Martin Sebor changed: What|Removed |Added Status|UNCONFIRMED |NEW Last reconfirmed|

[Bug tree-optimization/89043] strcat (strcpy (d, a), b) not folded to stpcpy (strcpy (d, a), b)

2019-01-24 Thread msebor at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89043 --- Comment #3 from Martin Sebor --- The CHANGE HISTORY section for stpcpy says the function was first released in Issue 1 and derived from Issue 1 of the SVID: http://pubs.opengroup.org/onlinepubs/9699919799/functions/stpcpy.html

[Bug middle-end/86308] [7/8/9 Regression] ICE in verify_gimple calling an invalid index() declaration

2019-01-24 Thread msebor at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86308 --- Comment #7 from Martin Sebor --- Author: msebor Date: Thu Jan 24 21:06:01 2019 New Revision: 268251 URL: https://gcc.gnu.org/viewcvs?rev=268251&root=gcc&view=rev Log: PR c/86125 - missing -Wbuiltin-declaration-mismatch on a mismatched return

[Bug c/88886] [9 Regression] ice in get_constant, at c-family/c-format.c:292

2019-01-24 Thread msebor at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=6 --- Comment #4 from Martin Sebor --- Author: msebor Date: Thu Jan 24 21:06:01 2019 New Revision: 268251 URL: https://gcc.gnu.org/viewcvs?rev=268251&root=gcc&view=rev Log: PR c/86125 - missing -Wbuiltin-declaration-mismatch on a mismatched return

[Bug c/86125] missing -Wbuiltin-declaration-mismatch on a mismatched return type

2019-01-24 Thread msebor at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86125 --- Comment #5 from Martin Sebor --- Author: msebor Date: Thu Jan 24 21:06:01 2019 New Revision: 268251 URL: https://gcc.gnu.org/viewcvs?rev=268251&root=gcc&view=rev Log: PR c/86125 - missing -Wbuiltin-declaration-mismatch on a mismatched return

[Bug middle-end/86308] [7/8 Regression] ICE in verify_gimple calling an invalid index() declaration

2019-01-24 Thread msebor at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86308 Martin Sebor changed: What|Removed |Added Summary|[7/8/9 Regression] ICE in |[7/8 Regression] ICE in

[Bug c/88886] [9 Regression] ice in get_constant, at c-family/c-format.c:292

2019-01-24 Thread msebor at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=6 Martin Sebor changed: What|Removed |Added Status|ASSIGNED|RESOLVED Resolution|---

[Bug tree-optimization/89043] strcat (strcpy (d, a), b) not folded to stpcpy (strcpy (d, a), b)

2019-01-24 Thread msebor at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89043 --- Comment #5 from Martin Sebor --- Ah, makes sense. I briefly wondered how stpcpy could have been "updated for alignment with the ISO/IEC 9899:1999 standard." That's the trade-off of a 4k monitor: it fits tons of stuff on the screen but every

[Bug c/86125] missing -Wbuiltin-declaration-mismatch on a mismatched return type

2019-01-24 Thread msebor at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86125 Martin Sebor changed: What|Removed |Added Status|ASSIGNED|RESOLVED Known to work|

[Bug c/88956] [9 Regression] ICE: Floating point exception on a memcpy from an zero-length constant array

2019-01-24 Thread msebor at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88956 Martin Sebor changed: What|Removed |Added Keywords||patch --- Comment #3 from Martin Sebor -

[Bug middle-end/89052] New: excessive data segment size causes a hang

2019-01-24 Thread msebor at gcc dot gnu.org
-end Assignee: unassigned at gcc dot gnu.org Reporter: msebor at gcc dot gnu.org Target Milestone: --- Making a silly mistake and using the wrong macro such as SIZE_MAX instead of MAX_SIZE as the array size when defining a global object seems to cause as to hang presumably while

[Bug middle-end/89052] excessive data segment size causes a hang

2019-01-24 Thread msebor at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89052 --- Comment #1 from Martin Sebor --- Clang seems to use SIZE_MAX / 8 as the maximum object size and gives an error for any object whose size exceeds that. But it doesn't seem to doesn't track total object sizes and crashes in LLVM as it runs out

[Bug c++/89053] New: initializer-string too long for a large char array initialized with empty string

2019-01-24 Thread msebor at gcc dot gnu.org
: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: msebor at gcc dot gnu.org Target Milestone: --- While experimenting with the test case for pr89052 I came across the following error issued by the G++ front-end for the

[Bug c++/89055] New: wrong location with predefined macros

2019-01-24 Thread msebor at gcc dot gnu.org
++ Assignee: unassigned at gcc dot gnu.org Reporter: msebor at gcc dot gnu.org Target Milestone: --- While adding tests for a fix for bug 87996 I noticed that the location in diagnostic messages for excessive array size expressions involving predefined constants like __SIZE_MAX__ (or

[Bug c/18017] -Winit-self should automatically turn on -Wuninitialized

2019-01-28 Thread msebor at gcc dot gnu.org
||msebor at gcc dot gnu.org Known to fail||4.1.3, 4.3.5, 4.4.7, 4.8.5, ||4.9.4, 5.4.0, 6.4.0, 7.3.0, ||8.2.0, 9.0 Severity|minor

[Bug c++/89070] Attribute [[nodiscard]] should be ignored in unevaluated contexts

2019-01-28 Thread msebor at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89070 Martin Sebor changed: What|Removed |Added CC||msebor at gcc dot gnu.org --- Comment #1

[Bug middle-end/78665] Unexpected warning about "assuming signed overflow does not occur when simplifying conditional"

2019-01-28 Thread msebor at gcc dot gnu.org
||msebor at gcc dot gnu.org Known to work||8.2.0, 9.0 Resolution|--- |FIXED Known to fail||6.4.0, 7.3.0 --- Comment #5 from Martin Sebor --- The warning has disappeared sometime in

[Bug c++/52119] [C++11] overflow in signed left shift isn't diagnosed

2019-01-28 Thread msebor at gcc dot gnu.org
||msebor at gcc dot gnu.org Resolution|--- |FIXED --- Comment #15 from Martin Sebor --- Recent versions of G++ diagnose shifting into the sign bit (and reject it in constexpr contexts) so this looks resolved: warning: result of ‘(2 << 31)’ re

[Bug c++/67866] False positive -Wshift-count-overflow on template code that checks for shift count overflow

2019-01-28 Thread msebor at gcc dot gnu.org
||msebor at gcc dot gnu.org Resolution|--- |DUPLICATE Severity|enhancement |normal --- Comment #2 from Martin Sebor --- This was a regression introduced by r208183 and apparently fixed by r241858: 2016-11-04 Paolo Carlini

[Bug c++/67980] left shift count is negative [-Wshift-count-negative] generated for unreachable code

2019-01-28 Thread msebor at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67980 Martin Sebor changed: What|Removed |Added CC||scovich at gmail dot com --- Comment #8 f

[Bug c/80383] wrong caret location and missing detail in warning: initializer element is not a constant expression on a signed overflow

2019-01-28 Thread msebor at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80383 Martin Sebor changed: What|Removed |Added Known to fail||7.3.0, 8.2.0, 9.0 --- Comment #3 from Mar

[Bug c++/84608] Hang in cxx_eval_constant_expression() with -fsanitize=undefined

2019-01-28 Thread msebor at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84608 Martin Sebor changed: What|Removed |Added CC||msebor at gcc dot gnu.org Known to

[Bug c++/44263] [7/8/9 Regression] missing diagnostic on questionable array sizes with -pedantic

2019-01-28 Thread msebor at gcc dot gnu.org
||msebor at gcc dot gnu.org Known to work||4.5.3, 7.1.0 Resolution|--- |FIXED Summary|missing diagnostic on |[7/8/9 Regression] missing |questionable array sizes|diagnostic on

[Bug other/89106] cast-to-union documentation incorrect w.r.t. lvalueness

2019-01-29 Thread msebor at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89106 Martin Sebor changed: What|Removed |Added Status|UNCONFIRMED |NEW Last reconfirmed|

[Bug c++/87996] [8/9 Regression] "size of array is negative" error when SIZE_MAX/2 < sizeof(array) <= SIZE_MAX

2019-01-29 Thread msebor at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87996 Martin Sebor changed: What|Removed |Added Keywords||patch Known to work|

[Bug c/88956] [9 Regression] ICE: Floating point exception on a memcpy from an zero-length constant array

2019-01-29 Thread msebor at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88956 --- Comment #4 from Martin Sebor --- Author: msebor Date: Wed Jan 30 03:04:14 2019 New Revision: 268378 URL: https://gcc.gnu.org/viewcvs?rev=268378&root=gcc&view=rev Log: PR middle-end/88956 - ICE: Floating point exception on a memcpy from a zer

[Bug c/88956] [9 Regression] ICE: Floating point exception on a memcpy from an zero-length constant array

2019-01-29 Thread msebor at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88956 Martin Sebor changed: What|Removed |Added Status|ASSIGNED|RESOLVED Resolution|---

[Bug other/89106] cast-to-union documentation incorrect w.r.t. lvalueness

2019-01-30 Thread msebor at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89106 --- Comment #3 from Martin Sebor --- Is your concern with mentioning it that it describes the implementation? Let's see how that works in the full text: A cast to union type looks similar to other casts, except that the type specified is a un

[Bug c/89122] New: bad fix-it hint for FLT_MAX when is included

2019-01-30 Thread msebor at gcc dot gnu.org
Component: c Assignee: unassigned at gcc dot gnu.org Reporter: msebor at gcc dot gnu.org Target Milestone: --- In a program that refers to a macro like FLT_MAX or FLT_MIN with but not included GCC issues an error (as it should) but suggests replacing the macros with

[Bug other/89106] cast-to-union documentation incorrect w.r.t. lvalueness

2019-01-30 Thread msebor at gcc dot gnu.org
at gcc dot gnu.org |msebor at gcc dot gnu.org --- Comment #5 from Martin Sebor --- Created attachment 45570 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=45570&action=edit Proposed fix. Okay, I'm fine with referring to a temporary instead. I see what you mean about the

[Bug c/60170] No -Wtype-limits warning with -O1

2019-01-30 Thread msebor at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=60170 Martin Sebor changed: What|Removed |Added CC||msebor at gcc dot gnu.org Known to

[Bug c/89126] New: missing -Wtype-limits for int variables

2019-01-30 Thread msebor at gcc dot gnu.org
Assignee: unassigned at gcc dot gnu.org Reporter: msebor at gcc dot gnu.org Target Milestone: --- GCC issues -Wtype-limits warnings for relational expressions that either cannot be true or cannot be false due to the limits of the type of one of their operands. This seems to work

[Bug c/89126] missing -Wtype-limits for int variables

2019-01-30 Thread msebor at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89126 Martin Sebor changed: What|Removed |Added Keywords||diagnostic Known to fail|

[Bug c/89126] missing -Wtype-limits for int variables

2019-01-30 Thread msebor at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89126 --- Comment #2 from Martin Sebor --- In ILP32 it doesn't work for long either.

[Bug c/89127] New: missing -Wtype-limits for trivially false expressions

2019-01-30 Thread msebor at gcc dot gnu.org
Component: c Assignee: unassigned at gcc dot gnu.org Reporter: msebor at gcc dot gnu.org Target Milestone: --- GCC appears to fold certain non-constant relational expressions into constants very early when it determines their value based on the limited range of the non-constant

[Bug c/89127] missing -Wtype-limits for trivially false expressions

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

[Bug c/89129] New: [meta-bug] bogus/missing -Wtype-limits warnings

2019-01-30 Thread msebor at gcc dot gnu.org
Assignee: unassigned at gcc dot gnu.org Reporter: msebor at gcc dot gnu.org Target Milestone: --- This meta bug tracks -Wtype-limits false negatives and false positives.

[Bug c/89129] [meta-bug] bogus/missing -Wtype-limits warnings

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

[Bug target/71617] rs6000.c:8483:32: warning: comparison is always true due to limited range of data type [-Wtype-limits]

2019-01-30 Thread msebor at gcc dot gnu.org
||2019-01-31 CC||msebor at gcc dot gnu.org Ever confirmed|0 |1 --- Comment #2 from Martin Sebor --- Should this be resolved as fixed then?

[Bug c/89131] New: redundant -Wabsolute-value when -Wconversion is used and vice versa

2019-01-30 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: --- The newly introduced -Wabsolute-value warning (also by -Wextra) partly duplicates the functionality of the -Wconversion warning (disabled

[Bug c/89132] New: missing -Wcast-align casting the address of a function to a more aligned pointer type

2019-01-30 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 -Wcast-align warning is documented to Warn whenever a pointer is cast such that the required alignment of the

[Bug c/89132] missing -Wcast-align casting the address of a function to a more aligned pointer type

2019-01-30 Thread msebor at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89132 Martin Sebor changed: What|Removed |Added Keywords||diagnostic Known to fail|

[Bug other/89106] cast-to-union documentation incorrect w.r.t. lvalueness

2019-01-30 Thread msebor at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89106 --- Comment #6 from Martin Sebor --- Author: msebor Date: Thu Jan 31 02:33:58 2019 New Revision: 268411 URL: https://gcc.gnu.org/viewcvs?rev=268411&root=gcc&view=rev Log: PR other/89106 - cast-to-union documentation incorrect w.r.t. lvalueness

[Bug other/89106] cast-to-union documentation incorrect w.r.t. lvalueness

2019-01-30 Thread msebor at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89106 Martin Sebor changed: What|Removed |Added Status|ASSIGNED|RESOLVED Resolution|---

[Bug c/89133] New: bogus -Wcast-align=strict for a member of an aligned struct or union

2019-01-30 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: --- Assigning the address of an overaligned member of a struct or union that is of an otherwise less aligned type to a pointer to a type with

[Bug tree-optimization/89143] New: [9 Regression] comparison of abs(i) against excessive constant less than UXXX_MAX no longer folded

2019-01-31 Thread msebor at gcc dot gnu.org
Severity: normal Priority: P3 Component: tree-optimization Assignee: unassigned at gcc dot gnu.org Reporter: msebor at gcc dot gnu.org Target Milestone: --- While looking into bug 89127 I noticed that while GCC 8 and prior fold the comparison to

[Bug tree-optimization/89143] [9 Regression] comparison of abs(i) against excessive constant less than UXXX_MAX no longer folded

2019-01-31 Thread msebor at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89143 Martin Sebor changed: What|Removed |Added Keywords||missed-optimization Known to work|

[Bug c/89127] missing -Wtype-limits for trivially false expressions

2019-01-31 Thread msebor at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89127 --- Comment #3 from Martin Sebor --- I see what you mean. It might perhaps be useful to mention the bigint rule of thumb in the manual. At the same time, the warning still doesn't work even under this restricted interpretation. For example, in

[Bug tree-optimization/89134] A missing optimization opportunity for a simple branch in loop

2019-01-31 Thread msebor at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89134 Martin Sebor changed: What|Removed |Added CC||msebor at gcc dot gnu.org --- Comment #4

[Bug tree-optimization/89145] GCC does not assume that two different external variables have different addresses

2019-01-31 Thread msebor at gcc dot gnu.org
|UNCONFIRMED |NEW Last reconfirmed||2019-02-01 CC||msebor at gcc dot gnu.org Ever confirmed|0 |1 --- Comment #1 from Martin Sebor --- I can confirm this, though it's a

[Bug tree-optimization/89134] A missing optimization opportunity for a simple branch in loop

2019-01-31 Thread msebor at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89134 Martin Sebor changed: What|Removed |Added Status|UNCONFIRMED |NEW Last reconfirmed|

[Bug tree-optimization/43565] Missed address comparison folding of DECL_COMMONs

2019-01-31 Thread msebor at gcc dot gnu.org
||2019-02-01 CC||msebor at gcc dot gnu.org Ever confirmed|0 |1 Known to fail||4.5.3, 4.8.5, 4.9.4, 5.4.0, ||6.4.0, 7.3.0, 8.2.0, 9.0

[Bug c/89126] missing -Wtype-limits for int variables

2019-01-31 Thread msebor at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89126 --- Comment #3 from Martin Sebor --- The problem is in shorten_compare() in c-common.c which deals with these cases. The comment above the block that handles this has this to say just above the conditional that guards the code. The conditional

[Bug tree-optimization/89134] A missing optimization opportunity for a simple branch in loop

2019-01-31 Thread msebor at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89134 Martin Sebor changed: What|Removed |Added Status|NEW |UNCONFIRMED Ever confirmed|1

[Bug c++/89160] -Wattributes too eager on C++11 attributes

2019-02-02 Thread msebor at gcc dot gnu.org
||msebor at gcc dot gnu.org Resolution|--- |DUPLICATE --- Comment #1 from Martin Sebor --- I think this can be considered a duplicate of bug 86368, even though that bug talks specifically about C++ 17 and this one about all C++ attributes. *** This

[Bug c++/86368] an unknown [[attribute]] should not trigger a warning in C++17

2019-02-02 Thread msebor at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86368 Martin Sebor changed: What|Removed |Added CC||glisse at gcc dot gnu.org --- Comment #6

[Bug c/89161] Bogus -Wformat-overflow warning with value range known

2019-02-02 Thread msebor at gcc dot gnu.org
|UNCONFIRMED |NEW Last reconfirmed||2019-02-02 CC||msebor at gcc dot gnu.org Blocks||85741 Ever confirmed|0 |1 Known to fail

[Bug c/14030] missing parameter count check ?

2019-02-03 Thread msebor at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=14030 Martin Sebor changed: What|Removed |Added Known to fail|7.0 |7.3.0, 8.2.0, 9.0 --- Comment #6 from Mar

[Bug c++/16093] Bad error messages for missing declarations.

2019-02-03 Thread msebor at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=16093 Martin Sebor changed: What|Removed |Added CC||msebor at gcc dot gnu.org Known to

[Bug c/16804] Function pointer assignment/initialization (missing warning)

2019-02-03 Thread msebor at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=16804 Martin Sebor changed: What|Removed |Added CC||msebor at gcc dot gnu.org --- Comment #6

[Bug c++/44648] missing -Wunused warning on a const variable in if statement

2019-02-03 Thread msebor at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=44648 Martin Sebor changed: What|Removed |Added Known to work||8.2.0 --- Comment #6 from Martin Sebor -

[Bug c++/44648] missing -Wunused warning on a const variable in if statement

2019-02-03 Thread msebor at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=44648 --- Comment #7 from Martin Sebor --- Author: msebor Date: Sun Feb 3 21:48:27 2019 New Revision: 268503 URL: https://gcc.gnu.org/viewcvs?rev=268503&root=gcc&view=rev Log: PR c++/44648 - missing -Wunused warning on a const variable in if statemen

[Bug c++/44648] missing -Wunused warning on a const variable in if statement

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

[Bug c++/46224] Enhancement: Issue warning when matching placement delete operator is missing

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

[Bug c++/60212] missing warning for unused variable

2019-02-03 Thread msebor at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=60212 Martin Sebor changed: What|Removed |Added CC||msebor at gcc dot gnu.org Known to

[Bug c/89180] New: [meta-bug] bogus/missing -Wunused warnings

2019-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: --- This bug tracks -Wunused false negatives and positives.

[Bug middle-end/63518] missing Wuninitialized warning independent of order of arguments

2019-02-03 Thread msebor at gcc dot gnu.org
||2019-02-03 CC||msebor at gcc dot gnu.org Version|unknown |4.7.4 Ever confirmed|0 |1 --- Comment #3 from Martin Sebor --- Confirmed. Both Clang and with -O also GCC 4.7 and later

[Bug c/63886] float will fit into int with abs - possible missing warning Wabsolute-value

2019-02-03 Thread msebor at gcc dot gnu.org
||msebor at gcc dot gnu.org Known to work||9.0 Resolution|--- |FIXED Target Milestone|--- |9.0 Known to fail||5.4.0, 6.3.0, 7.3.0, 8.2.0 --- Comment #13

[Bug c++/66439] Diagnostic on failed function template lookup is missing a line

2019-02-03 Thread msebor at gcc dot gnu.org
||2019-02-03 CC||msebor at gcc dot gnu.org Ever confirmed|0 |1 Known to fail||5.4.0, 6.3.0, 7.3.0, 8.2.0, ||9.0 --- Comment #2 from

[Bug c/67759] [4.9 only] Missing warning "makes pointer from integer without a cast" after multiline assert

2019-02-03 Thread msebor at gcc dot gnu.org
||msebor at gcc dot gnu.org Resolution|--- |FIXED --- Comment #3 from Martin Sebor --- I see the warning with all supported GCC releases so resolving as fixed: pr67759.c: In function ‘should_warn’: pr67759.c:18:6: warning: passing argument 1 of ‘get

[Bug c/69661] missing -Wsequence-point warning

2019-02-03 Thread msebor at gcc dot gnu.org
||msebor at gcc dot gnu.org Known to work||7.3.0, 8.2.0, 9.0 Resolution|--- |FIXED Known to fail||6.4.0 --- Comment #2 from Martin Sebor --- The warning has been issued since GCC

[Bug c/69661] missing -Wsequence-point warning

2019-02-03 Thread msebor at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69661 --- Comment #3 from Martin Sebor --- Author: msebor Date: Sun Feb 3 22:47:41 2019 New Revision: 268504 URL: https://gcc.gnu.org/viewcvs?rev=268504&root=gcc&view=rev Log: PR c/69661 - missing -Wsequence-point warning gcc/testsuite.ChangeLog:

[Bug middle-end/70125] attributes diagnostics missing essential context

2019-02-03 Thread msebor at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70125 Martin Sebor changed: What|Removed |Added Component|c++ |middle-end Known to fail|

[Bug c++/70181] missing -Wtautological-compare for constant expressions

2019-02-03 Thread msebor at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70181 Martin Sebor changed: What|Removed |Added Known to fail|6.0 |6.3.0, 7.3.0, 8.2.0, 9.0 --- Comment #3 f

[Bug c++/70180] missing -Wpointer-arith on NULL arithmetic cast to a an object type

2019-02-03 Thread msebor at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70180 Martin Sebor changed: What|Removed |Added Known to fail||4.1.3, 4.3.5, 4.4.7, 4.8.5,

[Bug c++/70180] missing -Wpointer-arith on NULL arithmetic cast to a an object type

2019-02-03 Thread msebor at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70180 --- Comment #4 from Martin Sebor --- With -Wextra, Clang warns on one of the cases: 70180.cc:3:22: warning: performing pointer arithmetic on a null pointer has undefined behavior if the offset is nonzero [-Wnull-pointer-arithmetic] void *p = (i

[Bug c++/74765] missing uninitialized warning (parenthesis, TREE_NO_WARNING abuse)

2019-02-03 Thread msebor at gcc dot gnu.org
||2019-02-03 CC||msebor at gcc dot gnu.org Ever confirmed|0 |1 Known to fail||7.3.0, 8.2.0, 9.0 --- Comment #5 from Martin Sebor --- No change in GCC 9 so confirmed: $ cat

[Bug c/78989] Missing -Waddress warning due to -Wno-system-headers

2019-02-03 Thread msebor at gcc dot gnu.org
||2019-02-03 CC||msebor at gcc dot gnu.org Summary|Missing -Waddress warning |Missing -Waddress warning ||due to -Wno-system-headers Ever confirmed|0 |1

[Bug c++/21678] Using inline disables warnings about missing return statements

2019-02-03 Thread msebor at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=21678 Martin Sebor changed: What|Removed |Added CC||skvadrik at gmail dot com --- Comment #6

<    8   9   10   11   12   13   14   15   16   17   >