[Bug c++/70909] Libiberty Demangler segfaults (4)

2016-12-02 Thread mark at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70909 --- Comment #23 from Mark Wielaard --- Created attachment 40231 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=40231&action=edit Check output with d_printing.patch

[Bug c++/70909] Libiberty Demangler segfaults (4)

2016-12-02 Thread mark at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70909 --- Comment #25 from Mark Wielaard --- (In reply to Markus Trippelsdorf from comment #24) > (In reply to Mark Wielaard from comment #22) > > Created attachment 40230 [details] > > d_printing mark/walk/unmark protection > > > > (In reply to Natha

[Bug c++/70909] Libiberty Demangler segfaults (4)

2016-12-02 Thread mark at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70909 Mark Wielaard changed: What|Removed |Added Attachment #40230|0 |1 is obsolete|

[Bug c++/70909] Libiberty Demangler segfaults (4)

2016-12-03 Thread mark at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70909 --- Comment #32 from Mark Wielaard --- (In reply to Nathan Sidwell from comment #27) > I think the symbols containing 'Ul' should demangle -- they're lambdas and > I'd expect my patch to fix those. I applied your patch first and two more demangl

[Bug c++/70909] Libiberty Demangler segfaults (4)

2016-12-03 Thread mark at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70909 --- Comment #34 from Mark Wielaard --- (In reply to Mark Wielaard from comment #26) > Created attachment 40233 [details] > d_print_comp with 1 level of recursion protection > > This is the variant that allows 1 level of recursion (with an xxx ??

[Bug c++/70909] Libiberty Demangler segfaults (4)

2016-12-03 Thread mark at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70909 --- Comment #35 from Mark Wielaard --- (In reply to Marcel Böhme from comment #31) > Hi Mark, > > Your patch looks good to me. One more thing: It seems that our patches > evaluate these two mangled strings differently. Is it because of Nathan's

[Bug c++/70909] Libiberty Demangler segfaults (4)

2016-12-03 Thread mark at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70909 --- Comment #36 from Mark Wielaard --- (In reply to Markus Trippelsdorf from comment #33) > (In reply to Mark Wielaard from comment #32) > > - PR70517 > > _ZSt4moveIRZN11tconcurrent6futureIvE4thenIZ5awaitIS2_EDaOT_EUlRKS6_E_EENS1_IN > > St5decayI

[Bug other/78252] C++ demangler crashes with infinite recursion with lambda (auto)

2016-12-04 Thread mark at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78252 Mark Wielaard changed: What|Removed |Added CC||mark at gcc dot gnu.org

[Bug other/70517] c++filt crashes when demangling a symbol

2016-12-04 Thread mark at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70517 Mark Wielaard changed: What|Removed |Added CC||mark at gcc dot gnu.org Depends

[Bug c++/68700] demangler failed with signal 11

2016-12-04 Thread mark at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68700 Mark Wielaard changed: What|Removed |Added CC||mark at gcc dot gnu.org Depends

[Bug other/62279] Demangler crash

2016-12-04 Thread mark at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=62279 Mark Wielaard changed: What|Removed |Added CC||mark at gcc dot gnu.org --- Comment #6

[Bug other/61805] Demangler crash (GDB PR 17157)

2016-12-04 Thread mark at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61805 Mark Wielaard changed: What|Removed |Added CC||mark at gcc dot gnu.org --- Comment #2

[Bug c++/68383] Demangler stack overflow

2016-12-04 Thread mark at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68383 Mark Wielaard changed: What|Removed |Added CC||mark at gcc dot gnu.org Depends

[Bug other/67264] Infinite recursion of demangler on fuzzed input

2016-12-04 Thread mark at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67264 Mark Wielaard changed: What|Removed |Added CC||mark at gcc dot gnu.org Depends

[Bug c++/70909] Libiberty Demangler segfaults (4)

2016-12-04 Thread mark at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70909 --- Comment #38 from Mark Wielaard --- For reference the symbols in comment #4 and the reduced case from comment #14 are fixed by the patch proposed for Bug 78252 - C++ demangler crashes with infinite recursion with lambda (auto). The patch prop

[Bug other/67738] infinite recursion in libiberty/cp-demangle.c

2016-12-04 Thread mark at gcc dot gnu.org
||mark at gcc dot gnu.org Resolution|DUPLICATE |--- --- Comment #4 from Mark Wielaard --- The patch proposed form bug 70909 does prevent the infinite recursion, but that doesn't help demangling the symbol. See the comments in bug #70909 which sugges

[Bug other/61460] Demangler crash (GDB PR 17043)

2016-12-04 Thread mark at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61460 --- Comment #3 from Mark Wielaard --- The patch proposed in bug #70909 does prevent the infinite recursiong crashing the demangler. But it doesn't demangle the symbol (just rejects it).

[Bug c++/70909] Libiberty Demangler segfaults (4)

2016-12-12 Thread mark at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70909 Mark Wielaard changed: What|Removed |Added Attachment #40233|0 |1 is obsolete|

[Bug c++/70909] Libiberty Demangler segfaults (4)

2016-12-13 Thread mark at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70909 --- Comment #42 from Mark Wielaard --- (In reply to Markus Trippelsdorf from comment #41) > (In reply to Mark Wielaard from comment #40) > > But I still haven't figured out why we need to allow 2 levels of recursion > > for some of the cases. See

[Bug c/79448] New: unhelpful -Wformat-truncation=2 warning

2017-02-09 Thread mark at gcc dot gnu.org
Assignee: unassigned at gcc dot gnu.org Reporter: mark at gcc dot gnu.org Target Milestone: --- gcc (GCC) 7.0.1 20170209 (experimental) $ cat t.c #include char * gettext (char *__msgid) { return __msgid; } char * fill (char *buf, size_t len, int count) { if (snprintf (buf

[Bug middle-end/79448] unhelpful -Wformat-truncation=2 INT_MAX warning

2017-02-12 Thread mark at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79448 --- Comment #3 from Mark Wielaard --- A "workaround" for the example given in the description is to just pick some arbitrary number you know wouldn't get exceeded. e.g: /* To help -Wformat-truncation=2 pretend the "count" translation will

[Bug middle-end/79448] unhelpful -Wformat-truncation=2 INT_MAX warning

2017-02-14 Thread mark at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79448 --- Comment #5 from Mark Wielaard --- (In reply to Martin Sebor from comment #4) > Ouch. When its size argument is zero, a snprintf call is a request to > compute the size of output without actually writing any into the destination > (which may

[Bug demangler/70909] Libiberty Demangler segfaults (4)

2017-03-02 Thread mark at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70909 --- Comment #43 from Mark Wielaard --- See also this discussion on gcc-patches: https://gcc.gnu.org/ml/gcc-patches/2017-03/msg00089.html

[Bug demangler/70909] Libiberty Demangler segfaults (4)

2017-03-12 Thread mark at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70909 --- Comment #49 from Mark Wielaard --- (In reply to Pedro Alves from comment #48) > GDB is released separately from binutils though, and GDB 8.0 is going to > branch very soon. IWBN to have this in the binutils-gdb repo by then. Trying to integ

[Bug demangler/70909] Libiberty Demangler segfaults (4)

2017-03-12 Thread mark at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70909 --- Comment #50 from Mark Wielaard --- (In reply to Mark Wielaard from comment #49) > (In reply to Pedro Alves from comment #48) > > GDB is released separately from binutils though, and GDB 8.0 is going to > > branch very soon. IWBN to have this

[Bug demangler/70909] Libiberty Demangler segfaults (4)

2017-03-12 Thread mark at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70909 --- Comment #51 from Mark Wielaard --- (In reply to Mark Wielaard from comment #50) > (In reply to Mark Wielaard from comment #49) > > (In reply to Pedro Alves from comment #48) > > > GDB is released separately from binutils though, and GDB 8.0 i

[Bug preprocessor/78497] compiling with -save-temps adds -Wimplicit-fallthrough warnings

2017-10-24 Thread mark at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78497 Mark Wielaard changed: What|Removed |Added CC||mark at gcc dot gnu.org --- Comment #6

[Bug preprocessor/78497] compiling with -save-temps adds -Wimplicit-fallthrough warnings

2017-10-24 Thread mark at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78497 --- Comment #7 from Mark Wielaard --- The workaround is to use gcc -C --save-temps ... to pass-through all comments to the temp files. Maybe -C should be the default with --save-temps?

[Bug debug/82718] New: Bad DWARF5 .debug_loclists generation

2017-10-25 Thread mark at gcc dot gnu.org
Assignee: unassigned at gcc dot gnu.org Reporter: mark at gcc dot gnu.org Target Milestone: --- Created attachment 42470 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=42470&action=edit reduced code example from elfutils libelf/elf_begin.c Given the attached e.c build

[Bug debug/82718] Bad DWARF5 .debug_loclists generation

2017-10-25 Thread mark at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82718 --- Comment #1 from Mark Wielaard --- Created attachment 42471 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=42471&action=edit preprocessed e.i

[Bug debug/82718] Bad DWARF5 .debug_loclists generation

2017-10-25 Thread mark at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82718 --- Comment #2 from Mark Wielaard --- Created attachment 42472 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=42472&action=edit generated assembler e.s assembler produced with gcc (GCC) 8.0.0 20171024 (experimental)

[Bug debug/82718] Bad DWARF5 .debug_loclists generation

2017-10-25 Thread mark at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82718 --- Comment #5 from Mark Wielaard --- (In reply to Jakub Jelinek from comment #4) > Created attachment 42474 [details] > gcc8-pr82718.patch > > Untested fix. Works for me. elfutils builds with this patch and gcc -O2 -gdwarf-5.

[Bug debug/82718] Bad DWARF5 .debug_loclists generation

2017-11-20 Thread mark at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82718 --- Comment #6 from Mark Wielaard --- Building elfutils with -g -O2 -gdwarf-5 still fails without this patch with current gcc trunk (just in a different file libdwfl/realloc.c instead of elf_begin.c as reported originally). Using the proposed pat

[Bug c/78304] New: -Wformat doesn't warn anymore for inttypes.h format string argument type mismatches

2016-11-10 Thread mark at gcc dot gnu.org
IRMED Severity: normal Priority: P3 Component: c Assignee: unassigned at gcc dot gnu.org Reporter: mark at gcc dot gnu.org Target Milestone: --- For this program: #include #include int main (int argc, char **argv) { size_t size = argc; printf ("size:

[Bug other/61460] Demangler crash (GDB PR 17043)

2016-11-19 Thread mark at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61460 Mark Wielaard changed: What|Removed |Added CC||mark at gcc dot gnu.org --- Comment #2

[Bug c++/70909] Libiberty Demangler segfaults (4)

2016-11-19 Thread mark at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70909 Mark Wielaard changed: What|Removed |Added CC||mark at gcc dot gnu.org --- Comment #7

[Bug c++/70909] Libiberty Demangler segfaults (4)

2016-11-19 Thread mark at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70909 --- Comment #9 from Mark Wielaard --- (In reply to Markus Trippelsdorf from comment #8) > This is what it should look like: [...] How did you demangle that input string? With the proposed patch the mangled string is rejected by the libiberty dem

[Bug c++/70909] Libiberty Demangler segfaults (4)

2016-11-19 Thread mark at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70909 --- Comment #11 from Mark Wielaard --- (In reply to Markus Trippelsdorf from comment #10) > The symbol was demangled with libcxxabi's demangler. > The other two demanglers reject it. Thanks. Do you know which demangler is correct for this input

[Bug debug/16063] Debuggers need more information about enum types in C++

2014-03-23 Thread mark at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=16063 --- Comment #6 from Mark Wielaard --- Posted a patch: http://gcc.gnu.org/ml/gcc-patches/2014-03/msg01198.html

[Bug debug/54774] insufficient debug info for strong typed enum

2014-03-24 Thread mark at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54774 Mark Wielaard changed: What|Removed |Added CC||mark at gcc dot gnu.org --- Comment #6

[Bug debug/28767] GCC should output DW_TAG_ptr_to_member for member functions

2014-03-26 Thread mark at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28767 --- Comment #5 from Mark Wielaard --- Some discussion of the patch in comment #4 can be found here: http://gcc.gnu.org/ml/gcc-patches/2011-05/threads.html#00225

[Bug debug/38757] gcc does not emit DW_LANG_C99

2014-04-01 Thread mark at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=38757 Mark Wielaard changed: What|Removed |Added CC||mark at gcc dot gnu.org --- Comment #4

[Bug debug/38757] gcc does not emit DW_LANG_C99

2014-04-01 Thread mark at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=38757 --- Comment #5 from Mark Wielaard --- Patch has been discussed on the patches list a couple of times in the past, but not yet applied: http://gcc.gnu.org/ml/gcc-patches/2009-03/msg00858.html http://gcc.gnu.org/ml/gcc-patches/2010-04/msg00991.html

[Bug debug/60885] typeless DW_TAG_typedef

2014-04-18 Thread mark at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60885 Mark Wielaard changed: What|Removed |Added CC||mark at gcc dot gnu.org --- Comment #1

[Bug debug/60885] typeless DW_TAG_typedef

2014-04-18 Thread mark at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60885 --- Comment #2 from Mark Wielaard --- I think this is caused by the following in add_type_attribute: if (code == ERROR_MARK /* Handle a special case. For functions whose return type is void, we generate *no* type attribute. (No

[Bug debug/60833] Inheritance via typedef skips the typedef

2014-04-24 Thread mark at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60833 --- Comment #1 from Mark Wielaard --- Confirmed with GNU C++ 4.10.0 20140417 (experimental). GCC doesn't emit the typedef for tbase because it is unused. It will emit the typedef for tbase when it is used for a variable like tbase y. But even then

[Bug debug/16063] Debuggers need more information about enum types in C++

2014-05-21 Thread mark at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=16063 --- Comment #7 from Mark Wielaard --- Author: mark Date: Wed May 21 15:44:59 2014 New Revision: 210717 URL: http://gcc.gnu.org/viewcvs?rev=210717&root=gcc&view=rev Log: PR debug/16063. Add DW_AT_type to DW_TAG_enumeration. Add a new lang-hook t

[Bug debug/38757] gcc does not emit DW_LANG_C99

2014-06-06 Thread mark at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=38757 --- Comment #6 from Mark Wielaard --- Current 4.9 rebased version of the patch is here: http://pkgs.fedoraproject.org/cgit/gcc.git/tree/gcc49-pr38757.patch

[Bug debug/59051] DW_tag_restrict_type not used

2014-06-20 Thread mark at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=59051 Mark Wielaard changed: What|Removed |Added Status|UNCONFIRMED |NEW Last reconfirmed|

[Bug debug/60782] DWARF does not represent _Atomic

2014-06-23 Thread mark at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=60782 Mark Wielaard changed: What|Removed |Added CC||mark at gcc dot gnu.org --- Comment #1

[Bug debug/56974] c++ ref qualifiers not represented in DWARF

2014-06-26 Thread mark at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=56974 --- Comment #3 from Mark Wielaard --- There is DWARFv5 proposal for this now: http://dwarfstd.org/ShowIssue.php?issue=131105.1 This adds DW_AT_reference[_qualifier] and DW_AT_rvalue_reference[_qualifier] as attributes to DW_TAG_subprogram or DW_T

[Bug debug/56563] no debuginfo for "explicit" operator

2014-02-19 Thread mark at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=56563 Mark Wielaard changed: What|Removed |Added CC||mark at gcc dot gnu.org --- Comment #1

[Bug debug/56563] no debuginfo for "explicit" operator

2014-02-19 Thread mark at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=56563 --- Comment #2 from Mark Wielaard --- Jakub proposed a patch: http://gcc.gnu.org/ml/gcc-patches/2014-02/msg01166.html

[Bug debug/56563] no debuginfo for "explicit" operator

2014-02-19 Thread mark at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=56563 Mark Wielaard changed: What|Removed |Added Status|UNCONFIRMED |RESOLVED Resolution|---

[Bug debug/43053] DWARF info adds bogus const to 'this' argument

2014-02-25 Thread mark at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43053 --- Comment #1 from Mark Wielaard --- Same inconsistency with current g++ (GCC) 4.9.0 20140219 (experimental)

[Bug debug/57369] type-less DW_TAG_const_type

2014-02-25 Thread mark at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=57369 Mark Wielaard changed: What|Removed |Added CC||mark at gcc dot gnu.org --- Comment #1

[Bug debug/56740] duplicat DW_TAG_const_type

2014-02-25 Thread mark at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=56740 Mark Wielaard changed: What|Removed |Added CC||mark at gcc dot gnu.org --- Comment #1

[Bug debug/55641] debug info for the type of a reference declared with a typedef has spurious 'const'

2014-02-25 Thread mark at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55641 Mark Wielaard changed: What|Removed |Added CC||mark at gcc dot gnu.org --- Comment #5

[Bug debug/55641] debug info for the type of a reference declared with a typedef has spurious 'const'

2014-02-25 Thread mark at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55641 --- Comment #6 from Mark Wielaard --- Note that if we add: const foo g(x); It comes out with just one const_type added: [60]variable name (string) "g" decl_file(data1) 1

[Bug c/67479] New: Support for -Wformat-pedantic

2015-09-07 Thread mark at gcc dot gnu.org
Assignee: unassigned at gcc dot gnu.org Reporter: mark at gcc dot gnu.org Target Milestone: --- Currently to get pedantic format warning, like for the usage of deprecated old 'Z', 'q', etc gnu_printf modifiers, you need to give both -Wpedantic and -Wformat. But this ena

[Bug middle-end/17308] nonnull attribute not as useful as it could

2015-09-11 Thread mark at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=17308 Mark Wielaard changed: What|Removed |Added CC||mark at gcc dot gnu.org --- Comment #11

[Bug c/28901] -Wunused-variable ignores unused const initialised variables

2015-09-11 Thread mark at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=28901 --- Comment #8 from Mark Wielaard --- Submitted a patch: https://gcc.gnu.org/ml/gcc-patches/2015-09/msg00847.html

[Bug c/28901] -Wunused-variable ignores unused const initialised variables

2015-09-14 Thread mark at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=28901 --- Comment #9 from Mark Wielaard --- Author: mark Date: Mon Sep 14 09:49:47 2015 New Revision: 227742 URL: https://gcc.gnu.org/viewcvs?rev=227742&root=gcc&view=rev Log: PR28901 -Wunused-variable ignores unused const initialised variables in C

[Bug c/65040] [5 Regression] gcc-5 -Wformat broken

2015-02-12 Thread mark at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65040 Mark Wielaard changed: What|Removed |Added CC||mark at gcc dot gnu.org --- Comment #5

[Bug debug/63239] DWARF does not represent C++ deleted methods

2014-11-21 Thread mark at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63239 --- Comment #6 from Mark Wielaard --- It looks like for some reason Darwin defaults to some ancient (v2) strict version of DWARF. Please try adding -gno-strict-dwarf -gdwarf-4 to gcc/testsuite/g++.dg/debug/dwarf2/deleted-member-function.C dg-opti

[Bug debug/38757] gcc does not emit DW_LANG_C99

2014-11-21 Thread mark at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=38757 --- Comment #7 from Mark Wielaard --- Author: mark Date: Fri Nov 21 16:00:06 2014 New Revision: 217934 URL: https://gcc.gnu.org/viewcvs?rev=217934&root=gcc&view=rev Log: PR debug/38757 gcc does not emit DW_LANG_C99. For C and C++ add the langua

[Bug debug/38757] gcc does not emit DW_LANG_C99

2014-11-26 Thread mark at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=38757 --- Comment #8 from Mark Wielaard --- Author: mark Date: Wed Nov 26 11:05:20 2014 New Revision: 218077 URL: https://gcc.gnu.org/viewcvs?rev=218077&root=gcc&view=rev Log: PR debug/38757 continued. Handle C11, C++11 and C++14. Add experimental (m

[Bug debug/38757] gcc does not emit DW_LANG_C99

2014-11-26 Thread mark at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=38757 Mark Wielaard changed: What|Removed |Added Status|ASSIGNED|RESOLVED Resolution|---

[Bug debug/60782] DWARF does not represent _Atomic

2014-12-08 Thread mark at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=60782 --- Comment #3 from Mark Wielaard --- Author: mark Date: Mon Dec 8 22:32:23 2014 New Revision: 218496 URL: https://gcc.gnu.org/viewcvs?rev=218496&root=gcc&view=rev Log: DWARFv5 Emit DW_TAG_atomic_type for C11 _Atomic. This implements the DW_TA

[Bug debug/59051] DW_tag_restrict_type not used

2014-08-19 Thread mark at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=59051 --- Comment #2 from Mark Wielaard --- Author: mark Date: Tue Aug 19 11:50:55 2014 New Revision: 214143 URL: https://gcc.gnu.org/viewcvs?rev=214143&root=gcc&view=rev Log: Emit DW_tag_restrict_type for restrict-qualified pointers. gcc/ChangeLog

[Bug lto/62190] New: LTO DWARF produces __unknown__ type for unsigned int function argument type

2014-08-19 Thread mark at gcc dot gnu.org
: normal Priority: P3 Component: lto Assignee: unassigned at gcc dot gnu.org Reporter: mark at gcc dot gnu.org Take the following program: /* LTO sometimes outputs __unknown__ for an unsigned int argument type. */ /* { dg-do run } */ /* { dg-options "-g

[Bug debug/16063] Debuggers need more information about enum types in C++

2014-09-12 Thread mark at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=16063 Mark Wielaard changed: What|Removed |Added Status|NEW |RESOLVED Resolution|---

[Bug debug/63300] 'const volatile' sometimes stripped in debug info

2014-09-19 Thread mark at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63300 --- Comment #2 from Mark Wielaard --- Sorry about that. I added an explicit testcases (gcc/testsuite/gcc.dg/guality/const-volatile.c and gcc/testsuite/gcc.dg/guality/restrict.c) explicitly to catch such issue. But apparently they didn't trigger t

[Bug debug/63300] 'const volatile' sometimes stripped in debug info

2014-09-22 Thread mark at gcc dot gnu.org
at gcc dot gnu.org |mark at gcc dot gnu.org --- Comment #3 from Mark Wielaard --- Proposed fix: https://gcc.gnu.org/ml/gcc-patches/2014-09/msg01723.html

[Bug debug/63239] DWARF does not represent C++ deleted methods

2014-10-05 Thread mark at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63239 --- Comment #2 from Mark Wielaard --- Author: mark Date: Sun Oct 5 15:25:03 2014 New Revision: 215901 URL: https://gcc.gnu.org/viewcvs?rev=215901&root=gcc&view=rev Log: PR debug/63239 Add DWARF representation for C++11 deleted member function.

[Bug debug/63243] [meta-bug] RH GDB project tracker

2014-10-05 Thread mark at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63243 Bug 63243 depends on bug 63239, which changed state. Bug 63239 Summary: DWARF does not represent C++ deleted methods https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63239 What|Removed |Added ---

[Bug debug/63239] DWARF does not represent C++ deleted methods

2014-10-05 Thread mark at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63239 Mark Wielaard changed: What|Removed |Added Status|UNCONFIRMED |RESOLVED Resolution|---

[Bug c/28901] -Wunused-variable ignores unused const initialised variables

2015-11-30 Thread mark at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=28901 --- Comment #15 from Mark Wielaard --- (In reply to Andi Kleen from comment #14) > I'm building a current Linux kernel with allyesconfig, and this new warning > causes > 1383(!) new warnings in the build. > > I think this should be revisited and

[Bug middle-end/69454] New: ix86_expand_prologue internal compiler error: Segmentation fault

2016-01-24 Thread mark at gcc dot gnu.org
Priority: P3 Component: middle-end Assignee: unassigned at gcc dot gnu.org Reporter: mark at gcc dot gnu.org Target Milestone: --- $ gcc --version gcc (GCC) 6.0.0 20160123 (experimental) svn co svn://svn.valgrind.org/valgrind/trunk valgrind cd valgrind

[Bug target/68986] [5/6 Regression] internal compiler error: Segmentation fault

2016-01-24 Thread mark at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68986 --- Comment #5 from Mark Wielaard --- Thanks for finding the duplicate and creating a small reproducer. This is indeed a GCC 6 regression. valgrind builds fine with gcc (GCC) 5.3.1 20151207 (Red Hat 5.3.1-2) but fails with gcc (GCC) 6.0.0 2016012

[Bug c/28901] -Wunused-variable ignores unused const initialised variables

2016-01-26 Thread mark at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=28901 --- Comment #21 from Mark Wielaard --- Sorry, I forgot about this bug still being open. It isn't clear to me whether the issues seen in the kernel sources are a) just legitimate and should be fixed (like comment #16 seem to imply) b) thousand

[Bug rtl-optimization/47866] [4.5/4.6 Regression] gcc.dg/torture/vector-2.c fails on IA64

2011-03-08 Thread mark at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47866 Mark Wielaard changed: What|Removed |Added CC|mark at gcc dot gnu.org |mark at codesourcery dot

[Bug debug/48041] New: dwarf2out emits unnecessary null byte in empty .debug_abbrev section

2011-03-09 Thread mark at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48041 Summary: dwarf2out emits unnecessary null byte in empty .debug_abbrev section Product: gcc Version: unknown Status: UNCONFIRMED Severity: normal Priority: P3

[Bug debug/48045] New: dwarf2out emits CU with DW_AT_stmt_list to empty line table

2011-03-09 Thread mark at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48045 Summary: dwarf2out emits CU with DW_AT_stmt_list to empty line table Product: gcc Version: unknown Status: UNCONFIRMED Severity: normal Priority: P3 Compo

[Bug debug/48045] dwarf2out emits CU with DW_AT_stmt_list to empty line table

2011-03-09 Thread mark at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48045 --- Comment #1 from Mark Wielaard 2011-03-09 23:04:09 UTC --- The previous patch is wrong, it should depend on either a .loc or a .line output. I had misunderstood when the DW_AT_stmt_list was really necessary. Also there was some debate on wheth

[Bug debug/48041] dwarf2out emits unnecessary null byte in empty .debug_abbrev section

2011-03-25 Thread mark at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48041 --- Comment #1 from Mark Wielaard 2011-03-25 09:35:44 UTC --- Author: mark Date: Fri Mar 25 09:35:41 2011 New Revision: 171441 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=171441 Log: PR debug/48041 * dwarf2out.c (output_abbrev_section)

[Bug debug/48041] dwarf2out emits unnecessary null byte in empty .debug_abbrev section

2011-03-28 Thread mark at gcc dot gnu.org
||FIXED AssignedTo|unassigned at gcc dot |mark at gcc dot gnu.org |gnu.org | --- Comment #2 from Mark Wielaard 2011-03-28 09:10:09 UTC --- Patch committed.

[Bug debug/42288] please emit empty .debug_aranges section

2011-04-21 Thread mark at gcc dot gnu.org
||mark at gcc dot gnu.org --- Comment #7 from Mark Wielaard 2011-04-21 15:33:09 UTC --- We discussed this a bit on the elfutils list WRT the dwarflint checks we have. And the consensus seems to be that it is more convenient to actually have an .aranges entry for each CU. https

[Bug debug/63238] DWARF does not represent _Alignas

2016-08-23 Thread mark at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63238 Mark Wielaard changed: What|Removed |Added CC||mark at gcc dot gnu.org --- Comment #1

[Bug web/98875] DWARF5 as default causes perf probe to hang

2021-03-02 Thread mark at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98875 Mark Wielaard changed: What|Removed |Added Resolution|--- |FIXED Status|ASSIGNED

[Bug debug/99490] -gdwarf-5 -gsplit-dwarf puts .debug_rnglists to main file, not .dwo file

2021-03-10 Thread mark at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99490 --- Comment #5 from Mark Wielaard --- I don't believe it is a requirement to generate a separate .debug_rnglists.dwo section, the spec says the same data can be provided in the .debug_rnglists section and gdb and elfutils handle that just fine fo

[Bug target/99488] dwz: /usr/lib/gcc/mips64el-linux-gnuabi64/11/go1: Found two copies of .debug_line_str section

2021-03-11 Thread mark at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99488 --- Comment #3 from Mark Wielaard --- So gcc/dwarf2out.c creates it as: #define DEBUG_STR_SECTION_FLAGS \ (HAVE_GAS_SHF_MERGE && flag_merge_debug_strings \ ? SECTION_DEBUG | SECTION_MERGE | SECT

[Bug target/99488] dwz: /usr/lib/gcc/mips64el-linux-gnuabi64/11/go1: Found two copies of .debug_line_str section

2021-03-15 Thread mark at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99488 --- Comment #8 from Mark Wielaard --- On Mon, 2021-03-15 at 12:21 +, jakub at gcc dot gnu.org wrote: > --- Comment #7 from Jakub Jelinek --- > [43] .debug_line_str MIPS_DWARF ecf07bf 0066e6 01 > MS > 0 0 1 >

[Bug debug/92442] Compiling Boost.Spirit.X3 code uses exuberant amount of RAM with -gpubnames

2021-03-16 Thread mark at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92442 Mark Wielaard changed: What|Removed |Added CC||tromey at gcc dot gnu.org --- Comment #1

[Bug bootstrap/97355] [11 Regression] Bootstrap comparison failure!

2020-10-15 Thread mark at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97355 --- Comment #11 from Mark Wielaard --- I don't understand why the .debug sections are compared in this case. But if they are then the diff comes from this gas issue: https://sourceware.org/bugzilla/show_bug.cgi?id=26740 Even though unused gas -

[Bug bootstrap/97355] [11 Regression] Bootstrap comparison failure!

2020-10-16 Thread mark at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97355 --- Comment #15 from Mark Wielaard --- (In reply to Jakub Jelinek from comment #14) > In any case, the change to use -gdwarf-* by default even when not compiling > just assembly was based on the assumption that gas would in that case pretty > muc

[Bug ada/97541] Ada failed to bootstrap: Error: file table slot 1 is already occupied by a different file

2020-10-23 Thread mark at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97541 --- Comment #5 from Mark Wielaard --- (In reply to Jakub Jelinek from comment #4) > # 82 "s-atocou.adb" 1 > isn't a .file assignment though. > As I said earlier, if we don't want to revert the r11-3693 change and be > able to specify -gdwarf-5 et

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

2020-09-29 Thread mark at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95188 --- Comment #4 from Mark Wielaard --- Note that I can replicate it with the instructions in the description and gcc git: gcc (GCC) 11.0.0 20200916 (experimental) $ /opt/local/install/gcc/bin/gcc -g -O2 -fanalyzer -c bzip2.c 2>&1 | head -25 bzip2

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

2020-09-29 Thread mark at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95188 --- Comment #6 from Mark Wielaard --- Created attachment 49291 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=49291&action=edit Output for gcc -Wanalyzer-too-complex -g -O2 -fanalyzer -c bzip2.c (In reply to David Malcolm from comment #5)

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

2020-09-30 Thread mark at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95188 --- Comment #10 from Mark Wielaard --- Created attachment 49293 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=49293&action=edit supergraph > Mark: please can you add -fdump-analyzer-supergraph to the arguments and > attach > the bzip2.c.

<    1   2   3   4   >