public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug debug/41439]  New: choose DW_OP_stack_value over DW_OP_implicit_value more often, please
@ 2009-09-22 21:31 roland at redhat dot com
  2009-09-23  8:36 ` [Bug debug/41439] " rguenth at gcc dot gnu dot org
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: roland at redhat dot com @ 2009-09-22 21:31 UTC (permalink / raw)
  To: gcc-bugs

The comment in address_of_int_loc_descriptor doesn't make a lot of sense to me.
 In any case of a value no larger than address size, you can use
DW_OP_stack_value to get the same size or smaller.  When the size is the same,
such as DW_OP_implicit_value(address-sized block) vs
DW_OP_addr(address-consant) DW_OP_stack_value (both address-size + 2 bytes), I
think DW_OP_stack_value is preferable because consumers do not have to involve
overly-general variable-sized-stuff-with-relocs logic that the general case of
constant blocks involves.  There is no need for a DW_OP_{bit_,}piece in these
cases when the expressed value is in the low bits of the value computed on the
stack.


-- 
           Summary: choose DW_OP_stack_value over DW_OP_implicit_value more
                    often, please
           Product: gcc
           Version: unknown
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: debug
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: roland at redhat dot com


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


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

end of thread, other threads:[~2010-05-24  9:02 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-09-22 21:31 [Bug debug/41439] New: choose DW_OP_stack_value over DW_OP_implicit_value more often, please roland at redhat dot com
2009-09-23  8:36 ` [Bug debug/41439] " rguenth at gcc dot gnu dot org
2009-09-23  8:51 ` jakub at gcc dot gnu dot org
2009-09-23 18:08 ` jakub at gcc dot gnu dot org
2010-05-24  9:02 ` jakub at gcc dot gnu dot 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).