[Bug debug/83935] DWARF for a variant part is incorrect

2020-03-12 Thread tromey at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83935 Tom Tromey changed: What|Removed |Added Status|ASSIGNED|RESOLVED Resolution|---

[Bug c/95379] Don't warn about the universal zero initializer for a structure with the 'designated_init' attribute.

2020-05-28 Thread tromey at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95379 Tom Tromey changed: What|Removed |Added CC||tromey at gcc dot gnu.org --- Comment #5

[Bug c/95379] Don't warn about the universal zero initializer for a structure with the 'designated_init' attribute.

2020-05-28 Thread tromey at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95379 --- Comment #7 from Tom Tromey --- (In reply to Asher Gordon from comment #6) > (In reply to Tom Tromey from comment #5) > > Since this warning is intended to work like sparse, introducing > > a divergence here would seem to make the feature less

[Bug fortran/95509] [11 regression] gfortran.dg/spellcheck-operator.f90 fails after r11-875

2020-06-04 Thread tromey at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95509 Tom Tromey changed: What|Removed |Added Assignee|unassigned at gcc dot gnu.org |tromey at gcc dot gnu.org

[Bug fortran/95509] [11 regression] gfortran.dg/spellcheck-operator.f90 fails after r11-875

2020-06-05 Thread tromey at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95509 --- Comment #3 from Tom Tromey --- https://gcc.gnu.org/pipermail/gcc-patches/2020-June/547388.html

[Bug fortran/95509] [11 regression] gfortran.dg/spellcheck-operator.f90 fails after r11-875

2020-06-05 Thread tromey at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95509 Tom Tromey changed: What|Removed |Added Resolution|--- |FIXED Status|NEW

[Bug c/57612] add builtin to assert that expression does not have side effects

2020-01-17 Thread tromey at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=57612 --- Comment #4 from Tom Tromey --- (In reply to H. Peter Anvin from comment #2) > I would like to second this request, however, I would like to request that > it issues a warning rather than an error. It can always be promoted to an > error via

[Bug c++/93458] New: ICE using coroutines

2020-01-27 Thread tromey at gcc dot gnu.org
: unassigned at gcc dot gnu.org Reporter: tromey at gcc dot gnu.org Target Milestone: --- I'm using git master gcc from today. I tried a simple coroutine program: int func(int *x) { for (int i = 0; i < 23; ++i) co_yield x[i]; } Compiling causes gcc to ICE: murgatroyd. .

[Bug c++/93458] ICE using coroutines

2020-01-27 Thread tromey at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93458 Tom Tromey changed: What|Removed |Added Keywords||ice-on-invalid-code --- Comment #1 from Tom

[Bug c/93472] New: Document extended forms of constant expression

2020-01-27 Thread tromey at gcc dot gnu.org
: c Assignee: unassigned at gcc dot gnu.org Reporter: tromey at gcc dot gnu.org Target Milestone: --- GCC accepts extended forms of constant expression. An example that came up recently was: const int a = 5; const int b = a; IIUC the standard permits the compiler to accept

[Bug c++/93458] ICE using coroutines

2020-01-28 Thread tromey at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93458 --- Comment #4 from Tom Tromey --- > BTW, did you include ? > > (FAOD: it would still be broken if you did, but ISTM we might at some point > add a hint that if the traits can't be found, you probably forgot that). The code was exactly as writ

[Bug debug/93988] New: invalid DWARF emitted for complex integer

2020-03-01 Thread tromey at gcc dot gnu.org
: debug Assignee: unassigned at gcc dot gnu.org Reporter: tromey at gcc dot gnu.org Target Milestone: --- Consider this test case: _Complex int x = 23i; Compile with -g and examine the resulting DWARF: <1><31>: Abbrev Number: 3 (DW_TAG_base_type) <32>

[Bug debug/93988] invalid DWARF emitted for complex integer

2020-03-02 Thread tromey at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93988 --- Comment #2 from Tom Tromey --- (In reply to Richard Biener from comment #1) > I wonder if there is (or should be) sth like DW_ATE_unsupported ... using > DW_ATE_lo_user is indeed unfortunate but not wrong per-se. Adding > a DW_ATE_GNU_comple

[Bug debug/56376] New: gdb needs a way to associate a vtable symbol with a class type

2013-02-18 Thread tromey at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=56376 Bug #: 56376 Summary: gdb needs a way to associate a vtable symbol with a class type Classification: Unclassified Product: gcc Version: unknown Status: UNCO

[Bug debug/37237] Debug information for virtual destructors omits DW_AT_vtable_elem_location

2013-02-18 Thread tromey at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=37237 --- Comment #11 from Tom Tromey 2013-02-18 15:20:56 UTC --- (In reply to comment #10) > I don't think such an attribute belongs in the DWARF standard, since this is > very much an internal detail of the ABI; another ABI might have just a s

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

2013-03-07 Thread tromey at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=56563 Bug #: 56563 Summary: no debuginfo for "explicit" operator Classification: Unclassified Product: gcc Version: unknown Status: UNCONFIRMED Severity: normal

[Bug c++/56723] New: wrong location in error message

2013-03-25 Thread tromey at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=56723 Bug #: 56723 Summary: wrong location in error message Classification: Unclassified Product: gcc Version: unknown Status: UNCONFIRMED Severity: normal Priority: P3

[Bug c/56724] New: sub-optimal location in error

2013-03-25 Thread tromey at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=56724 Bug #: 56724 Summary: sub-optimal location in error Classification: Unclassified Product: gcc Version: unknown Status: UNCONFIRMED Severity: normal Priority: P3

[Bug c++/56725] New: extra spaces in error message

2013-03-25 Thread tromey at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=56725 Bug #: 56725 Summary: extra spaces in error message Classification: Unclassified Product: gcc Version: unknown Status: UNCONFIRMED Severity: normal Priority: P3

[Bug c/56724] sub-optimal location in error

2013-03-25 Thread tromey at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=56724 --- Comment #1 from Tom Tromey 2013-03-25 18:44:37 UTC --- This affects g++ as well.

[Bug c/56724] sub-optimal location in error

2013-03-25 Thread tromey at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=56724 --- Comment #3 from Tom Tromey 2013-03-25 18:46:47 UTC --- (In reply to comment #2) > Though it does say the 3rd argument though. Sure, it is just nicer if the compiler counts commas instead of me doing it.

[Bug debug/56740] New: duplicat DW_TAG_const_type

2013-03-26 Thread tromey at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=56740 Bug #: 56740 Summary: duplicat DW_TAG_const_type Classification: Unclassified Product: gcc Version: unknown Status: UNCONFIRMED Severity: normal Priority:

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

2013-04-15 Thread tromey at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=56974 Bug #: 56974 Summary: c++ ref qualifiers not represented in DWARF Classification: Unclassified Product: gcc Version: unknown Status: UNCONFIRMED Severity: normal

[Bug c/56989] New: wrong location in error message

2013-04-17 Thread tromey at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=56989 Bug #: 56989 Summary: wrong location in error message Classification: Unclassified Product: gcc Version: unknown Status: UNCONFIRMED Severity: normal Priority: P3

[Bug debug/57006] New: extend DWARF to indicate types coming from template parameters

2013-04-19 Thread tromey at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=57006 Bug #: 57006 Summary: extend DWARF to indicate types coming from template parameters Classification: Unclassified Product: gcc Version: unknown Status: UNCO

[Bug debug/54205] New: recursive .debug_macro inclusions

2012-08-08 Thread tromey at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54205 Bug #: 54205 Summary: recursive .debug_macro inclusions Classification: Unclassified Product: gcc Version: 4.8.0 Status: UNCONFIRMED Severity: normal Priority: P3

[Bug debug/13111] g++ debuginfo incorrect for verify.cc

2012-08-22 Thread tromey at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13111 Tom Tromey changed: What|Removed |Added Status|NEW |RESOLVED Resolution|

[Bug debug/54410] New: doubled DW_TAG_template_type_param

2012-08-29 Thread tromey at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54410 Bug #: 54410 Summary: doubled DW_TAG_template_type_param Classification: Unclassified Product: gcc Version: 4.8.0 Status: UNCONFIRMED Severity: normal Priority: P3

[Bug c/54979] New: no warning for useless comparison

2012-10-18 Thread tromey at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54979 Bug #: 54979 Summary: no warning for useless comparison Classification: Unclassified Product: gcc Version: 4.8.0 Status: UNCONFIRMED Severity: enhancement

[Bug debug/55059] New: DWARF missing concrete class definition

2012-10-24 Thread tromey at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55059 Bug #: 55059 Summary: DWARF missing concrete class definition Classification: Unclassified Product: gcc Version: unknown Status: UNCONFIRMED Severity: normal

[Bug other/50899] need @direntry for gcov

2012-10-31 Thread tromey at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50899 --- Comment #1 from Tom Tromey 2012-10-31 14:55:29 UTC --- Author: tromey Date: Wed Oct 31 14:55:20 2012 New Revision: 193036 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=193036 Log: PR other/50899 * doc/gcc.texi: Ad

[Bug other/50899] need @direntry for gcov

2012-10-31 Thread tromey at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50899 Tom Tromey changed: What|Removed |Added Status|UNCONFIRMED |RESOLVED Resolution|

[Bug debug/57369] New: type-less DW_TAG_const_type

2013-05-22 Thread tromey at gcc dot gnu.org
Assignee: unassigned at gcc dot gnu.org Reporter: tromey at gcc dot gnu.org Created attachment 30161 --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=30161&action=edit test case I compiled the attached program with "g++ -g". I used git g

[Bug debug/57487] New: vterminate.cc local variable optimized out

2013-05-31 Thread tromey at gcc dot gnu.org
: debug Assignee: unassigned at gcc dot gnu.org Reporter: tromey at gcc dot gnu.org I built git master gcc today (317121db1372a50999ab1cba75aa59df0f2eff7c) using the default arguments on my x86-64 Fedora 18 machine. Then I compiled this program with the new g++ and ran it in gdb

[Bug c/57612] New: add builtin to assert that expression does not have side effects

2013-06-14 Thread tromey at gcc dot gnu.org
Priority: P3 Component: c Assignee: unassigned at gcc dot gnu.org Reporter: tromey at gcc dot gnu.org It would sometimes be useful to be able to assert that an expression does not have side effects. For example, this would be very nice to have for macros which

[Bug bootstrap/58476] New: bootstrap failure with Go enabled

2013-09-19 Thread tromey at gcc dot gnu.org
Assignee: unassigned at gcc dot gnu.org Reporter: tromey at gcc dot gnu.org I'm using a recent (yesterda) gcc trunk from git. I have no local patches applied. I'm building a native gcc on x86-64 Fedora 18. I configured with: barimba. ./config.status --version con

[Bug bootstrap/58476] bootstrap failure with Go enabled

2013-09-20 Thread tromey at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58476 --- Comment #2 from Tom Tromey --- The problem occurs because I use --disable-static. If I remove this, the bootstrap completes. I am not sure whether or not this is a supported configuration.

[Bug other/50899] New: need @direntry for gcov

2011-10-28 Thread tromey at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50899 Bug #: 50899 Summary: need @direntry for gcov Classification: Unclassified Product: gcc Version: unknown Status: UNCONFIRMED Severity: normal Priority: P3 Co

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

2012-06-29 Thread tromey at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=16063 Tom Tromey changed: What|Removed |Added CC||tromey at gcc dot gnu.org --- Comment #5

[Bug debug/53927] New: wrong value for DW_AT_static_link

2012-07-11 Thread tromey at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53927 Bug #: 53927 Summary: wrong value for DW_AT_static_link Classification: Unclassified Product: gcc Version: 4.6.3 Status: UNCONFIRMED Severity: normal Priority: P3

[Bug debug/37237] Debug information for virtual destructors omits DW_AT_vtable_elem_location

2012-07-12 Thread tromey at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=37237 --- Comment #8 from Tom Tromey 2012-07-12 18:34:08 UTC --- I'd like to ping this again. I've been working on adding support for new and delete to gdb. The missing debuginfo here is a barrier to this. I think gdb would generally like to call the

[Bug debug/37237] Debug information for virtual destructors omits DW_AT_vtable_elem_location

2012-07-13 Thread tromey at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=37237 --- Comment #9 from Tom Tromey 2012-07-13 17:14:38 UTC --- Likewise there isn't a super way to find out which constructor is in-charge. The only way I could come up with is to look at the linkage name; but this requires excessive knowledge of th

[Bug libstdc++/53477] pretty printer fails with: Python Exception list index out of range

2012-07-13 Thread tromey at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53477 Tom Tromey changed: What|Removed |Added Target Milestone|--- |3.1.x/3.2.x --- Comment #1 from Tom Tromey

[Bug libstdc++/53006] libstdc++-prettyprinters/shared_ptr.cc FAILs

2012-04-16 Thread tromey at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53006 --- Comment #2 from Tom Tromey 2012-04-16 18:01:17 UTC --- (In reply to comment #0) > match = self.compiled_rx.match(typename) > print type(typename) > This is very odd. The code in context: typename = self.get_basic_type(va

[Bug bootstrap/58572] [4.9 regression] make bootstrap-lean leads to installation failure (doing extra rebuilds and invoking system compiler)

2013-10-21 Thread tromey at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58572 Tom Tromey changed: What|Removed |Added CC||tromey at gcc dot gnu.org --- Comment #3

[Bug libstdc++/59075] python pretty printer does not work at OS X

2013-11-11 Thread tromey at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59075 --- Comment #2 from Tom Tromey --- (In reply to Jonathan Wakely from comment #1) > Tom, do you know why this would be true on OS X? Offhand I do not know. I think there are a few things that could help us find out, though. One would be to see t

[Bug debug/37237] Debug information for virtual destructors omits DW_AT_vtable_elem_location

2013-11-14 Thread tromey at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=37237 --- Comment #13 from Tom Tromey --- I was debugging this today: https://sourceware.org/bugzilla/show_bug.cgi?id=15975 ... and ran across this PR again. GCC is still emitting a virtual destructor with no indication of its vtable element location:

[Bug bootstrap/58666] make install after make bootstrap-lean fails starting with r202895

2013-11-15 Thread tromey at gcc dot gnu.org
||tromey at gcc dot gnu.org Resolution|--- |DUPLICATE --- Comment #2 from Tom Tromey --- Dup. *** This bug has been marked as a duplicate of bug 58572 ***

[Bug bootstrap/58572] [4.9 regression] make bootstrap-lean leads to installation failure (doing extra rebuilds and invoking system compiler)

2013-11-15 Thread tromey at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58572 Tom Tromey changed: What|Removed |Added CC||krebbel at gcc dot gnu.org --- Comment #5 fr

[Bug bootstrap/58572] [4.9 regression] make bootstrap-lean leads to installation failure (doing extra rebuilds and invoking system compiler)

2013-11-15 Thread tromey at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58572 Tom Tromey changed: What|Removed |Added Assignee|unassigned at gcc dot gnu.org |tromey at gcc dot gnu.org

[Bug c/59304] New: #pragma diagnostic pop fails with -Wswitch-enum

2013-11-26 Thread tromey at gcc dot gnu.org
: c Assignee: unassigned at gcc dot gnu.org Reporter: tromey at gcc dot gnu.org Consider this program: enum EE { ONE, TWO, THREE }; int f (enum EE e) { int r = 0; #pragma GCC diagnostic push #pragma GCC diagnostic error "-Wswitch-enum" switch (e) {

[Bug debug/59319] New: gcc does not emit DW_AT_friend or DW_TAG_friend

2013-11-27 Thread tromey at gcc dot gnu.org
: debug Assignee: unassigned at gcc dot gnu.org Reporter: tromey at gcc dot gnu.org I couldn't find a way to make GCC emit DW_TAG_friend or DW_AT_friend. A quick grep through dwarf2out.c seems to confirm this. I think these are needed for gdb to properly implement ADL, tho

[Bug preprocessor/49973] Column numbers count special characters as multiple columns

2011-12-07 Thread tromey at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49973 Tom Tromey changed: What|Removed |Added CC||tromey at gcc dot gnu.org

[Bug libstdc++/51649] pretty printers don't handle std::__7:: namespace

2011-12-21 Thread tromey at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51649 --- Comment #4 from Tom Tromey 2011-12-21 18:34:47 UTC --- (In reply to comment #3) > Tom, I assume the plan for the libstdc++ python printers is to have a > python/libstdcxx/v7/printers.py for the libstdc++.so.7 library, right? > > As we have t

[Bug java/21855] array bounds checking elimination

2012-01-10 Thread tromey at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21855 --- Comment #23 from Tom Tromey 2012-01-10 17:17:50 UTC --- I thought I wrote a pass to do this optimization, but I can't find it now. Anyway I think that would be the simplest approach by far.

[Bug java/21855] array bounds checking elimination

2012-01-10 Thread tromey at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21855 --- Comment #24 from Tom Tromey 2012-01-10 17:21:02 UTC --- I found my code and it turns out I never finished it. (I did write a java-specific devirtualization pass.) Here is an introductory comment that explains my plans: /* This pass implement

[Bug libstdc++/51649] pretty printers don't handle std::__7:: namespace

2012-01-19 Thread tromey at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51649 --- Comment #7 from Tom Tromey 2012-01-19 21:59:07 UTC --- Based on my first build of a --enable-symvers=gnu-versioned-namespace compiler, I am thinking that just updating the regexps is ok. There's no particular need to introduce the full v7 pyt

[Bug c++/45690] broken debuginfo with dwarf4?

2012-01-20 Thread tromey at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45690 --- Comment #7 from Tom Tromey 2012-01-20 14:59:51 UTC --- gdb doesn't read .debug_pubtypes. So the problem must be something else.

[Bug libstdc++/51649] pretty printers don't handle std::__7:: namespace

2012-01-20 Thread tromey at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51649 Tom Tromey changed: What|Removed |Added AssignedTo|unassigned at gcc dot |tromey at redhat dot com |

[Bug libstdc++/51649] pretty printers don't handle std::__7:: namespace

2012-01-30 Thread tromey at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51649 --- Comment #9 from Tom Tromey 2012-01-30 16:25:25 UTC --- Author: tromey Date: Mon Jan 30 16:25:11 2012 New Revision: 183732 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=183732 Log: PR libstdc++/51649: * testsuite/libstdc++-pre

[Bug c++/88520] New: improve warning when `struct` is required

2018-12-16 Thread tromey at gcc dot gnu.org
++ Assignee: unassigned at gcc dot gnu.org Reporter: tromey at gcc dot gnu.org Target Milestone: --- Consider this source: int Foo; struct Foo { int a; }; extern int f(Foo x); gcc (I'm using 8.2.1 from Fedora 28) says: q.cc:8:14: warning: ‘f’ initialized and dec

[Bug c/64862] printf attribute should accept other string types

2019-01-11 Thread tromey at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64862 --- Comment #8 from Tom Tromey --- Sorry about the extreme delay on this. I think my patch has long since bit-rotted, but I can attach it for reference. I believe my assignment situation got sorted out so this should be fine to read and/or copy

[Bug c/64862] printf attribute should accept other string types

2019-01-11 Thread tromey at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64862 --- Comment #9 from Tom Tromey --- Created attachment 45413 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=45413&action=edit ancient patch

[Bug c/64862] printf attribute should accept other string types

2019-01-11 Thread tromey at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64862 --- Comment #10 from Tom Tromey --- Also I think all the test suite changes never really worked.

[Bug c++/80635] std::optional and bogus -Wmaybe-uninitialized warning

2019-01-15 Thread tromey at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80635 --- Comment #14 from Tom Tromey --- (In reply to Jonathan Wakely from comment #8) > Something like __builtin_unreachable() to say "trust me" would be nice, but > I can't think how to do it. How about an attribute that can be attached to the memb

[Bug jit/91330] New: JIT "dir" entry for info is incomplete

2019-08-02 Thread tromey at gcc dot gnu.org
onent: jit Assignee: dmalcolm at gcc dot gnu.org Reporter: tromey at gcc dot gnu.org Target Milestone: --- Looking at the "dir" entry for the JIT, I see: murgatroyd. grep jit install/share/info/dir * libgccjit: (libgccjit.info). One line description of project. I

[Bug jit/91330] JIT "dir" entry for info is incomplete

2019-08-07 Thread tromey at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91330 --- Comment #1 from Tom Tromey --- This is pretty easy to fix in gcc/jit/docs/conf.py: diff --git a/gcc/jit/docs/conf.py b/gcc/jit/docs/conf.py index 3e630db47ef..1224bdcc07d 100644 --- a/gcc/jit/docs/conf.py +++ b/gcc/jit/docs/conf.py @@ -244,7

[Bug debug/91411] New: Extraneous size & location attributes for members in DWARF

2019-08-09 Thread tromey at gcc dot gnu.org
rmal Priority: P3 Component: debug Assignee: unassigned at gcc dot gnu.org Reporter: tromey at gcc dot gnu.org Target Milestone: --- Consider this test case: struct x { int a : 5; int b : 2; }; struct x x; Compile with -g -c and then examine the DWARF. For x::

[Bug other/61257] configure should check if sys/sdt.h is usable, not just checking the existance of the header

2019-08-12 Thread tromey at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61257 --- Comment #6 from Tom Tromey --- (In reply to Eric Gallager from comment #4) > (In reply to Sergei Trofimovich from comment #3) > > (In reply to Sergei Trofimovich from comment #2) > > > Having explicit flags like --enable-systemtap / --disable

[Bug ada/83935] New: DWARF for a variant part is incorrect

2018-01-18 Thread tromey at gcc dot gnu.org
Assignee: unassigned at gcc dot gnu.org Reporter: tromey at gcc dot gnu.org Target Milestone: --- Joel Brobecker sent me an Ada test case so that I could see a real-life example of the use of DW_TAG_variant_part (in support of some Rust stuff I'm doing elsewhere). For this

[Bug debug/83935] DWARF for a variant part is incorrect

2018-01-22 Thread tromey at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83935 --- Comment #3 from Tom Tromey --- (In reply to Pierre-Marie de Rodat from comment #2) > Thinking more about it, the rule that the discriminant entry must be a child > of the variant part entry sounds suspicious to me. TBH this did not make sens

[Bug c++/89818] New: possibly invalid name mangling

2019-03-25 Thread tromey at gcc dot gnu.org
++ Assignee: unassigned at gcc dot gnu.org Reporter: tromey at gcc dot gnu.org Target Milestone: --- Apologies for the vagueness of this bug. I ran across a pull request that mentions that gcc will sometimes emit an erroneous 'sr' mangling: https://github.com/gimli-rs/cpp_dem

[Bug c++/89854] New: diagnostic differences between misuse of "." and "->"

2019-03-27 Thread tromey at gcc dot gnu.org
Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: tromey at gcc dot gnu.org Target Milestone: --- I'm using the system gcc on Fedora 29: gcc (GCC) 8.2.1 20180801 (Red Hat 8.2.1-2) Consider this source: struct s { int f; }; int x

[Bug debug/83935] DWARF for a variant part is incorrect

2019-05-01 Thread tromey at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83935 --- Comment #10 from Tom Tromey --- I have been looking at this again recently, for Ada, and now I think perhaps the approach that GCC takes should be preferred. At first I was thinking maybe the compiler could linearize the members of the emitt

[Bug tree-optimization/90427] New: missing "sign flipping" optimization

2019-05-10 Thread tromey at gcc dot gnu.org
nent: tree-optimization Assignee: unassigned at gcc dot gnu.org Reporter: tromey at gcc dot gnu.org Target Milestone: --- This test case comes from this blog post: https://nfrechette.github.io/2019/05/08/sign_flip_optimization/ (which also says that clang 8 performs this op

[Bug c++/90526] New: Missing DW_AT_const_value for constexpr field

2019-05-17 Thread tromey at gcc dot gnu.org
: c++ Assignee: unassigned at gcc dot gnu.org Reporter: tromey at gcc dot gnu.org Target Milestone: --- This test case comes from https://sourceware.org/bugzilla/show_bug.cgi?id=20020 Consider: template struct foo { static constexpr bool is_always_lock_free = true; }; int

[Bug jit/87002] New: allow integers larger than "long"

2018-08-17 Thread tromey at gcc dot gnu.org
onent: jit Assignee: dmalcolm at gcc dot gnu.org Reporter: tromey at gcc dot gnu.org Target Milestone: --- gcc-jit has gcc_jit_context_new_rvalue_from_int and gcc_jit_context_new_rvalue_from_long, but on some platforms long might be 32 bits, but a program could still use int64_t or lon

[Bug jit/87003] New: use nonnull attribute in libgccjit.h

2018-08-17 Thread tromey at gcc dot gnu.org
Assignee: dmalcolm at gcc dot gnu.org Reporter: tromey at gcc dot gnu.org Target Milestone: --- Many functions in libgccjit.h take a pointer argument, and it isn't clear which of these can be NULL and which cannot. It would be a bit helpful if the nonnull attribute were ap

[Bug jit/87004] New: no way to mark a function as noreturn

2018-08-17 Thread tromey at gcc dot gnu.org
Assignee: dmalcolm at gcc dot gnu.org Reporter: tromey at gcc dot gnu.org Target Milestone: --- Currently all blocks must be terminated either with a jump or a return. I think it should also be possible to terminate a block with a call to a noreturn function. But, there is no way

[Bug jit/87005] New: gcc_jit_context_get_builtin_function not documented

2018-08-17 Thread tromey at gcc dot gnu.org
Component: jit Assignee: dmalcolm at gcc dot gnu.org Reporter: tromey at gcc dot gnu.org Target Milestone: --- The function gcc_jit_context_get_builtin_function is not documented.

[Bug jit/87003] use nonnull attribute in libgccjit.h

2018-08-22 Thread tromey at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87003 --- Comment #2 from Tom Tromey --- I don't really know the best thing to do. I see your point about graceful failure being a useful feature, in cases where the result of some gcc-jit function is passed as an argument to another one. Maybe there

[Bug c++/87062] New: mis-optimized code with -O3 and std::pair

2018-08-22 Thread tromey at gcc dot gnu.org
++ Assignee: unassigned at gcc dot gnu.org Reporter: tromey at gcc dot gnu.org Target Milestone: --- I'm filing this on behalf of someone who posted this bug on reddit. https://www.reddit.com/r/cpp/comments/99e1ri/interesting_gcc_optimizer_bug/ Copying text from there:

[Bug c++/87062] mis-optimized code with -O3 and std::pair

2018-08-22 Thread tromey at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87062 --- Comment #1 from Tom Tromey --- Analysis in the comments there puts the blame on -ftree-slp-vectorize

[Bug target/87104] missed &, == optimization makes Emacs ~0.4% slower on x86-64

2018-08-31 Thread tromey at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87104 --- Comment #13 from Tom Tromey --- (In reply to pipcet from comment #12) > So I think the performance difference is really significant for Emacs; my > plan is to test all three versions on other programs, make sure the code > works for C bitfie

[Bug c/65158] printf attribute error reporting assumes single-byte characters

2018-09-14 Thread tromey at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65158 Tom Tromey changed: What|Removed |Added Status|WAITING |REOPENED --- Comment #2 from Tom Tromey --

[Bug debug/83935] DWARF for a variant part is incorrect

2018-02-19 Thread tromey at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83935 --- Comment #7 from Tom Tromey --- For Rust I ended up following the letter of the standard, so I'm going to follow this in the gdb patches as well. That said, gdb can be adapted to work with either approach, so it's not strictly necessary to ch

[Bug debug/83935] DWARF for a variant part is incorrect

2018-02-20 Thread tromey at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83935 --- Comment #9 from Tom Tromey --- (In reply to Pierre-Marie de Rodat from comment #8) > Understood, thank you for the notice! As we have to tweak the spec one way > or another for Ada, I suggest indeed we keep the way things are implemented > in

[Bug bootstrap/84402] [meta] GCC build system: parallelism bottleneck

2018-02-22 Thread tromey at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84402 --- Comment #17 from Tom Tromey --- The results in comment #13 seem to be missing some compilations -- I would have expected to see more files from libcpp in there. As it is I only see directives.o and line-map.o.

[Bug libstdc++/55041] prettyprinting/shared_ptr & cxx11 fails on some platforms

2012-11-16 Thread tromey at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55041 --- Comment #12 from Tom Tromey 2012-11-16 20:46:33 UTC --- (In reply to comment #11) > Tom, do you have any idea what's going on in comment 6 and comment 8 of this > bug? Not offhand. If you send me the failing executable(s) I can tak

[Bug fortran/55482] gfortran.dg/class_array_7.f03 execution failures with -fsanitize=address

2012-12-11 Thread tromey at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55482 Tom Tromey changed: What|Removed |Added CC||tromey at gcc dot gnu.org

[Bug debug/55059] [4.8 Regression] DWARF missing concrete class definition

2013-01-03 Thread tromey at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55059 --- Comment #3 from Tom Tromey 2013-01-03 19:29:28 UTC --- (In reply to comment #2) > So, where do we stand with this? Can GDB be changed to cope with this, or do > you think it isn't valid DWARF? It seems strange at least. I don't ha

[Bug other/55880] New: demangler crash

2013-01-04 Thread tromey at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55880 Bug #: 55880 Summary: demangler crash Classification: Unclassified Product: gcc Version: unknown Status: UNCONFIRMED Severity: normal Priority: P3

[Bug libstdc++/55041] prettyprinting/shared_ptr & cxx11 fails on some platforms

2013-01-24 Thread tromey at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55041 --- Comment #16 from Tom Tromey 2013-01-24 18:50:58 UTC --- (In reply to comment #12) > In my case the issue seems to be weird debuginfo emitted by gcc; > look at what the breakpoint reports: > > Breakpoint 1, _GLOBAL__sub_I__Z4makem

[Bug debug/53927] wrong value for DW_AT_static_link

2013-01-24 Thread tromey at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53927 --- Comment #1 from Tom Tromey 2013-01-24 20:24:18 UTC --- It seems that I read the wrong frame info in my original report. However, the bug still exists. Here is a new and hopefully more correct example showing the bug. I used a relat

[Bug debug/55059] [4.8 Regression] DWARF missing concrete class definition

2013-01-28 Thread tromey at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55059 --- Comment #5 from Tom Tromey 2013-01-28 20:08:11 UTC --- (In reply to comment #4) > (In reply to comment #3) > > If we change gdb to cope with this, I think the effect will be to undo what > > the patches here were attempting to accompl

[Bug debug/53927] wrong value for DW_AT_static_link

2013-01-31 Thread tromey at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53927 --- Comment #4 from Tom Tromey 2013-01-31 19:40:16 UTC --- (In reply to comment #3) > I don't see the problem. On both i686 and x86_64 'p self_call' prints 1, > which > matches the value returned by the function, so debugging seems to be

[Bug debug/49090] provide a way to recognize defaulted template parameters

2013-01-31 Thread tromey at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49090 --- Comment #3 from Tom Tromey 2013-01-31 20:11:36 UTC --- (In reply to comment #2) > Is GDB actually using the DW_TAG_template_*_param to generate the name of a > type, or just using the pretty name generated by GCC for DW_AT_name? > >

[Bug debug/49090] provide a way to recognize defaulted template parameters

2013-01-31 Thread tromey at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49090 --- Comment #5 from Tom Tromey 2013-01-31 20:25:54 UTC --- (In reply to comment #4) > (In reply to comment #3) > > > Note that we don't currently generate those tags for uninstantiated types. > > I don't think I understand this last comme

[Bug debug/49090] provide a way to recognize defaulted template parameters

2013-02-01 Thread tromey at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49090 --- Comment #7 from Tom Tromey 2013-02-01 18:18:01 UTC --- (In reply to comment #6) > What do you think about G++ (also) switching to emitting K for DW_AT_name > in this case? Would that break GDB type compatibility with other translation

[Bug debug/53927] wrong value for DW_AT_static_link

2013-02-01 Thread tromey at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53927 --- Comment #8 from Tom Tromey 2013-02-01 18:22:21 UTC --- > Yes, but you can do something useful even with this value of > DW_AT_static_link, albeit not exactly what DWARF means. Regardless, I think GCC should emit correct DWARF. > I

  1   2   3   4   >