[Bug bootstrap/72823] [7 Regression] r239175 causes build failure

2016-08-06 Thread dmalcolm at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=72823 --- Comment #7 from David Malcolm --- Should now be fixed. Keeping open for now, in the hope of addressing libcpp's gcc_assert.

[Bug bootstrap/72844] Revision 293175 breaks gcc on FreeBSD

2016-08-08 Thread dmalcolm at gcc dot gnu.org
||2016-08-08 CC||dmalcolm at gcc dot gnu.org Assignee|unassigned at gcc dot gnu.org |dmalcolm at gcc dot gnu.org Ever confirmed|0 |1 --- Comment #2 from David Malcolm --- Sorry about this

[Bug bootstrap/72844] Revision 293175 breaks gcc on FreeBSD

2016-08-08 Thread dmalcolm at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=72844 --- Comment #3 from David Malcolm --- Created attachment 39081 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=39081&action=edit Ensure that HAVE_ICONV is usable as a conditional

[Bug bootstrap/72844] Revision 293175 breaks gcc on FreeBSD

2016-08-08 Thread dmalcolm at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=72844 --- Comment #4 from David Malcolm --- (In reply to David Malcolm from comment #3) > Created attachment 39081 [details] > Ensure that HAVE_ICONV is usable as a conditional Steve: this fixes the problem for me on a Linux box with iconv hacked out.

[Bug c/52952] Wformat location info is bad (wrong column number)

2016-08-08 Thread dmalcolm at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=52952 --- Comment #45 from David Malcolm --- Author: dmalcolm Date: Mon Aug 8 20:10:19 2016 New Revision: 239253 URL: https://gcc.gnu.org/viewcvs?rev=239253&root=gcc&view=rev Log: Use class substring_loc in c-format.c (PR c/52952) gcc/c-family/Chang

[Bug bootstrap/72846] [7 regression]

2016-08-08 Thread dmalcolm at gcc dot gnu.org
||dmalcolm at gcc dot gnu.org Resolution|--- |DUPLICATE --- Comment #1 from David Malcolm --- Sorry about this. *** This bug has been marked as a duplicate of bug 72844 ***

[Bug bootstrap/72844] Revision 293175 breaks gcc on FreeBSD

2016-08-08 Thread dmalcolm at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=72844 David Malcolm changed: What|Removed |Added CC||gerald at pfeifer dot com --- Comment #5

[Bug bootstrap/72844] Revision 293175 breaks gcc on FreeBSD

2016-08-08 Thread dmalcolm at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=72844 --- Comment #7 from David Malcolm --- Author: dmalcolm Date: Mon Aug 8 20:46:19 2016 New Revision: 239257 URL: https://gcc.gnu.org/viewcvs?rev=239257&root=gcc&view=rev Log: Fix selftest::test_lexer_string_locations_ebcdic for systems without ic

[Bug bootstrap/72844] Revision 293175 breaks gcc on FreeBSD

2016-08-08 Thread dmalcolm at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=72844 David Malcolm changed: What|Removed |Added Status|ASSIGNED|RESOLVED Resolution|---

[Bug c/64955] RFE: have -Wformat suggest the correct format string to use

2016-08-08 Thread dmalcolm at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64955 --- Comment #6 from David Malcolm --- Author: dmalcolm Date: Mon Aug 8 22:50:47 2016 New Revision: 239260 URL: https://gcc.gnu.org/viewcvs?rev=239260&root=gcc&view=rev Log: c-format.c: suggest the correct format string to use (PR c/64955) This

[Bug c/64955] RFE: have -Wformat suggest the correct format string to use

2016-08-08 Thread dmalcolm at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64955 David Malcolm changed: What|Removed |Added Status|ASSIGNED|RESOLVED Resolution|---

[Bug c/72857] incorrect caret location in -Wformat for width and precision given by asterisk

2016-08-10 Thread dmalcolm at gcc dot gnu.org
||2016-08-10 Assignee|unassigned at gcc dot gnu.org |dmalcolm at gcc dot gnu.org Ever confirmed|0 |1

[Bug c/72857] incorrect caret location in -Wformat for width and precision given by asterisk

2016-08-10 Thread dmalcolm at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=72857 --- Comment #1 from David Malcolm --- Candidate patch: https://gcc.gnu.org/ml/gcc-patches/2016-08/msg00867.html

[Bug c/72858] incorrect fixit hints in -Wformat diagnostics

2016-08-11 Thread dmalcolm at gcc dot gnu.org
||2016-08-11 Assignee|unassigned at gcc dot gnu.org |dmalcolm at gcc dot gnu.org Ever confirmed|0 |1

[Bug c/72858] incorrect fixit hints in -Wformat diagnostics

2016-08-12 Thread dmalcolm at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=72858 --- Comment #1 from David Malcolm --- Candidate patch posted here: https://gcc.gnu.org/ml/gcc-patches/2016-08/msg01053.html

[Bug c/72857] incorrect caret location in -Wformat for width and precision given by asterisk

2016-08-16 Thread dmalcolm at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=72857 --- Comment #2 from David Malcolm --- Author: dmalcolm Date: Tue Aug 16 18:19:34 2016 New Revision: 239510 URL: https://gcc.gnu.org/viewcvs?rev=239510&root=gcc&view=rev Log: Fix caret locations in format_type_warning (PR c/72857) gcc/c-family/C

[Bug c/72857] incorrect caret location in -Wformat for width and precision given by asterisk

2016-08-16 Thread dmalcolm at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=72857 David Malcolm changed: What|Removed |Added Status|ASSIGNED|RESOLVED Resolution|---

[Bug c/99323] [9/10/11 Regression] ICE in add_hint, at diagnostic-show-locus.c:2234 since r8-379-gd1b5f5cc3cfd148e

2021-03-02 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 --- Mine

[Bug c/99323] [9/10 Regression] ICE in add_hint, at diagnostic-show-locus.c:2234 since r8-379-gd1b5f5cc3cfd148e

2021-03-02 Thread dmalcolm at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99323 David Malcolm changed: What|Removed |Added Summary|[9/10/11 Regression] ICE in |[9/10 Regression] ICE in

[Bug analyzer/95043] GCC 10 Analyzer and false positive on 'memcpy(dest, src, count);'

2021-03-02 Thread dmalcolm at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95043 David Malcolm changed: What|Removed |Added Status|ASSIGNED|UNCONFIRMED Ever confirmed|1

[Bug analyzer/96894] State explosion on gdb's fibheap.c

2021-03-03 Thread dmalcolm at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96894 David Malcolm changed: What|Removed |Added Summary|Analyzer assumes pointer is |State explosion on gdb's

[Bug analyzer/97090] gcc.dg/analyzer/malloc-vs-local-1b.c fails on arm and powerpc64*-linux-gnu

2021-03-03 Thread dmalcolm at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97090 --- Comment #11 from David Malcolm --- Re comment #10: I just tested unknown-fns-4.c and malloc-vs-local-1b.c 500 times each on a --target=i386-pc-solaris2.11 build using the script from comment #8 and the results were identical each time. So ho

[Bug analyzer/93355] Missing diagnostic for missing fclose in intl/localealias.c

2021-03-03 Thread dmalcolm at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93355 --- Comment #8 from David Malcolm --- (In reply to David Malcolm from comment #4) > (a) It happens to successfully explore enough of the graph to find the leak, > but hits complexity limits at 1 program point: > > pr93355-localealias.c:263:41: w

[Bug analyzer/99390] New: [meta-bug] tracker bug for call summaries in -fanalyzer

2021-03-04 Thread dmalcolm at gcc dot gnu.org via Gcc-bugs
Severity: normal Priority: P3 Component: analyzer Assignee: dmalcolm at gcc dot gnu.org Reporter: dmalcolm at gcc dot gnu.org Target Milestone: --- Call summarization in -fanalyzer has various issues: * they're off by default (in analyzer.opt), but enabl

[Bug analyzer/99391] New: Analyzer call summaries don't handle longjmp

2021-03-04 Thread dmalcolm at gcc dot gnu.org via Gcc-bugs
onent: analyzer Assignee: dmalcolm at gcc dot gnu.org Reporter: dmalcolm at gcc dot gnu.org Blocks: 99390 Target Milestone: --- Consider: /* Verify that call summaries respect longjmp. */ /* { dg-additional-options "-fanalyzer-call-summaries --param=analyzer-min-

[Bug analyzer/99391] Analyzer call summaries don't handle longjmp

2021-03-04 Thread dmalcolm at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99391 --- Comment #1 from David Malcolm --- There may well be a similar issue with exception-handling.

[Bug analyzer/93355] Missing diagnostic for missing fclose in intl/localealias.c

2021-03-05 Thread dmalcolm at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93355 --- Comment #9 from David Malcolm --- Going back to the summary from comment #4: (a) It happens to successfully explore enough of the graph to find the leak, but hits complexity limits at a program point (b) Without -fno-analyzer-feasibility, it

[Bug analyzer/98599] fatal error: Cgraph edge statement index out of range with -Os -flto -fanalyzer

2021-03-11 Thread dmalcolm at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98599 --- Comment #10 from David Malcolm --- I no longer believe the patch in comment #9 is correct. My latest analysis of this issue is: https://gcc.gnu.org/pipermail/gcc-patches/2021-January/564070.html (I was hoping for a response from Honza on t

[Bug analyzer/96374] Analyzer erroneously rejects certain diagnostics due to path-feasibility being used on shortest path

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

[Bug analyzer/93355] Missing diagnostic for missing fclose in intl/localealias.c

2021-03-11 Thread dmalcolm at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93355 --- Comment #11 from David Malcolm --- The above patch fixes the feasibility issue in (b) above, and the analyzer now successfully emits a diagnostic for the leak. The only remaining issue is (a) (see comment #9 above).

[Bug analyzer/93355] Analyzer -Wanalysis-too-complex on intl/localealias.c due to poor call summarization

2021-03-12 Thread dmalcolm at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93355 David Malcolm changed: What|Removed |Added Summary|Missing diagnostic for |Analyzer |missing fclo

[Bug analyzer/95758] Various issues when compiling glibc regex.c

2021-03-12 Thread dmalcolm at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95758 David Malcolm changed: What|Removed |Added Blocks||99390 Summary|-Wanalyzer-use-

[Bug analyzer/96894] State explosion on gdb's fibheap.c

2021-03-12 Thread dmalcolm at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96894 David Malcolm changed: What|Removed |Added Blocks||99390 --- Comment #4 from David Malcolm

[Bug analyzer/95188] analyzer-unsafe-call-within-signal-handler shows wrong statement for signal registration event

2021-03-12 Thread dmalcolm at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95188 David Malcolm changed: What|Removed |Added Blocks||99390 --- Comment #13 from David Malcolm

[Bug analyzer/99614] diagnostic-manager.cc:85: possible missing copy constructor ?

2021-03-18 Thread dmalcolm at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99614 David Malcolm changed: What|Removed |Added Status|NEW |ASSIGNED --- Comment #3 from David Malco

[Bug analyzer/99614] diagnostic-manager.cc:85: possible missing copy constructor ?

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

[Bug other/89863] [meta-bug] Issues in gcc that other static analyzers (cppcheck, clang-static-analyzer, PVS-studio) find that gcc misses

2021-03-19 Thread dmalcolm at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89863 Bug 89863 depends on bug 99614, which changed state. Bug 99614 Summary: diagnostic-manager.cc:85: possible missing copy constructor ? https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99614 What|Removed |Added --

[Bug analyzer/99667] New: RFE: complain about uninitialized member variables in constructor

2021-03-19 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: 97110 Target Milestone: --- The analyzer could warn about C++ constructors that don't fully initialize all member variables. Se

[Bug analyzer/98247] RFE: detect Flexible Array Member misuse in analyzer

2021-03-19 Thread dmalcolm at gcc dot gnu.org via Gcc-bugs
analyzer does not |RFE: detect Flexible Array |detect Flexible Array |Member misuse in analyzer |Member misuse | Assignee|unassigned at gcc dot gnu.org |dmalcolm at gcc dot gnu.org CC

[Bug analyzer/99669] New: RFE: detect division by zero in analyzer

2021-03-19 Thread dmalcolm at gcc dot gnu.org via Gcc-bugs
Assignee: dmalcolm at gcc dot gnu.org Reporter: dmalcolm at gcc dot gnu.org Target Milestone: --- -fanalyzer could probably warn about division by zero: Consider this easy case (from https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89863#c7): extern void g(); void f

[Bug analyzer/99260] analyzer does not track outcomes of realloc

2021-03-19 Thread dmalcolm at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99260 --- Comment #2 from David Malcolm --- In reply to David Malcolm from comment #0) > The analyzer currently has no knowledge of the behavior of "realloc" > (leading e.g. to bug 99193). > > For example, it currently fails to issue a warning for the

[Bug analyzer/99260] analyzer does not track outcomes of realloc

2021-03-19 Thread dmalcolm at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99260 --- Comment #3 from David Malcolm --- Also, bug 81452 tracks warning on realloc(p, 0)

[Bug analyzer/99671] New: RFE: analyzer could complain about ptr derefs that occur before the ptr is checked

2021-03-19 Thread dmalcolm at gcc dot gnu.org via Gcc-bugs
Severity: normal Priority: P3 Component: analyzer Assignee: dmalcolm at gcc dot gnu.org Reporter: dmalcolm at gcc dot gnu.org Target Milestone: --- See e.g. bug 80049, where we have code of the form expr = p->field; [...] if (p) ... We could complain t

[Bug analyzer/96395] Generalize gcc.dg/analyzer tests to be run with both C and C++

2021-03-19 Thread dmalcolm at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96395 David Malcolm changed: What|Removed |Added Blocks||97110 Summary|gcc.dg/analyzer

[Bug analyzer/99716] -Wanalyzer-double-fclose when fclose is called inside a loop

2021-03-22 Thread dmalcolm at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99716 --- Comment #1 from David Malcolm --- Thanks. Looks very similar to bug 93695 - the analyzer "gets confused" in how it tracks allocations in a loop (albeit with a different kind of resource, and thus worth tracking as a separate bug).

[Bug analyzer/99714] warn about alloca/dealloc mismatches based on calls with same object in different functions

2021-03-23 Thread dmalcolm at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99714 --- Comment #1 from David Malcolm --- The C case in comment #0 doesn't look like what I think you meant to write, and the analyzer (correctly IMHO) complains about a leak: : In function 'init': :22:61: warning: leak of 'p' [CWE-401] [-Wanalyzer-

[Bug analyzer/99716] -Wanalyzer-double-fclose when fclose is called inside a loop

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

[Bug analyzer/99738] New: RFE: analyzer should complain about unchecked FILE *

2021-03-23 Thread dmalcolm at gcc dot gnu.org via Gcc-bugs
Component: analyzer Assignee: dmalcolm at gcc dot gnu.org Reporter: dmalcolm at gcc dot gnu.org Target Milestone: --- In PR 99716 I noted we don't complain about the fprintf in: FILE *fp = fopen ("/tmp/test", "w"); fprintf (fp, "hello");

[Bug analyzer/99716] -Wanalyzer-double-fclose when fclose is called inside a loop

2021-03-23 Thread dmalcolm at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99716 --- Comment #4 from David Malcolm --- (In reply to David Malcolm from comment #2) > Also, I think we're missing a warning about "fp" possibly being NULL, for > the case where the fopen fails. I've filed this as bug 99738.

[Bug analyzer/95043] GCC 10 Analyzer and false positive on 'memcpy(dest, src, count);'

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

[Bug analyzer/99716] -Wanalyzer-double-fclose when fclose is called inside a loop

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

[Bug analyzer/99044] use-after-free false positive in loop

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

[Bug analyzer/93695] Allocation and freeing memory for array members in loops is not handled properly by the analyzer

2021-03-24 Thread dmalcolm at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93695 --- Comment #4 from David Malcolm --- The above commit helps with related issues, but doesn't yet fix this bug. In particular, -Wanalyzer-too-complex shows that the analyzer generates an infinite chain of states for the loop, and eventually hits

[Bug analyzer/99771] New: Analyzer diagnostics should not say ""

2021-03-25 Thread dmalcolm at gcc dot gnu.org via Gcc-bugs
: analyzer Assignee: dmalcolm at gcc dot gnu.org Reporter: dmalcolm at gcc dot gnu.org Target Milestone: --- Various analyzer diagnostics talk about ""; examples can be seen in the testsuite: data-model-10.c: *new_table->m_f = NULL; // "dereference of pos

[Bug analyzer/99771] Analyzer diagnostics should not say ""

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

[Bug analyzer/99774] New: False positive from -Wanalyzer-malloc-leak in loop (qemu:libvhost-user.c)

2021-03-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: --- Created attachment 50472 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=50472&action=edit Reduced reproducer

[Bug analyzer/99774] False positive from -Wanalyzer-malloc-leak in loop (qemu:libvhost-user.c)

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

[Bug analyzer/99854] gcc 11 snapshot 20210328: "lto1: fatal error: Cgraph edge statement index out of range" when building Valgrind with LTO and -fanalyzer

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

[Bug analyzer/98599] fatal error: Cgraph edge statement index out of range with -Os -flto -fanalyzer

2021-03-31 Thread dmalcolm at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98599 David Malcolm changed: What|Removed |Added CC||jseward at acm dot org --- Comment #11 f

[Bug analyzer/99860] New: RFE: analyzer does not respect "restrict"

2021-03-31 Thread dmalcolm at gcc dot gnu.org via Gcc-bugs
Component: analyzer Assignee: dmalcolm at gcc dot gnu.org Reporter: dmalcolm at gcc dot gnu.org Target Milestone: --- The analyzer currently is very conservative about aliasing, and assumes that anything that could be aliased by a pointer gets clobbered when a write occurs through th

[Bug analyzer/99771] Analyzer diagnostics should not say ""

2021-03-31 Thread dmalcolm at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99771 --- Comment #3 from David Malcolm --- The above patch fixes some of the occurrences of the bug (due to (b)), but not those due to (a), so keeping this bug open.

[Bug analyzer/99886] New: Infinite loop in -fanalyzer seen on gcc.dg/analyzer/malloc-1.c with -fanalyzer-verbosity=0

2021-04-02 Thread dmalcolm at gcc dot gnu.org via Gcc-bugs
Severity: normal Priority: P3 Component: analyzer Assignee: dmalcolm at gcc dot gnu.org Reporter: dmalcolm at gcc dot gnu.org Target Milestone: --- Reproducer: #include struct coord { float x; float y; }; void test_34 (void) { float *q; struct

[Bug analyzer/99886] Delay loop in -fanalyzer seen on gcc.dg/analyzer/malloc-1.c with -fanalyzer-verbosity=0

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

[Bug analyzer/99906] [11 Regression] ICE: SIGSEGV in maybe_reconstruct_from_def_stmt with -fanalyzer

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

[Bug analyzer/99906] [11 Regression] ICE: SIGSEGV in maybe_reconstruct_from_def_stmt with -fanalyzer

2021-04-04 Thread dmalcolm at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99906 --- Comment #2 from David Malcolm --- Testing a fix.

[Bug analyzer/99886] Delay loop in -fanalyzer seen on gcc.dg/analyzer/malloc-1.c with -fanalyzer-verbosity=0

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

[Bug analyzer/99906] [11 Regression] ICE: SIGSEGV in maybe_reconstruct_from_def_stmt with -fanalyzer

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

[Bug analyzer/99860] RFE: analyzer does not respect "restrict"

2021-04-07 Thread dmalcolm at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99860 --- Comment #1 from David Malcolm --- Notes on "restrict": https://en.cppreference.com/w/c/language/restrict

[Bug analyzer/99042] Another false -Wanalyzer-malloc-leak on code path involving unknown function call

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

[Bug analyzer/99774] False positive from -Wanalyzer-malloc-leak in loop (qemu:libvhost-user.c)

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

[Bug analyzer/100011] [11 Regression] ICE in analyzer when generating path for -Wanalyzer-unsafe-call-within-signal-handler

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

[Bug c/100020] New: RFE: Wmisleading-indentation (or similar warning) for certain missing semicolons?

2021-04-10 Thread dmalcolm at gcc dot gnu.org via Gcc-bugs
Keywords: diagnostic Severity: normal Priority: P3 Component: c Assignee: unassigned at gcc dot gnu.org Reporter: dmalcolm at gcc dot gnu.org Target Milestone: --- >From a discussion on Freenode's #gcc: https://git.sr.ht/~rkta/irss

[Bug analyzer/98599] [11 Regression] fatal error: Cgraph edge statement index out of range with -Os -flto -fanalyzer

2021-04-10 Thread dmalcolm at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98599 David Malcolm changed: What|Removed |Added Summary|fatal error: Cgraph edge|[11 Regression] fatal

[Bug analyzer/99212] [11 Regression] gcc.dg/analyzer/data-model-1.c line 971

2021-04-10 Thread dmalcolm at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99212 David Malcolm changed: What|Removed |Added Priority|P3 |P5 --- Comment #10 from David Malcolm -

[Bug analyzer/100011] [11 Regression] ICE in analyzer when generating path for -Wanalyzer-unsafe-call-within-signal-handler

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

[Bug analyzer/99212] [11 Regression] gcc.dg/analyzer/data-model-1.c line 971

2021-04-12 Thread dmalcolm at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99212 --- Comment #11 from David Malcolm --- I experimented with fixing this properly so that it works for all targets, but the fix involves adding a new region subclass to handle bitfields, and so feels far too risky for GCC 11. Hence this should be

[Bug analyzer/98599] [11 Regression] fatal error: Cgraph edge statement index out of range with -Os -flto -fanalyzer

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

[Bug analyzer/100042] ICE in gimple_call_set_fndecl with -Os -fsanitize=undefined -flto -fanalyzer

2021-04-12 Thread dmalcolm at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100042 --- Comment #1 from David Malcolm --- I'm not able to reproduce this, but I just committed a fix for PR 98599; does that fix this for you also?

[Bug analyzer/98599] [11 Regression] fatal error: Cgraph edge statement index out of range with -Os -flto -fanalyzer

2021-04-13 Thread dmalcolm at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98599 --- Comment #17 from David Malcolm --- (In reply to Jan Hubicka from comment #15) Thanks. [...] > So apparenlty analyzer is first pass that does use UIDs of statements at > WPA time. I wonder if there should be a debug flag that trashes all UI

[Bug jit/100096] libgccjit.so.0: Cannot write-enable text segment: Permission denied on NetBSD 9.1

2021-04-15 Thread dmalcolm at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100096 --- Comment #8 from David Malcolm --- (In reply to Sascha Wilde from comment #6) > However, please note that > "Cannot write-enable text segment: Permission denied" > is the more pressing problem, as it prevents libgccjit to be used > on NetBSD

[Bug jit/100096] libgccjit.so.0: Cannot write-enable text segment: Permission denied on NetBSD 9.1

2021-04-15 Thread dmalcolm at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100096 --- Comment #16 from David Malcolm --- (In reply to Sascha Wilde from comment #10) > (In reply to David Malcolm from comment #8) > > It would be good to know exactly where that error message is being emitted. > > > > If you add: > > gcc_jit_c

[Bug analyzer/100116] New: analyzer event messages for conditionals have the sense of the gimple IR rather than the source

2021-04-16 Thread dmalcolm at gcc dot gnu.org via Gcc-bugs
Severity: normal Priority: P3 Component: analyzer Assignee: dmalcolm at gcc dot gnu.org Reporter: dmalcolm at gcc dot gnu.org Target Milestone: --- Consider: $ cat v.c # define LIKELY(x) __builtin_expect(!!(x), 1) __attribute__

[Bug c/100121] New: RFE: plugin support for -Wformat via __attribute__((format()))

2021-04-16 Thread dmalcolm at gcc dot gnu.org via Gcc-bugs
Priority: P3 Component: c Assignee: unassigned at gcc dot gnu.org Reporter: dmalcolm at gcc dot gnu.org CC: msebor at gcc dot gnu.org Target Milestone: --- https://gcc.gnu.org/onlinedocs/gcc/Common-Function-Attributes.html#index-format-function

[Bug jit/100207] Error in build()

2021-04-22 Thread dmalcolm at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100207 --- Comment #4 from David Malcolm --- (In reply to Martin Liška from comment #3) > (In reply to sujay1844 from comment #2) > > So is the AUR package having a bug?? > > What's AUR? Can you investigate what sets the -Wformat-security ? Presumabl

[Bug jit/100207] -Werror=format-security error in AUR build of libgccjit

2021-04-22 Thread dmalcolm at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100207 David Malcolm changed: What|Removed |Added Summary|Error in build()|-Werror=format-security

[Bug jit/100207] -Werror=format-security error in AUR build of libgccjit

2021-04-22 Thread dmalcolm at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100207 David Malcolm changed: What|Removed |Added Resolution|--- |WORKSFORME Status|UNCONFIRM

[Bug jit/100207] -Werror=format-security error in AUR build of libgccjit

2021-04-22 Thread dmalcolm at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100207 --- Comment #12 from David Malcolm --- Is that the default /etc/makepkg.conf, or did you hand-edit it? (i.e is this something that all AUR users are going to run into, or just you?) Clearly the "-Werror=format-security" is not compatible with

[Bug jit/100207] -Werror=format-security error in AUR build of libgccjit

2021-04-22 Thread dmalcolm at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100207 --- Comment #14 from David Malcolm --- (In reply to sujay1844 from comment #13) > (In reply to David Malcolm from comment #12) > > Is that the default /etc/makepkg.conf, or did you hand-edit it? (i.e is > > this something that all AUR users are

[Bug analyzer/100244] [11/12 Regression] ICE: Segmentation fault (in describe_state_change)

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

[Bug analyzer/100244] [11 Regression] ICE: Segmentation fault (in describe_state_change)

2021-04-24 Thread dmalcolm at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100244 David Malcolm changed: What|Removed |Added Summary|[11/12 Regression] ICE: |[11 Regression] ICE:

[Bug testsuite/97168] [11 Regression] FAIL: gcc.dg/plugin/diagnostic-test-expressions-1.c, diagnostic-test-paths-2.c, location-overflow-test-1.c

2020-10-09 Thread dmalcolm at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97168 --- Comment #3 from David Malcolm --- (In reply to Thomas Schwinge from comment #2) [...] > (In reply to Martin Sebor from comment #0) > > FAIL: gcc.dg/plugin/diagnostic-test-expressions-1.c > > -fplugin=./diagnostic_plugin_test_tree_expression_r

[Bug testsuite/97168] [11 Regression] FAIL: gcc.dg/plugin/diagnostic-test-expressions-1.c, diagnostic-test-paths-2.c, location-overflow-test-1.c

2020-10-09 Thread dmalcolm at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97168 David Malcolm changed: What|Removed |Added Status|NEW |UNCONFIRMED Ever confirmed|1

[Bug testsuite/97168] [11 Regression] FAIL: gcc.dg/plugin/diagnostic-test-expressions-1.c, diagnostic-test-paths-2.c, location-overflow-test-1.c

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

[Bug analyzer/95007] RFE: -fanalyzer should complain about writes to string literals

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

[Bug analyzer/97258] -fanalyze fails to analyze static callbacks

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

[Bug analyzer/97394] Incorrect analyzer output for setjmp

2020-10-13 Thread dmalcolm at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97394 --- Comment #5 from David Malcolm --- Created attachment 49366 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=49366&action=edit [PATCH] analyzer: don't use in tests [PR97394] Thanks for filing this bug. Does this patch fix the testsuite

[Bug tree-optimization/97424] Warn on invalid shift amount after inlining

2020-10-14 Thread dmalcolm at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97424 David Malcolm changed: What|Removed |Added CC||dmalcolm at gcc dot gnu.org --- Comment

[Bug analyzer/97394] Incorrect analyzer output for setjmp

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

[Bug analyzer/93388] ensure -fanalyzer works with our C code

2020-10-14 Thread dmalcolm at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93388 Bug 93388 depends on bug 93723, which changed state. Bug 93723 Summary: ICEs building ada with -fanalyzer https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93723 What|Removed |Added --

[Bug analyzer/93723] ICEs building ada with -fanalyzer

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

<    15   16   17   18   19   20   21   22   23   24   >