public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug target/17993] Error in dwarf2 debug output of bitfield members
       [not found] <bug-17993-9466@http.gcc.gnu.org/bugzilla/>
@ 2007-03-10 19:40 ` eweddington at cso dot atmel dot com
  2007-04-28 16:26 ` eweddington at cso dot atmel dot com
                   ` (2 subsequent siblings)
  3 siblings, 0 replies; 10+ messages in thread
From: eweddington at cso dot atmel dot com @ 2007-03-10 19:40 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #2 from eweddington at cso dot atmel dot com  2007-03-10 19:40 -------
>From the link in comment #1, on the gcc list, from Jim Wilson:


">    DW_AT_member_location seems to consequently equal -1 (ff ff ff ff) for
the > first member of a bitfield. 


FYI You can get descriptive assembly by using the -dA option. This adds
comments that make the dwarf2 debug info readable. Gcc calls this
DW_AT_data_member_location.

The DWARF2 info comes from dwarf2out.c. Grepping for DW_AT_data_member_location
shows that it comes from the function add_data_member_location_attribute. The
offset comes from the function field_byte_offset. Looking at this code, it
seems to have a general problem on targets where TYPE_ALIGN of int is smaller
than TYPE_SIZE of int. This is true on avr where the size is 2 but the
alignment is 1. The code computes the end of the bitfield, subtracts the type
size, and then rounds up to the alignment, which gives -1 for the offset, which
is not a useful number. I would think the code would work better if we started
with the beginning of the bitfield, and then rounded down to the alignment. I'd
suggest checking the history of the code to see if there is a reason why it was
written this way. There may be an obscure reason why the code is like it is."

The issue is in field_byte_offset() in dwarf2out.c.

Can someone with Bugzilla permissions please mark this bug as NEW (confirmed)?


-- 


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


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

* [Bug target/17993] Error in dwarf2 debug output of bitfield members
       [not found] <bug-17993-9466@http.gcc.gnu.org/bugzilla/>
  2007-03-10 19:40 ` [Bug target/17993] Error in dwarf2 debug output of bitfield members eweddington at cso dot atmel dot com
@ 2007-04-28 16:26 ` eweddington at cso dot atmel dot com
  2007-08-22 17:49 ` eweddington at cso dot atmel dot com
  2008-03-14 16:38 ` rguenth at gcc dot gnu dot org
  3 siblings, 0 replies; 10+ messages in thread
From: eweddington at cso dot atmel dot com @ 2007-04-28 16:26 UTC (permalink / raw)
  To: gcc-bugs



-- 

eweddington at cso dot atmel dot com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
     Ever Confirmed|0                           |1
 GCC target triplet|AVR                         |avr-*-*
   Last reconfirmed|0000-00-00 00:00:00         |2007-04-28 17:26:32
               date|                            |


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


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

* [Bug target/17993] Error in dwarf2 debug output of bitfield members
       [not found] <bug-17993-9466@http.gcc.gnu.org/bugzilla/>
  2007-03-10 19:40 ` [Bug target/17993] Error in dwarf2 debug output of bitfield members eweddington at cso dot atmel dot com
  2007-04-28 16:26 ` eweddington at cso dot atmel dot com
@ 2007-08-22 17:49 ` eweddington at cso dot atmel dot com
  2008-03-14 16:38 ` rguenth at gcc dot gnu dot org
  3 siblings, 0 replies; 10+ messages in thread
From: eweddington at cso dot atmel dot com @ 2007-08-22 17:49 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #3 from eweddington at cso dot atmel dot com  2007-08-22 17:48 -------
Bug fixed in 4.3.0 20070817 snapshot.


-- 

eweddington at cso dot atmel dot com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|---                         |4.3.0


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


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

* [Bug target/17993] Error in dwarf2 debug output of bitfield members
       [not found] <bug-17993-9466@http.gcc.gnu.org/bugzilla/>
                   ` (2 preceding siblings ...)
  2007-08-22 17:49 ` eweddington at cso dot atmel dot com
@ 2008-03-14 16:38 ` rguenth at gcc dot gnu dot org
  3 siblings, 0 replies; 10+ messages in thread
From: rguenth at gcc dot gnu dot org @ 2008-03-14 16:38 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #4 from rguenth at gcc dot gnu dot org  2008-03-14 16:37 -------
Fixed then.


-- 

rguenth at gcc dot gnu dot org changed:

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


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


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

* [Bug target/17993] Error in dwarf2 debug output of bitfield members
  2004-10-14  8:11 [Bug debug/17993] New: " tsandnes at atmel dot com
                   ` (4 preceding siblings ...)
  2005-03-16 16:54 ` ericw at evcohs dot com
@ 2005-07-27 23:39 ` giovannibajo at libero dot it
  5 siblings, 0 replies; 10+ messages in thread
From: giovannibajo at libero dot it @ 2005-07-27 23:39 UTC (permalink / raw)
  To: gcc-bugs



-- 
Bug 17993 depends on bug 19885, which changed state.

Bug 19885 Summary: [4.0/4.1 Regression] avr dwarf-2 support is broken for head 4.0/4.1
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19885

           What    |Old Value                   |New Value
----------------------------------------------------------------------------
             Status|NEW                         |WAITING
             Status|WAITING                     |RESOLVED
         Resolution|                            |FIXED

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


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

* [Bug target/17993] Error in dwarf2 debug output of bitfield members
  2004-10-14  8:11 [Bug debug/17993] New: " tsandnes at atmel dot com
                   ` (3 preceding siblings ...)
  2005-02-11 22:56 ` ericw at evcohs dot com
@ 2005-03-16 16:54 ` ericw at evcohs dot com
  2005-07-27 23:39 ` giovannibajo at libero dot it
  5 siblings, 0 replies; 10+ messages in thread
From: ericw at evcohs dot com @ 2005-03-16 16:54 UTC (permalink / raw)
  To: gcc-bugs



-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
  BugsThisDependsOn|                            |19885


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


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

* [Bug target/17993] Error in dwarf2 debug output of bitfield members
  2004-10-14  8:11 [Bug debug/17993] New: " tsandnes at atmel dot com
                   ` (2 preceding siblings ...)
  2004-11-13 16:18 ` berndtrog at yahoo dot com
@ 2005-02-11 22:56 ` ericw at evcohs dot com
  2005-03-16 16:54 ` ericw at evcohs dot com
  2005-07-27 23:39 ` giovannibajo at libero dot it
  5 siblings, 0 replies; 10+ messages in thread
From: ericw at evcohs dot com @ 2005-02-11 22:56 UTC (permalink / raw)
  To: gcc-bugs



-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |bjoern dot m dot haase at
                   |                            |web dot de


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


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

* [Bug target/17993] Error in dwarf2 debug output of bitfield members
  2004-10-14  8:11 [Bug debug/17993] New: " tsandnes at atmel dot com
  2004-10-14 13:23 ` [Bug target/17993] " pinskia at gcc dot gnu dot org
  2004-10-14 16:39 ` ericw at evcohs dot com
@ 2004-11-13 16:18 ` berndtrog at yahoo dot com
  2005-02-11 22:56 ` ericw at evcohs dot com
                   ` (2 subsequent siblings)
  5 siblings, 0 replies; 10+ messages in thread
From: berndtrog at yahoo dot com @ 2004-11-13 16:18 UTC (permalink / raw)
  To: gcc-bugs



-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |berndtrog at yahoo dot com


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


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

* [Bug target/17993] Error in dwarf2 debug output of bitfield members
  2004-10-14  8:11 [Bug debug/17993] New: " tsandnes at atmel dot com
  2004-10-14 13:23 ` [Bug target/17993] " pinskia at gcc dot gnu dot org
@ 2004-10-14 16:39 ` ericw at evcohs dot com
  2004-11-13 16:18 ` berndtrog at yahoo dot com
                   ` (3 subsequent siblings)
  5 siblings, 0 replies; 10+ messages in thread
From: ericw at evcohs dot com @ 2004-10-14 16:39 UTC (permalink / raw)
  To: gcc-bugs



-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |ericw at evcohs dot com


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


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

* [Bug target/17993] Error in dwarf2 debug output of bitfield members
  2004-10-14  8:11 [Bug debug/17993] New: " tsandnes at atmel dot com
@ 2004-10-14 13:23 ` pinskia at gcc dot gnu dot org
  2004-10-14 16:39 ` ericw at evcohs dot com
                   ` (4 subsequent siblings)
  5 siblings, 0 replies; 10+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-10-14 13:23 UTC (permalink / raw)
  To: gcc-bugs



-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
          Component|debug                       |target


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


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

end of thread, other threads:[~2008-03-14 16:38 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <bug-17993-9466@http.gcc.gnu.org/bugzilla/>
2007-03-10 19:40 ` [Bug target/17993] Error in dwarf2 debug output of bitfield members eweddington at cso dot atmel dot com
2007-04-28 16:26 ` eweddington at cso dot atmel dot com
2007-08-22 17:49 ` eweddington at cso dot atmel dot com
2008-03-14 16:38 ` rguenth at gcc dot gnu dot org
2004-10-14  8:11 [Bug debug/17993] New: " tsandnes at atmel dot com
2004-10-14 13:23 ` [Bug target/17993] " pinskia at gcc dot gnu dot org
2004-10-14 16:39 ` ericw at evcohs dot com
2004-11-13 16:18 ` berndtrog at yahoo dot com
2005-02-11 22:56 ` ericw at evcohs dot com
2005-03-16 16:54 ` ericw at evcohs dot com
2005-07-27 23:39 ` giovannibajo at libero dot it

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