Date: Sun, 12 Nov 2006 20:41:38 +0530 From: "Joseph Koshy" <joseph.koshy@gmail.com> To: current@freebsd.org Cc: arm@freebsd.org Subject: Re: [head tinderbox] failure on arm/arm Message-ID: <84dead720611120711q41d9dbefi5617f2edb03759f1@mail.gmail.com> In-Reply-To: <20061111202438.CFBC473068@freebsd-current.sentex.ca> References: <20061111202438.CFBC473068@freebsd-current.sentex.ca>
next in thread | previous in thread | raw e-mail | index | archive | help
> /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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?84dead720611120711q41d9dbefi5617f2edb03759f1>
