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: [PATCH] Introduce abi_word_mode


(I apologize for duplicate messages, I used a broken mailer ...)
Ian Lance Taylor <iant@google.com> wrote on 10/09/2006 10:31:02 PM:

> The use in unwind-generic.h most likely does have to be the size of a
> register.  The requirement for ABI compliance in this case when the
> size of a register changes has already led to the introduction of the
> undocumented target hook TARGET_EH_RETURN_FILTER_MODE, which would be
> subsumed by Andreas's proposed patch.

Yes, except that TARGET_EH_RETURN_FILTER_MODE only takes are of one
side of the ABI interface -- it allows to compile the application
in 64-bit mode, but it doesn't allow to compile libgcc in 64-bit mode.

Anyway, that's actually a good example, since the use of mode (word)
in the unwind code reflects the *size* of a general purpose register
for unwind purposes, i.e. what's the size of a saved register on the
stack, in the DWARF-2 structures etc.

Now all of *this* is defined by the ABI, and is IMO perfectly 
described as "size of a general purpose register according to
the ABI".  This may well be different from the actual size of
a general purpose register on the machine.

Bye,
Ulrich

-- 
  Dr. Ulrich Weigand
  Linux on zSeries Development
  Ulrich.Weigand@de.ibm.com


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