This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB 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: [RFA 6/6] Remove long_long_align_bit gdbarch attribute


>>>>> "Tom" == Tom Tromey <tom@tromey.com> writes:

Tom> This removes the long_long_align_bit gdbarch attribute in favor of
Tom> type_align.  This uncovered two possible issues.

Tom> First, arc-tdep.c claimed that long long alignment was 32 bits, but
Tom> gcc's arc.h says:

Tom>     #define ADJUST_FIELD_ALIGN(FIELD, TYPE, COMPUTED) \
Tom>     (TYPE_MODE (strip_array_types (TYPE)) == DFmode \
Tom>      ? MIN ((COMPUTED), 32) : (COMPUTED))

Tom> Here, DFmode means "double".  So, I've implemented arc_type_align
Tom> according to this.  I do not have a good way to test this.

Anton, could you take a look at this part of the patch?

Tom


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