public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug debug/65822] New: [4.8.2 regression] Used variant fun names in dwarf info for CTORs
@ 2015-04-21  2:27 chihin.ko at oracle dot com
  2015-04-21  5:57 ` [Bug debug/65822] [4.8/4.9/5/6 Regression] " jakub at gcc dot gnu.org
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: chihin.ko at oracle dot com @ 2015-04-21  2:27 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65822

            Bug ID: 65822
           Summary: [4.8.2 regression] Used variant fun names in dwarf
                    info for CTORs
           Product: gcc
           Version: 4.8.2
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: debug
          Assignee: unassigned at gcc dot gnu.org
          Reporter: chihin.ko at oracle dot com

Created attachment 35372
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=35372&action=edit
test case 1/1

for attached *.cc, there are 3 A CTORS and 3 variant A CTORS:

 nm a.out | grep _ZN1AC
0000000000400a8c W _ZN1AC1Ei
0000000000400ab2 W _ZN1AC1Eifci
0000000000400a5a W _ZN1AC1Ev
0000000000400a8c W _ZN1AC2Ei
0000000000400ab2 W _ZN1AC2Eifci
0000000000400a5a W _ZN1AC2Ev

In dwarf dump, _ZN1AC2... was used :

 grep _ZN1AC a.out.dw
                      DW_AT_MIPS_linkage_name     "_ZN1AC2Ev"
                      DW_AT_MIPS_linkage_name     "_ZN1AC2Ei"
                      DW_AT_MIPS_linkage_name     "_ZN1AC2Eifci"
name at offset 0x0000011a, length    9 is '_ZN1AC2Ei'
name at offset 0x00000143, length   12 is '_ZN1AC2Eifci'
name at offset 0x0000015a, length    9 is '_ZN1AC2Ev'

I don't see _ZN1AC1... were used in a.out.dw


^ permalink raw reply	[flat|nested] 6+ messages in thread

* [Bug debug/65822] [4.8/4.9/5/6 Regression] Used variant fun names in dwarf info for CTORs
  2015-04-21  2:27 [Bug debug/65822] New: [4.8.2 regression] Used variant fun names in dwarf info for CTORs chihin.ko at oracle dot com
@ 2015-04-21  5:57 ` jakub at gcc dot gnu.org
  2015-04-21  7:42 ` rguenth at gcc dot gnu.org
                   ` (3 subsequent siblings)
  4 siblings, 0 replies; 6+ messages in thread
From: jakub at gcc dot gnu.org @ 2015-04-21  5:57 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65822

Jakub Jelinek <jakub at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |jakub at gcc dot gnu.org,
                   |                            |jason at gcc dot gnu.org
            Summary|[4.8.2 regression] Used     |[4.8/4.9/5/6 Regression]
                   |variant fun names in dwarf  |Used variant fun names in
                   |info for CTORs              |dwarf info for CTORs

--- Comment #1 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
The C1 and C2 don't stand for CTORs and variant CTORs, but for complete object
constructor and base object constructor.  If the compiler chooses them to emit
them as aliases (because they are the same), you only get one of them in the
debug info, emitting both the same way would just severely bloat the debug
info, unless there is a way to represent the aliases without duplication. 
Dunno if e.g. a DW_TAG_subprogram
with DW_AT_name/DW_AT_linkage_name and just DW_AT_abstract_origin on the alias
and nothing else would do the job.


^ permalink raw reply	[flat|nested] 6+ messages in thread

* [Bug debug/65822] [4.8/4.9/5/6 Regression] Used variant fun names in dwarf info for CTORs
  2015-04-21  2:27 [Bug debug/65822] New: [4.8.2 regression] Used variant fun names in dwarf info for CTORs chihin.ko at oracle dot com
  2015-04-21  5:57 ` [Bug debug/65822] [4.8/4.9/5/6 Regression] " jakub at gcc dot gnu.org
@ 2015-04-21  7:42 ` rguenth at gcc dot gnu.org
  2015-06-23  8:25 ` rguenth at gcc dot gnu.org
                   ` (2 subsequent siblings)
  4 siblings, 0 replies; 6+ messages in thread
From: rguenth at gcc dot gnu.org @ 2015-04-21  7:42 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65822

Richard Biener <rguenth at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|---                         |4.8.5

--- Comment #2 from Richard Biener <rguenth at gcc dot gnu.org> ---
I suppose it does do the job.


^ permalink raw reply	[flat|nested] 6+ messages in thread

* [Bug debug/65822] [4.8/4.9/5/6 Regression] Used variant fun names in dwarf info for CTORs
  2015-04-21  2:27 [Bug debug/65822] New: [4.8.2 regression] Used variant fun names in dwarf info for CTORs chihin.ko at oracle dot com
  2015-04-21  5:57 ` [Bug debug/65822] [4.8/4.9/5/6 Regression] " jakub at gcc dot gnu.org
  2015-04-21  7:42 ` rguenth at gcc dot gnu.org
@ 2015-06-23  8:25 ` rguenth at gcc dot gnu.org
  2015-06-26 20:00 ` [Bug debug/65822] [4.9/5/6 " jakub at gcc dot gnu.org
  2015-06-26 20:31 ` jakub at gcc dot gnu.org
  4 siblings, 0 replies; 6+ messages in thread
From: rguenth at gcc dot gnu.org @ 2015-06-23  8:25 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65822

Richard Biener <rguenth at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|4.8.5                       |4.9.3

--- Comment #3 from Richard Biener <rguenth at gcc dot gnu.org> ---
The gcc-4_8-branch is being closed, re-targeting regressions to 4.9.3.


^ permalink raw reply	[flat|nested] 6+ messages in thread

* [Bug debug/65822] [4.9/5/6 Regression] Used variant fun names in dwarf info for CTORs
  2015-04-21  2:27 [Bug debug/65822] New: [4.8.2 regression] Used variant fun names in dwarf info for CTORs chihin.ko at oracle dot com
                   ` (2 preceding siblings ...)
  2015-06-23  8:25 ` rguenth at gcc dot gnu.org
@ 2015-06-26 20:00 ` jakub at gcc dot gnu.org
  2015-06-26 20:31 ` jakub at gcc dot gnu.org
  4 siblings, 0 replies; 6+ messages in thread
From: jakub at gcc dot gnu.org @ 2015-06-26 20:00 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65822

--- Comment #4 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
GCC 4.9.3 has been released.


^ permalink raw reply	[flat|nested] 6+ messages in thread

* [Bug debug/65822] [4.9/5/6 Regression] Used variant fun names in dwarf info for CTORs
  2015-04-21  2:27 [Bug debug/65822] New: [4.8.2 regression] Used variant fun names in dwarf info for CTORs chihin.ko at oracle dot com
                   ` (3 preceding siblings ...)
  2015-06-26 20:00 ` [Bug debug/65822] [4.9/5/6 " jakub at gcc dot gnu.org
@ 2015-06-26 20:31 ` jakub at gcc dot gnu.org
  4 siblings, 0 replies; 6+ messages in thread
From: jakub at gcc dot gnu.org @ 2015-06-26 20:31 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65822

Jakub Jelinek <jakub at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|4.9.3                       |4.9.4


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2015-06-26 20:31 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-04-21  2:27 [Bug debug/65822] New: [4.8.2 regression] Used variant fun names in dwarf info for CTORs chihin.ko at oracle dot com
2015-04-21  5:57 ` [Bug debug/65822] [4.8/4.9/5/6 Regression] " jakub at gcc dot gnu.org
2015-04-21  7:42 ` rguenth at gcc dot gnu.org
2015-06-23  8:25 ` rguenth at gcc dot gnu.org
2015-06-26 20:00 ` [Bug debug/65822] [4.9/5/6 " jakub at gcc dot gnu.org
2015-06-26 20:31 ` jakub at gcc dot gnu.org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).