public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug debug/54773] New: no debug info generated for rvalue reference
@ 2012-10-01 22:22 chihin.ko at oracle dot com
  2012-10-28 13:53 ` [Bug debug/54773] " redi at gcc dot gnu.org
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: chihin.ko at oracle dot com @ 2012-10-01 22:22 UTC (permalink / raw)
  To: gcc-bugs


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54773

             Bug #: 54773
           Summary: no debug info generated for rvalue reference
    Classification: Unclassified
           Product: gcc
           Version: 4.6.2
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: debug
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: chihin.ko@oracle.com


Created attachment 28318
  --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=28318
compileable c++ test case and dwarf dump

for c++0x feature rvalue reference, g++ should generate
DW_TAG_rvalue_reference_type, g++ generate DW_TAG_reference_type instead:

see attachment for test cases: a.out.dw 
shows debug info for function "void foo(int&& ii)" are


< 2><0x00000992>      DW_TAG_formal_parameter
                        DW_AT_name                  "ii"
                        DW_AT_decl_file             0x00000001
/net/benjamin2/export/ws/jeanko/ws/dbx_test/bugid/7189973/intel-Linux/t.cc
                        DW_AT_decl_line             0x0000001b
                        DW_AT_type                  <0x000009a0>
                        DW_AT_location              DW_OP_fbreg -24
< 1><0x000009a0>    DW_TAG_const_type
                      DW_AT_type                  <0x000009a5>
< 1><0x000009a5>    DW_TAG_reference_type
                      DW_AT_byte_size             0x00000008
                      DW_AT_type                  <0x00000062>


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

* [Bug debug/54773] no debug info generated for rvalue reference
  2012-10-01 22:22 [Bug debug/54773] New: no debug info generated for rvalue reference chihin.ko at oracle dot com
@ 2012-10-28 13:53 ` redi at gcc dot gnu.org
  2014-08-13  1:30 ` chihin.ko at oracle dot com
  2015-04-22 22:45 ` chihin.ko at oracle dot com
  2 siblings, 0 replies; 4+ messages in thread
From: redi at gcc dot gnu.org @ 2012-10-28 13:53 UTC (permalink / raw)
  To: gcc-bugs


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54773

Jonathan Wakely <redi at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |jason at gcc dot gnu.org

--- Comment #1 from Jonathan Wakely <redi at gcc dot gnu.org> 2012-10-28 13:53:11 UTC ---
This seems to be fixed on trunk, but GDB can't handle it:

struct X {
  X& operator=(X&&) { return *this; }
};

int main()
{
  X x;
  x = X();
}

 <1><5e>: Abbrev Number: 8 (DW_TAG_rvalue_reference_type)
    <5f>   DW_AT_byte_size   : 8        
    <60>   DW_AT_type        : <0x29> 


Temporary breakpoint 1, main () at rv.cc:8
8         x = X();
(gdb) ptype x
type = struct X {
  public:
    X & operator=(<unknown type in /dev/shm/a.out, CU 0x0, DIE 0x4b>);
}


Jason, can this be closed as fixed?


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

* [Bug debug/54773] no debug info generated for rvalue reference
  2012-10-01 22:22 [Bug debug/54773] New: no debug info generated for rvalue reference chihin.ko at oracle dot com
  2012-10-28 13:53 ` [Bug debug/54773] " redi at gcc dot gnu.org
@ 2014-08-13  1:30 ` chihin.ko at oracle dot com
  2015-04-22 22:45 ` chihin.ko at oracle dot com
  2 siblings, 0 replies; 4+ messages in thread
From: chihin.ko at oracle dot com @ 2014-08-13  1:30 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #2 from chihin ko <chihin.ko at oracle dot com> ---
g++ 4.8.1 on Linux fixed the problem, but problem still exists in g++ 4.8.1 on
solaris.


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

* [Bug debug/54773] no debug info generated for rvalue reference
  2012-10-01 22:22 [Bug debug/54773] New: no debug info generated for rvalue reference chihin.ko at oracle dot com
  2012-10-28 13:53 ` [Bug debug/54773] " redi at gcc dot gnu.org
  2014-08-13  1:30 ` chihin.ko at oracle dot com
@ 2015-04-22 22:45 ` chihin.ko at oracle dot com
  2 siblings, 0 replies; 4+ messages in thread
From: chihin.ko at oracle dot com @ 2015-04-22 22:45 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #3 from chihin ko <chihin.ko at oracle dot com> ---
g++ 4.8.2 on intel-Linux regress again. DW_TAG_rvalue_reference_type did not
get generated.
g++ 4.8.2 on intel Solaris is broken too.

g++ 4.9.0 works on intel-Linux but not on intel Solaris.


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

end of thread, other threads:[~2015-04-22 22:45 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-10-01 22:22 [Bug debug/54773] New: no debug info generated for rvalue reference chihin.ko at oracle dot com
2012-10-28 13:53 ` [Bug debug/54773] " redi at gcc dot gnu.org
2014-08-13  1:30 ` chihin.ko at oracle dot com
2015-04-22 22:45 ` chihin.ko at oracle dot com

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).