public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug debug/18112] -feliminate-dwarf2-dups produces debug entries in wrong scope
       [not found] <bug-18112-4@http.gcc.gnu.org/bugzilla/>
@ 2012-01-11 12:41 ` rguenth at gcc dot gnu.org
  0 siblings, 0 replies; 7+ messages in thread
From: rguenth at gcc dot gnu.org @ 2012-01-11 12:41 UTC (permalink / raw)
  To: gcc-bugs

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|                            |FIXED

--- Comment #7 from Richard Guenther <rguenth at gcc dot gnu.org> 2012-01-11 12:41:10 UTC ---
Fixed at least with GCC 4.6 where it correctly appears below

 <1><2920>: Abbrev Number: 66 (DW_TAG_namespace)
    <2921>   DW_AT_name        : std    
    <2925>   DW_AT_decl_file   : 3      
    <2926>   DW_AT_decl_line   : 0      
    <2927>   DW_AT_sibling     : <0x2c56>


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

* [Bug debug/18112] -feliminate-dwarf2-dups produces debug entries in wrong scope
  2004-10-22 14:25 [Bug debug/18112] New: " nikolay at etnus dot com
                   ` (4 preceding siblings ...)
  2004-10-22 18:22 ` pinskia at gcc dot gnu dot org
@ 2004-10-22 18:39 ` nikolay at etnus dot com
  5 siblings, 0 replies; 7+ messages in thread
From: nikolay at etnus dot com @ 2004-10-22 18:39 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From nikolay at etnus dot com  2004-10-22 18:39 -------
Subject: Re:  -feliminate-dwarf2-dups produces debug entries
 in wrong scope

 <2><af69>: Abbrev Number: 5 (DW_TAG_typedef)
     DW_AT_name        : string 
     DW_AT_decl_file   : 32     
     DW_AT_decl_line   : 60     
     DW_AT_type        : <60a3> 

-----------------------------------------------------
In what scope is this  typedef nested? 

Nikolay



-- 


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


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

* [Bug debug/18112] -feliminate-dwarf2-dups produces debug entries in wrong scope
  2004-10-22 14:25 [Bug debug/18112] New: " nikolay at etnus dot com
                   ` (3 preceding siblings ...)
  2004-10-22 18:17 ` nikolay at etnus dot com
@ 2004-10-22 18:22 ` pinskia at gcc dot gnu dot org
  2004-10-22 18:39 ` nikolay at etnus dot com
  5 siblings, 0 replies; 7+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-10-22 18:22 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2004-10-22 18:22 -------
Note I could not reproduce it at all with the mainline GCC or mainline GDB or GCC 3.4.0.  Note the older 
versions of gdb don't understand the dwarf2 which is outputted by GCC with -feliminate-dwarf2-dups.

-- 


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


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

* [Bug debug/18112] -feliminate-dwarf2-dups produces debug entries in wrong scope
  2004-10-22 14:25 [Bug debug/18112] New: " nikolay at etnus dot com
                   ` (2 preceding siblings ...)
  2004-10-22 17:43 ` pinskia at gcc dot gnu dot org
@ 2004-10-22 18:17 ` nikolay at etnus dot com
  2004-10-22 18:22 ` pinskia at gcc dot gnu dot org
  2004-10-22 18:39 ` nikolay at etnus dot com
  5 siblings, 0 replies; 7+ messages in thread
From: nikolay at etnus dot com @ 2004-10-22 18:17 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From nikolay at etnus dot com  2004-10-22 18:16 -------
Subject: Re:  -feliminate-dwarf2-dups produces debug entries
 in wrong scope

This is what I did:
*** Compiling ../../src/tx_ttf_string.cxx ***
/home/compilers/gnu/gcc/3.4.1/i386-linux/bin/g++          -MD   -g 
-feliminate-dwarf2-dups         \
  -c ../../src/tx_ttf_string.cxx -o  tx_ttf_string.o

*** Linking program tx_ttf_string ***
/home/compilers/gnu/gcc/3.4.1/i386-linux/bin/g++  
-Wl,-rpath,/home/compilers/gnu/gcc/3.4.1/i386-linux/lib:/home/compilers/gnu/gcc/3.4.1/i386-linux/lib      
-g -feliminate-dwarf2-dups 
-Wl,-rpath,/home/compilers/gnu/gcc/3.4.1/i386-linux/lib:/home/compilers/gnu/gcc/3.4.1/i386-linux/lib    
-L/nfs/xander/u1/home/nikolay/totalview/debugger/../tools/lib 
-llinux-stubs   tx_ttf_string.o    \
  -o tx_ttf_string


pinskia at gcc dot gnu dot org wrote:

>------- Additional Comments From pinskia at gcc dot gnu dot org  2004-10-22 17:43 -------
>Complation of libstdc++ or the small program (you did not say),  I did it with the small program and 
>got that output.
>
>  
>



-- 


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


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

* [Bug debug/18112] -feliminate-dwarf2-dups produces debug entries in wrong scope
  2004-10-22 14:25 [Bug debug/18112] New: " nikolay at etnus dot com
  2004-10-22 17:31 ` [Bug debug/18112] " pinskia at gcc dot gnu dot org
  2004-10-22 17:40 ` nikolay at etnus dot com
@ 2004-10-22 17:43 ` pinskia at gcc dot gnu dot org
  2004-10-22 18:17 ` nikolay at etnus dot com
                   ` (2 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-10-22 17:43 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2004-10-22 17:43 -------
Complation of libstdc++ or the small program (you did not say),  I did it with the small program and 
got that output.

-- 


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


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

* [Bug debug/18112] -feliminate-dwarf2-dups produces debug entries in wrong scope
  2004-10-22 14:25 [Bug debug/18112] New: " nikolay at etnus dot com
  2004-10-22 17:31 ` [Bug debug/18112] " pinskia at gcc dot gnu dot org
@ 2004-10-22 17:40 ` nikolay at etnus dot com
  2004-10-22 17:43 ` pinskia at gcc dot gnu dot org
                   ` (3 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: nikolay at etnus dot com @ 2004-10-22 17:40 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From nikolay at etnus dot com  2004-10-22 17:40 -------
Subject: Re:  -feliminate-dwarf2-dups produces debug entries
 in wrong scope

 You need to use  -feliminate-dwarf2-dups flag during compilation.
Nikolay

pinskia at gcc dot gnu dot org wrote:

>------- Additional Comments From pinskia at gcc dot gnu dot org  2004-10-22 17:31 -------
>This is what I get one the mainline:
> <1><c33f>: Abbrev Number: 120 (DW_TAG_subprogram)
>     DW_AT_sibling     : <c368> 
>     DW_AT_external    : 1      
>     DW_AT_name        : main   
>     DW_AT_decl_file   : 2      
>     DW_AT_decl_line   : 6      
>     DW_AT_type        : <86>   
>     DW_AT_low_pc      : 0x8048748      
>     DW_AT_high_pc     : 0x80487cb      
>     DW_AT_frame_base  : 1 byte block: 55       (DW_OP_reg5)
> <2><c35a>: Abbrev Number: 121 (DW_TAG_variable)
>     DW_AT_name        : s1     
>     DW_AT_decl_file   : 2      
>     DW_AT_decl_line   : 7      
>     DW_AT_type        : <af69> 
>     DW_AT_location    : 2 byte block: 91 74    (DW_OP_fbreg: -12)
>
>....
> <2><af69>: Abbrev Number: 5 (DW_TAG_typedef)
>     DW_AT_name        : string 
>     DW_AT_decl_file   : 32     
>     DW_AT_decl_line   : 60     
>     DW_AT_type        : <60a3> 
>
>And some huge number of debuggin data (namespaces and such).
>
>
>  
>



-- 


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


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

* [Bug debug/18112] -feliminate-dwarf2-dups produces debug entries in wrong scope
  2004-10-22 14:25 [Bug debug/18112] New: " nikolay at etnus dot com
@ 2004-10-22 17:31 ` pinskia at gcc dot gnu dot org
  2004-10-22 17:40 ` nikolay at etnus dot com
                   ` (4 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-10-22 17:31 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2004-10-22 17:31 -------
This is what I get one the mainline:
 <1><c33f>: Abbrev Number: 120 (DW_TAG_subprogram)
     DW_AT_sibling     : <c368> 
     DW_AT_external    : 1      
     DW_AT_name        : main   
     DW_AT_decl_file   : 2      
     DW_AT_decl_line   : 6      
     DW_AT_type        : <86>   
     DW_AT_low_pc      : 0x8048748      
     DW_AT_high_pc     : 0x80487cb      
     DW_AT_frame_base  : 1 byte block: 55       (DW_OP_reg5)
 <2><c35a>: Abbrev Number: 121 (DW_TAG_variable)
     DW_AT_name        : s1     
     DW_AT_decl_file   : 2      
     DW_AT_decl_line   : 7      
     DW_AT_type        : <af69> 
     DW_AT_location    : 2 byte block: 91 74    (DW_OP_fbreg: -12)

....
 <2><af69>: Abbrev Number: 5 (DW_TAG_typedef)
     DW_AT_name        : string 
     DW_AT_decl_file   : 32     
     DW_AT_decl_line   : 60     
     DW_AT_type        : <60a3> 

And some huge number of debuggin data (namespaces and such).


-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
            Summary| -feliminate-dwarf2-dups    |-feliminate-dwarf2-dups
                   |produces debug entries in   |produces debug entries in
                   |wrong scope                 |wrong scope


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


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

end of thread, other threads:[~2012-01-11 12:41 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <bug-18112-4@http.gcc.gnu.org/bugzilla/>
2012-01-11 12:41 ` [Bug debug/18112] -feliminate-dwarf2-dups produces debug entries in wrong scope rguenth at gcc dot gnu.org
2004-10-22 14:25 [Bug debug/18112] New: " nikolay at etnus dot com
2004-10-22 17:31 ` [Bug debug/18112] " pinskia at gcc dot gnu dot org
2004-10-22 17:40 ` nikolay at etnus dot com
2004-10-22 17:43 ` pinskia at gcc dot gnu dot org
2004-10-22 18:17 ` nikolay at etnus dot com
2004-10-22 18:22 ` pinskia at gcc dot gnu dot org
2004-10-22 18:39 ` nikolay at etnus 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).