This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [RFC PATCH] Typed DWARF stack


On Wed, May 04, 2011 at 12:04:40PM -0600, Tom Tromey wrote:
> Should DW_OP_bra be restricted to integral types?  Several other opcodes

Yes.  If you want to test other types, just compare them against 0
using DW_OP_ne etc.

> Currently, the comparison operators are all defined as performing signed
> operations.  So, what should happen in this case:
> 
>    DW_OP_lit0
>    DW_OP_GNU_convert <unsigned int>
>    DW_OP_GNU_const_type <unsigned int> -1
>    DW_OP_gt
> 
> That is, should this ignore the type (perhaps just using the type
> width), or is this a bug in the spec?

Whenever you have explicit type, use that type for comparisons, including
its signedness.

	Jakub


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]