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]

Re: [PATCH] Location lists, with dwarf 2.1 support


>>>>> "Daniel" == Daniel Berlin <dan@cgsoftware.com> writes:

>> > +       /*FIXME: 0xffffffff should be the max address representable, so on 64 bit machines, this is wrong. */
>> > +       dw2_asm_output_data (DWARF2_ADDR_SIZE, 0xffffffff, "Location list base address specifier fake entry");
>> 
>> This is easy to fix; please do.  Also, please wrap your lines.
> Okay, I give up.
> How do I fix this?

> I can't find somethign that tells me the maximum address, only the
> maximum size of a pointer.
> DWARF2_ADDR_SIZE will always be the right *size*.

> Should i just use a 64 bit max address (0xffffffffffffffff, errr, i
> can't count), and let it truncate it if DWARF2_ADDR_SIZE is 32 or
> less?

That seems reasonable.  Or you could just test DWARF2_ADDR_SIZE.

Jason


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