[head tinderbox] failure on arm/arm
Joseph Koshy
joseph.koshy at gmail.com
Sun Nov 12 07:11:40 PST 2006
> /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
More information about the freebsd-current
mailing list