Re: [head tinderbox] failure on arm/arm

From: Joseph Koshy <joseph.koshy_at_gmail.com>
Date: Sun, 12 Nov 2006 20:41:38 +0530
> /src/lib/libelf/elf_rand.c: In function `elf_rand':
> /src/lib/libelf/elf_rand.c:47: warning: cast increases
> required alignment of target type
> *** Error code 1

This is the offending line:

 $ sed -ne 47p elf_rand.c
        arh = (struct ar_hdr *) (ar->e_rawfile + offset);

However, 'struct ar_hdr' is a collection of char[] arrays,
so I'm puzzled as to why GCC/arm thinks 'struct ar_hdr' has
an alignment requirement.

__alignof__(struct ar_hdr) appears to be '4' according
GCC/arm.

-- 
FreeBSD Volunteer,     http://people.freebsd.org/~jkoshy
Received on Sun Nov 12 2006 - 14:11:40 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:39:02 UTC