[Bug analyzer/110112] [11/12/13 Regression] gcc -fanalyzer takes an excessive amount of time

2023-06-08 Thread dmalcolm at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110112 David Malcolm changed: What|Removed |Added Last reconfirmed||2023-06-08 Status|UNCONFIRM

[Bug analyzer/110112] [11/12/13 Regression] gcc -fanalyzer takes an excessive amount of time

2023-06-09 Thread dmalcolm at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110112 --- Comment #5 from David Malcolm --- Should be fixed on trunk for gcc 14 by the above patch. Keeping this open to track backporting it.

[Bug analyzer/109577] -Wanalyzer-allocation-size mishandles __builtin_mul_overflow

2023-06-12 Thread dmalcolm at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109577 --- Comment #4 from David Malcolm --- Thanks for fixing this Tim. Keeping open to track backporting this to the gcc 13 branch.

[Bug analyzer/110014] -Wanalyzer-allocation-size mishandles realloc (..., .... * sizeof (object))

2023-06-12 Thread dmalcolm at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110014 --- Comment #2 from David Malcolm --- Thanks for fixing this Tim. Keeping open to track backporting this to the gcc 13 branch.

[Bug c/84890] Overly verbose notes for missing headers

2023-06-13 Thread dmalcolm at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84890 David Malcolm changed: What|Removed |Added Resolution|--- |FIXED Status|ASSIGNED

[Bug c++/90342] Misleading #include system fixit when using an older C++ version

2023-06-13 Thread dmalcolm at gcc dot gnu.org via Gcc-bugs
||dmalcolm at gcc dot gnu.org Status|NEW |RESOLVED --- Comment #3 from David Malcolm --- This was fixed in r8-7704-ge1c7971b81abab.

[Bug c++/110164] Improve diagnostic for incomplete standard library types due to missing include

2023-06-13 Thread dmalcolm at gcc dot gnu.org via Gcc-bugs
||dmalcolm at gcc dot gnu.org --- Comment #2 from David Malcolm --- Thanks for filing this. I'm testing a patch for it.

[Bug c/107583] Missing fixit for struct members (e.g. time_t, missing include)

2023-06-15 Thread dmalcolm at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107583 David Malcolm changed: What|Removed |Added CC||dmalcolm at gcc dot gnu.org

[Bug c/107583] Missing fixit for struct members (e.g. time_t, missing include)

2023-06-15 Thread dmalcolm at gcc dot gnu.org via Gcc-bugs
at gcc dot gnu.org |dmalcolm at gcc dot gnu.org --- Comment #3 from David Malcolm --- Am working on a fix

[Bug c/107583] Missing fixit for struct members (e.g. time_t, missing include)

2023-06-15 Thread dmalcolm at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107583 David Malcolm changed: What|Removed |Added Resolution|--- |FIXED Status|ASSIGNED

[Bug analyzer/110285] -Wanalyzer-infinite-recursion false positive involving floating-point values

2023-06-16 Thread dmalcolm at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110285 David Malcolm changed: What|Removed |Added Summary|-Wanalyzer-infinite-recursi |-Wanalyzer-infinite-recursi

[Bug analyzer/110172] Leak false positives from -fanalyzer with -fexceptions (even on C code)

2023-06-20 Thread dmalcolm at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110172 --- Comment #1 from David Malcolm --- Quoting: https://gcc.gnu.org/onlinedocs/gcc/Code-Gen-Options.html#index-fexceptions """ -fexceptions Enable exception handling. Generates extra code needed to propagate exceptions. For some targets, th

[Bug c++/110164] Improve diagnostic for incomplete standard library types due to missing include

2023-06-21 Thread dmalcolm at gcc dot gnu.org via Gcc-bugs
|dmalcolm at gcc dot gnu.org --- Comment #3 from David Malcolm --- Patch posted here awaiting review: https://gcc.gnu.org/pipermail/gcc-patches/2023-June/621779.html

[Bug c++/110164] Improve diagnostic for incomplete standard library types due to missing include

2023-06-23 Thread dmalcolm at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110164 David Malcolm changed: What|Removed |Added Resolution|--- |FIXED Status|ASSIGNED

[Bug analyzer/110433] ASAN reports mismatching new/delete when compiling analyzer testcases

2023-06-27 Thread dmalcolm at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110433 --- Comment #1 from David Malcolm --- I haven't reproduced this yet, but I notice that I forgot to give class spatial_item a virtual dtor, which looking at the backtrace may be the root cause.

[Bug analyzer/110426] Missing buffer overflow warning with function pointer that has the alloc_size attribute

2023-06-28 Thread dmalcolm at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110426 David Malcolm changed: What|Removed |Added Ever confirmed|0 |1 Status|UNCONFIRMED

[Bug jit/110466] jit.dg FAILs on ppc64le

2023-06-28 Thread dmalcolm at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110466 David Malcolm changed: What|Removed |Added Last reconfirmed||2023-06-28 Ever confirmed|0

[Bug jit/110466] jit.dg FAILs on ppc64le

2023-06-28 Thread dmalcolm at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110466 --- Comment #3 from David Malcolm --- With the above fix, the remaining failures are: FAIL: FAIL FAIL: FAIL FAIL: FAIL which are from testdebuginfo.c; I see: Reading symbols from /home/dmalcolm/build/gcc/testsuite/jit4/jit-debuginfo.o...Dwa

[Bug jit/110466] jit.dg FAILs on ppc64le

2023-06-28 Thread dmalcolm at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110466 --- Comment #6 from David Malcolm --- (In reply to Andrew Pinski from comment #5) > (In reply to Andrew Pinski from comment #4) > > (In reply to David Malcolm from comment #3) > > > > > > Reading symbols from > > > /home/dmalcolm/build/gcc/te

[Bug analyzer/110483] Several gcc.dg/analyzer/out-of-bounds-diagram-*.c tests FAIL

2023-06-29 Thread dmalcolm at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110483 --- Comment #1 from David Malcolm --- Thanks for filing this; sorry about the failures. What's the endianness of the hosts that this is happening on? Is there a machine in the GCC compile farm that this happens on? The row of indices is is cr

[Bug jit/110466] jit.dg FAILs on ppc64le

2023-06-30 Thread dmalcolm at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110466 --- Comment #9 from David Malcolm --- Should be fixed on trunk for gcc 14 by the above commits. Keeping open to track backporting to gcc 13.

[Bug analyzer/110700] ICE with -fanalyzer --analyzer-checker=taint on division of tainted floating-point values

2023-07-19 Thread dmalcolm at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110700 David Malcolm changed: What|Removed |Added Summary|gcc -fanalyzer |ICE with -fanalyzer |

[Bug analyzer/112955] Valgrind error in ana::feasibility_state::maybe_update_for_edge

2023-12-11 Thread dmalcolm at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112955 David Malcolm changed: What|Removed |Added Status|UNCONFIRMED |ASSIGNED Last reconfirmed|

[Bug analyzer/112969] New: -Wanalyzer-exposure-through-uninit-copy false positive seen on Linux kernel's drivers/net/ethernet/intel/ice/ice_ptp.c

2023-12-11 Thread dmalcolm at gcc dot gnu.org via Gcc-bugs
: gcc Version: unknown Status: UNCONFIRMED Severity: normal Priority: P3 Component: analyzer Assignee: dmalcolm at gcc dot gnu.org Reporter: dmalcolm at gcc dot gnu.org Blocks: 106358 Target Milestone: --- Created attachment

[Bug analyzer/112955] Valgrind error in ana::feasibility_state::maybe_update_for_edge

2023-12-11 Thread dmalcolm at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112955 David Malcolm changed: What|Removed |Added Status|ASSIGNED|RESOLVED Resolution|---

[Bug analyzer/112974] New: -Wanalyzer-tainted-array-index false positive seen on Linux kernel drivers/platform/x86/intel/speed_select_if/isst_tpmi_core.c

2023-12-11 Thread dmalcolm at gcc dot gnu.org via Gcc-bugs
Product: gcc Version: unknown Status: UNCONFIRMED Severity: normal Priority: P3 Component: analyzer Assignee: dmalcolm at gcc dot gnu.org Reporter: dmalcolm at gcc dot gnu.org Blocks: 106358 Target Milestone

[Bug analyzer/112974] -Wanalyzer-tainted-array-index false positive seen on Linux kernel drivers/platform/x86/intel/speed_select_if/isst_tpmi_core.c

2023-12-11 Thread dmalcolm at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112974 --- Comment #1 from David Malcolm --- Created attachment 56854 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=56854&action=edit Patch adding reduced reproducer

[Bug analyzer/112975] New: -Wanalyzer-tainted-allocation-size false positive seen in Linux kernel's drivers/xen/privcmd.c

2023-12-11 Thread dmalcolm at gcc dot gnu.org via Gcc-bugs
IRMED Severity: normal Priority: P3 Component: analyzer Assignee: dmalcolm at gcc dot gnu.org Reporter: dmalcolm at gcc dot gnu.org Blocks: 106358 Target Milestone: --- In file included from drivers/xen/privcmd.c:15: In function ‘kc

[Bug analyzer/112975] -Wanalyzer-tainted-allocation-size false positive seen in Linux kernel's drivers/xen/privcmd.c

2023-12-11 Thread dmalcolm at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112975 --- Comment #1 from David Malcolm --- Created attachment 56857 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=56857&action=edit Reduced reproducer (needs adding to plugin.exp)

[Bug analyzer/112977] New: -Wanalyzer-tainted-offset false positive seen on Linux kernel's drivers/scsi/aacraid/aachba.c

2023-12-11 Thread dmalcolm at gcc dot gnu.org via Gcc-bugs
IRMED Severity: normal Priority: P3 Component: analyzer Assignee: dmalcolm at gcc dot gnu.org Reporter: dmalcolm at gcc dot gnu.org Blocks: 106358 Target Milestone: --- drivers/scsi/aacraid/aachba.c: In function ‘force_delete_disk’: dr

[Bug analyzer/112977] -Wanalyzer-tainted-offset false positive seen on Linux kernel's drivers/scsi/aacraid/aachba.c

2023-12-11 Thread dmalcolm at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112977 --- Comment #1 from David Malcolm --- Created attachment 56859 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=56859&action=edit Reduced reproducer (needs adding to plugin.exp)

[Bug analyzer/112704] FAIL: gcc.dg/analyzer/data-model-20.c (test for warnings, line 17)

2023-12-12 Thread dmalcolm at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112704 --- Comment #3 from David Malcolm --- Aha! Thanks.

[Bug analyzer/112655] analyzer/infinite-loop.cc:75: Possible performance problem ?

2023-12-12 Thread dmalcolm at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112655 David Malcolm changed: What|Removed |Added Ever confirmed|0 |1 Status|UNCONFIRMED

[Bug analyzer/112965] Valgrind error on gcc.dg/analyzer/fd-dup-1.c

2023-12-12 Thread dmalcolm at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112965 --- Comment #2 from David Malcolm --- In c-parser.cc's consider_macro: 1843pretty_printer pp; 1844pp_string (&pp, (const char *) tok.val.str.text); 1845pp_newline (&pp); 1846cpp_push_buffer (parse_in, 1847

[Bug analyzer/112965] Valgrind error on gcc.dg/analyzer/fd-dup-1.c

2023-12-12 Thread dmalcolm at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112965 --- Comment #3 from David Malcolm --- A workaround might be to pad pp's buffer with trailing zero bytes up to a multiple of 16.

[Bug analyzer/112965] Valgrind error on gcc.dg/analyzer/fd-dup-1.c

2023-12-12 Thread dmalcolm at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112965 --- Comment #4 from David Malcolm --- (In reply to David Malcolm from comment #3) > A workaround might be to pad pp's buffer with trailing zero bytes up to a > multiple of 16. The following hack "fixes" it (for some definition of "fix"): diff

[Bug analyzer/112655] analyzer/infinite-loop.cc:75: Possible performance problem ?

2023-12-14 Thread dmalcolm at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112655 David Malcolm changed: What|Removed |Added Resolution|--- |FIXED Status|ASSIGNED

[Bug analyzer/112792] -Wanalyzer-out-of-bounds false positives seen on Linux kernel with certain unions

2023-12-15 Thread dmalcolm at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112792 David Malcolm changed: What|Removed |Added Status|UNCONFIRMED |ASSIGNED Ever confirmed|0

[Bug analyzer/112792] -Wanalyzer-out-of-bounds false positives seen on Linux kernel with certain unions

2023-12-26 Thread dmalcolm at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112792 --- Comment #4 from David Malcolm --- Should be fixed on trunk by r14-6622-g5f1bed2a7af828103ca23a3546466a23e8dd2f30 Keeping open to track backporting to GCC 13.

[Bug analyzer/113222] New: ICE with -fanalyzer seen on Linux kernel kernel/sched/core.c

2024-01-03 Thread dmalcolm at gcc dot gnu.org via Gcc-bugs
Priority: P3 Component: analyzer Assignee: dmalcolm at gcc dot gnu.org Reporter: dmalcolm at gcc dot gnu.org Blocks: 106358 Target Milestone: --- Given: struct

[Bug analyzer/113222] ICE with -fanalyzer seen on Linux kernel kernel/sched/core.c

2024-01-03 Thread dmalcolm at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113222 David Malcolm changed: What|Removed |Added Ever confirmed|0 |1 Last reconfirmed|

[Bug analyzer/113222] ICE with -fanalyzer seen on Linux kernel kernel/sched/core.c

2024-01-04 Thread dmalcolm at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113222 David Malcolm changed: What|Removed |Added Status|ASSIGNED|RESOLVED Resolution|---

[Bug analyzer/106358] [meta-bug] tracker bug for building the Linux kernel with -fanalyzer

2024-01-04 Thread dmalcolm at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106358 Bug 106358 depends on bug 113222, which changed state. Bug 113222 Summary: ICE with -fanalyzer seen on Linux kernel kernel/sched/core.c https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113222 What|Removed |Added --

[Bug analyzer/112790] -Wanalyzer-deref-before-check false positives seen in Linux kernel due to inlining

2024-01-04 Thread dmalcolm at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112790 David Malcolm changed: What|Removed |Added Status|NEW |ASSIGNED --- Comment #4 from David Malc

[Bug analyzer/113277] RFE: analyzer diagnose allocation error leading to pass NULL to snprintf

2024-01-08 Thread dmalcolm at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113277 David Malcolm changed: What|Removed |Added Ever confirmed|0 |1 Status|UNCONFIRMED

[Bug analyzer/105102] RFE: analyzer handling for asprintf and vasprintf

2024-01-08 Thread dmalcolm at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105102 --- Comment #1 from David Malcolm --- See also bug 113277

[Bug analyzer/113314] New: -Wanalyzer-infinite-loop false positive seen on haproxy's fd.c

2024-01-10 Thread dmalcolm at gcc dot gnu.org via Gcc-bugs
ormal Priority: P3 Component: analyzer Assignee: dmalcolm at gcc dot gnu.org Reporter: dmalcolm at gcc dot gnu.org Target Milestone: --- Created attachment 57027 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=57027&action=edit Reproducer https://g

[Bug analyzer/113314] -Wanalyzer-infinite-loop false positive seen on haproxy's fd.c

2024-01-10 Thread dmalcolm at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113314 --- Comment #1 from David Malcolm --- Indeed, if this is a single-threaded program, then this code: 63 void 64 fd_add_to_fd_list(volatile struct fdlist* list, int fd) 65 { 66int next; 67int new; 68int old;

[Bug analyzer/113333] analyzer: False positives with calloc()

2024-01-11 Thread dmalcolm at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=11 David Malcolm changed: What|Removed |Added Last reconfirmed||2024-01-11 Status|UNCONFIRM

[Bug analyzer/106147] RFE: -fanalyzer could complain about some cases of infinite loops and infinite recursion

2024-01-12 Thread dmalcolm at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106147 David Malcolm changed: What|Removed |Added Status|ASSIGNED|RESOLVED Resolution|---

[Bug analyzer/113333] analyzer: False positives with calloc()

2024-01-15 Thread dmalcolm at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=11 --- Comment #3 from David Malcolm --- Should be fixed on trunk for GCC 14 by the above patch. Still affects GCC 13 and earlier; keeping open to track backporting.

[Bug analyzer/106358] [meta-bug] tracker bug for building the Linux kernel with -fanalyzer

2024-01-15 Thread dmalcolm at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106358 Bug 106358 depends on bug 106229, which changed state. Bug 106229 Summary: False positives from -Wanalyzer-tainted-array-index with unsigned char index https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106229 What|Removed

[Bug analyzer/106229] False positives from -Wanalyzer-tainted-array-index with unsigned char index

2024-01-15 Thread dmalcolm at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106229 David Malcolm changed: What|Removed |Added Resolution|--- |FIXED Status|UNCONFIRMED

[Bug middle-end/112684] ICE: in main, at toplev.cc:2327 with -ftarget-help -fdiagnostics-generate-patch

2024-01-16 Thread dmalcolm at gcc dot gnu.org via Gcc-bugs
|ASSIGNED Last reconfirmed||2024-01-16 Assignee|unassigned at gcc dot gnu.org |dmalcolm at gcc dot gnu.org --- Comment #2 from David Malcolm --- Thanks for filing this bug. Happens when if (!exit_after_options) is skipped, since the

[Bug middle-end/112684] ICE: in main, at toplev.cc:2327 with -ftarget-help -fdiagnostics-generate-patch

2024-01-16 Thread dmalcolm at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112684 --- Comment #3 from David Malcolm --- Reproducers for trunk and supported releases: Trunk:https://godbolt.org/z/fz8o3c7h6 GCC 13.2: https://godbolt.org/z/bnd55zn7K GCC 12.3: https://godbolt.org/z/qdf54h6nf GCC 11.4: https://godbolt.o

[Bug analyzer/112811] ICE in -fanalyzer in has_null_terminator

2024-01-18 Thread dmalcolm at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112811 David Malcolm changed: What|Removed |Added Resolution|--- |FIXED Status|UNCONFIRMED

[Bug analyzer/106358] [meta-bug] tracker bug for building the Linux kernel with -fanalyzer

2024-01-18 Thread dmalcolm at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106358 Bug 106358 depends on bug 112811, which changed state. Bug 112811 Summary: ICE in -fanalyzer in has_null_terminator https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112811 What|Removed |Added --

[Bug analyzer/111361] [14 Regression] ICE: in has_null_terminator, at analyzer/region-model.cc:3410 with -fanalyzer

2024-01-18 Thread dmalcolm at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111361 David Malcolm changed: What|Removed |Added Resolution|--- |FIXED Status|UNCONFIRMED

[Bug analyzer/112977] -Wanalyzer-tainted-offset false positive seen on Linux kernel's drivers/scsi/aacraid/aachba.c

2024-01-24 Thread dmalcolm at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112977 David Malcolm changed: What|Removed |Added Status|UNCONFIRMED |RESOLVED Resolution|---

[Bug analyzer/106358] [meta-bug] tracker bug for building the Linux kernel with -fanalyzer

2024-01-24 Thread dmalcolm at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106358 Bug 106358 depends on bug 112927, which changed state. Bug 112927 Summary: -Wanalyzer-tainted-size false positive seen in Linux kernel's drivers/char/ipmi/ipmi_devintf.c https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112927 What|Re

[Bug analyzer/112927] -Wanalyzer-tainted-size false positive seen in Linux kernel's drivers/char/ipmi/ipmi_devintf.c

2024-01-24 Thread dmalcolm at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112927 David Malcolm changed: What|Removed |Added Status|UNCONFIRMED |RESOLVED Resolution|---

[Bug analyzer/106358] [meta-bug] tracker bug for building the Linux kernel with -fanalyzer

2024-01-24 Thread dmalcolm at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106358 Bug 106358 depends on bug 112977, which changed state. Bug 112977 Summary: -Wanalyzer-tainted-offset false positive seen on Linux kernel's drivers/scsi/aacraid/aachba.c https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112977 What|Rem

[Bug analyzer/112969] -Wanalyzer-exposure-through-uninit-copy false positive seen on Linux kernel's drivers/net/ethernet/intel/ice/ice_ptp.c

2024-01-24 Thread dmalcolm at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112969 David Malcolm changed: What|Removed |Added Status|UNCONFIRMED |ASSIGNED Ever confirmed|0

[Bug analyzer/112969] -Wanalyzer-exposure-through-uninit-copy false positive seen on Linux kernel's drivers/net/ethernet/intel/ice/ice_ptp.c

2024-01-25 Thread dmalcolm at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112969 --- Comment #3 from David Malcolm --- Should be fixed on trunk for gcc 14 by the above patch. Keeping open to track backporting this to other branches.

[Bug analyzer/113606] New: -Wanalyzer-infinite-recursion false positive on code involving strstr, memset, strnlen and -D_FORTIFY_SOURCE

2024-01-25 Thread dmalcolm at gcc dot gnu.org via Gcc-bugs
Status: UNCONFIRMED Severity: normal Priority: P3 Component: analyzer Assignee: dmalcolm at gcc dot gnu.org Reporter: dmalcolm at gcc dot gnu.org Target Milestone: --- Taking the following from this downstream bug report: https

[Bug analyzer/113619] New: -Wanalyzer-tainted-divisor false positive seen in Linux kernel's fs/ceph/ioctl.c

2024-01-26 Thread dmalcolm at gcc dot gnu.org via Gcc-bugs
IRMED Severity: normal Priority: P3 Component: analyzer Assignee: dmalcolm at gcc dot gnu.org Reporter: dmalcolm at gcc dot gnu.org Blocks: 106358 Target Milestone: --- Reduced from false positive in Linux kernel's kernel's fs/ceph/ioctl.c:

[Bug analyzer/113654] New: [14 Regression] -Wanalyzer-allocation-size false positive seen on Linux kernel's drivers/gpu/drm/i915/display/intel_bios.c

2024-01-29 Thread dmalcolm at gcc dot gnu.org via Gcc-bugs
: gcc Version: 14.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: analyzer Assignee: dmalcolm at gcc dot gnu.org Reporter: dmalcolm at gcc dot gnu.org Blocks: 106358 Target Milestone: --- Trunk: https://godbol

[Bug analyzer/106358] [meta-bug] tracker bug for building the Linux kernel with -fanalyzer

2024-01-30 Thread dmalcolm at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106358 Bug 106358 depends on bug 113654, which changed state. Bug 113654 Summary: [14 Regression] -Wanalyzer-allocation-size false positive seen on Linux kernel's drivers/gpu/drm/i915/display/intel_bios.c https://gcc.gnu.org/bugzilla/show_bug.cgi?id=11

[Bug analyzer/113654] [14 Regression] -Wanalyzer-allocation-size false positive seen on Linux kernel's drivers/gpu/drm/i915/display/intel_bios.c

2024-01-30 Thread dmalcolm at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113654 David Malcolm changed: What|Removed |Added Status|UNCONFIRMED |RESOLVED Resolution|---

[Bug analyzer/111881] [14 Regression] analyzer: ICE in ensure_closed, at analyzer/constraint-manager.cc:130 with -Ofast

2024-01-30 Thread dmalcolm at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111881 David Malcolm changed: What|Removed |Added Last reconfirmed||2024-01-30 Target Milestone|---

[Bug analyzer/113509] ICE: SIGSEGV in c_tree_printer (c-objc-common.cc:341) with -fanalyzer -fanalyzer-verbose-state-changes

2024-01-30 Thread dmalcolm at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113509 David Malcolm changed: What|Removed |Added Status|UNCONFIRMED |NEW Ever confirmed|0

[Bug analyzer/113509] ICE: SIGSEGV in c_tree_printer (c-objc-common.cc:341) with -fanalyzer -fanalyzer-verbose-state-changes

2024-01-30 Thread dmalcolm at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113509 David Malcolm changed: What|Removed |Added Status|NEW |ASSIGNED --- Comment #2 from David Malc

[Bug analyzer/113509] ICE: SIGSEGV in c_tree_printer (c-objc-common.cc:341) with -fanalyzer -fanalyzer-verbose-state-changes

2024-01-31 Thread dmalcolm at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113509 David Malcolm changed: What|Removed |Added Resolution|--- |FIXED Status|ASSIGNED

[Bug analyzer/113253] gcc -g causes -fanalyzer to issue false positive

2024-01-31 Thread dmalcolm at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113253 --- Comment #1 from David Malcolm --- Created attachment 57268 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=57268&action=edit Reduced reproducer Thanks for filing this bug. The attached is a simplified reproducer on trunk, with: -fan

[Bug analyzer/113253] gcc -g causes -fanalyzer to issue false positive

2024-01-31 Thread dmalcolm at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113253 David Malcolm changed: What|Removed |Added Last reconfirmed||2024-01-31 Ever confirmed|0

[Bug analyzer/113253] gcc -g causes -fanalyzer to issue false positive

2024-01-31 Thread dmalcolm at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113253 --- Comment #2 from David Malcolm --- I'm testing a fix. The bug observably affects trunk and gcc 13.2. It it probably also present but latent on gcc 12, 11, and 10 (-Wanalyzer-deref-before-check was added in gcc 13).

[Bug analyzer/113253] gcc -g causes -fanalyzer to issue false positive

2024-01-31 Thread dmalcolm at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113253 --- Comment #4 from David Malcolm --- Should be fixed on trunk for gcc 14 by the above patch. Keeping open to backport to other branches.

[Bug analyzer/115436] False positive with -Wanalyzer-malloc-leak

2024-06-11 Thread dmalcolm at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115436 David Malcolm changed: What|Removed |Added Status|UNCONFIRMED |NEW Last reconfirmed|

[Bug other/115448] New: Improvements to CFG edge visualization in diagnostic paths

2024-06-11 Thread dmalcolm at gcc dot gnu.org via Gcc-bugs
Priority: P3 Component: other Assignee: unassigned at gcc dot gnu.org Reporter: dmalcolm at gcc dot gnu.org Target Milestone: --- See https://godbolt.org/z/5e6d3Pvff (from bug 115436) where the path has: │ └──> 'my_str_push_char'

[Bug bootstrap/115465] New: [15 Regression] aarch64-early-ra.cc:3449:23: error: ‘class pretty_printer’ has no member named ‘buffer’

2024-06-12 Thread dmalcolm at gcc dot gnu.org via Gcc-bugs
: UNCONFIRMED Severity: normal Priority: P3 Component: bootstrap Assignee: unassigned at gcc dot gnu.org Reporter: dmalcolm at gcc dot gnu.org Target Milestone: --- Target: aarch64-*-* Looks like I broke the build on aarch64 with r15-1209

[Bug bootstrap/115465] [15 Regression] aarch64-early-ra.cc:3449:23: error: ‘class pretty_printer’ has no member named ‘buffer’

2024-06-12 Thread dmalcolm at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115465 David Malcolm changed: What|Removed |Added Assignee|unassigned at gcc dot gnu.org |dmalcolm at gcc dot gnu.org

[Bug bootstrap/115465] [15 Regression] aarch64-early-ra.cc:3449:23: error: ‘class pretty_printer’ has no member named ‘buffer’

2024-06-12 Thread dmalcolm at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115465 David Malcolm changed: What|Removed |Added Status|ASSIGNED|RESOLVED Resolution|---

[Bug bootstrap/115465] [15 Regression] aarch64-early-ra.cc:3449:23: error: ‘class pretty_printer’ has no member named ‘buffer’

2024-06-12 Thread dmalcolm at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115465 --- Comment #4 from David Malcolm --- (In reply to David Malcolm from comment #3) > Build breakage should be fixed by the above patch. Indeed, https://builder.sourceware.org/buildbot/#/builders/266/builds/3620 succeeded.

[Bug c++/106393] Add warnings for common dangling problems

2024-06-13 Thread dmalcolm at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106393 --- Comment #4 from David Malcolm --- (In reply to Eric Gallager from comment #3) > (In reply to Marek Polacek from comment #2) > > The rest may have to be implemented in the analyzer. > > Hm, let's ask David? Please open it as a fresh bug aga

[Bug c/115496] New: RFE: new warning to detect suspicious multline string literals

2024-06-14 Thread dmalcolm at gcc dot gnu.org via Gcc-bugs
Severity: normal Priority: P3 Component: c Assignee: unassigned at gcc dot gnu.org Reporter: dmalcolm at gcc dot gnu.org Target Milestone: --- I find I often forget to add trailing newlines when composing multiline string literals in C/C++. For

[Bug c/115496] RFE: new warning to detect suspicious multline string literals

2024-06-14 Thread dmalcolm at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115496 --- Comment #1 from David Malcolm --- gcc's diagnostic-show-locus.cc has lots of examples of such literals (in the selftests)

[Bug c/115496] RFE: new warning to detect suspicious multiline string literals

2024-06-14 Thread dmalcolm at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115496 --- Comment #4 from David Malcolm --- A possible input to the logic could be: be more paranoid about strings that will be used by inline asm. (In reply to Andi Kleen from comment #3) > When writing inline assembler an alternative to \n is to us

[Bug modula2/115540] New: "gcc/m2/mc-boot-ch/Gtermios.cc:292:20: error: return-statement with a value, in function returning 'void' [-fpermissive]" when HAVE_CFMAKERAW is defined

2024-06-18 Thread dmalcolm at gcc dot gnu.org via Gcc-bugs
CFMAKERAW is defined Product: gcc Version: unknown Status: UNCONFIRMED Severity: normal Priority: P3 Component: modula2 Assignee: gaius at gcc dot gnu.org Reporter: dmalcolm at gcc dot gnu.org Target Milestone: --- I got

[Bug analyzer/115564] New: -Wanalyzer-infinite-loop false negative when there are no source locations

2024-06-20 Thread dmalcolm at gcc dot gnu.org via Gcc-bugs
: diagnostic Severity: normal Priority: P3 Component: analyzer Assignee: dmalcolm at gcc dot gnu.org Reporter: dmalcolm at gcc dot gnu.org Target Milestone: --- Consider e.g.: void test (unsigned b) { for (unsigned i = b; i >= 0;

[Bug analyzer/115564] -Wanalyzer-infinite-loop false negative when there are no source locations

2024-06-20 Thread dmalcolm at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115564 David Malcolm changed: What|Removed |Added Status|UNCONFIRMED |ASSIGNED Last reconfirmed|

[Bug other/112425] Invalid SARIF output when column number is zero

2024-06-21 Thread dmalcolm at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112425 David Malcolm changed: What|Removed |Added Status|UNCONFIRMED |RESOLVED Resolution|---

[Bug testsuite/109360] RFE: check that generated .sarif files validate against the SARIF schema

2024-06-21 Thread dmalcolm at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109360 David Malcolm changed: What|Removed |Added Last reconfirmed||2024-06-21 Status|UNCONFIRM

[Bug analyzer/115564] -Wanalyzer-infinite-loop false negative when there are no source locations

2024-06-21 Thread dmalcolm at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115564 David Malcolm changed: What|Removed |Added URL||https://gcc.gnu.org/piperma

[Bug analyzer/115647] New: No warning when a loop is infinite due to type of operand in conditional

2024-06-25 Thread dmalcolm at gcc dot gnu.org via Gcc-bugs
: normal Priority: P3 Component: analyzer Assignee: dmalcolm at gcc dot gnu.org Reporter: dmalcolm at gcc dot gnu.org Target Milestone: --- A user sent in this report, noting that it might not be in scope for the analyzer: SUBJECT: Wanalyzer-infinite-loop: Add

[Bug analyzer/115647] No warning when a loop is infinite due to type of operand in conditional

2024-06-25 Thread dmalcolm at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115647 --- Comment #1 from David Malcolm --- There's no warning from the analyzer below -O1: https://godbolt.org/z/34js3xT8G but there is at -O1 and above: https://godbolt.org/z/5z9x1vP6G which reports: : In function 'main': :10:5: warning: infini

[Bug analyzer/115647] No warning when a loop is infinite due to type of operand in conditional

2024-06-25 Thread dmalcolm at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115647 --- Comment #2 from David Malcolm --- Without optimization https://godbolt.org/z/15v7zMMo5 the analyzer "sees" this gimple IR: int main () { const int n; char i; int D.3184; int _1; unsigned char i.0_2; unsigned char _3; int _4;

[Bug analyzer/115647] No warning when a loop is infinite due to type of operand in conditional

2024-06-25 Thread dmalcolm at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115647 --- Comment #3 from David Malcolm --- (In reply to David Malcolm from comment #0) > In the below `for` statement, the `char` counter `i` has a smaller range > than the value of the `int` condition `n` (in this case 500) hence it will > overflow

[Bug bootstrap/115635] [15 regression] Bootstrap fails with failed self-test (diagnostic-path.cc:1153: test_empty_path: FAIL: ASSERT_FALSE ((path.interprocedural_p ())))

2024-06-25 Thread dmalcolm at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115635 --- Comment #1 from David Malcolm --- "make selftest-valgrind" is clean for me. Note that if you can reproducer this standalone, "make selftest-gdb" is a handy way to run the selftests under the debugger. FWIW, the output suggests that the ass

[Bug c/97687] -Wfatal-errors prints some notes but not others

2024-06-26 Thread dmalcolm at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97687 --- Comment #2 from David Malcolm --- (In reply to Nicholas Fraser from comment #0) Behavior confirmed on Compiler Explorer with trunk (for GCC 15); URLs as follows: > > gcc a.c https://godbolt.org/z/rxbz5eWMd > gcc -Wfatal-errors a.c >

[Bug c/97687] -Wfatal-errors prints some notes but not others

2024-06-26 Thread dmalcolm at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97687 --- Comment #3 from David Malcolm --- The "in expansion of macro ‘FOO’" notes (messages 2 and 4) are coming from the diagnostic finalizer, and so they are effectively printed as part of the first "error" (message 1) and the "previous declaration

<    28   29   30   31   32   33   34   35   36   >