svn commit: r288454 - head/usr.bin/truss

Justin Hibbits chmeeedalf at gmail.com
Thu Oct 1 20:06:07 UTC 2015


powerpc64 also defines __powerpc64__ in addition to __powerpc__.  This is
likely because unlike amd64, the only major difference between 32-bit and
64-bit is the register size, so mips will likely be the same way.

-Justin
On Oct 1, 2015 2:51 PM, "John Baldwin" <jhb at freebsd.org> wrote:

> On Thursday, October 01, 2015 05:28:07 PM John Baldwin wrote:
> > Author: jhb
> > Date: Thu Oct  1 17:28:07 2015
> > New Revision: 288454
> > URL: https://svnweb.freebsd.org/changeset/base/288454
> >
> > Log:
> >   - Remove extra integer argument from truncate() and ftruncate().  This
> is
> >     probably fallout from the removal of the extra padding argument
> before
> >     off_t in 7.  However, that padding still exists for 32-bit powerpc,
> so
> >     use QUAD_ALIGN.
> >   - Fix QUAD_ALIGN to be zero for powerpc64.  It should only be set to 1
> >     for 32-bit platforms that add padding to align 64-bit arguments.
>
> I'm not sure how the situation is on arm and MIPS, but on powerpc, both the
> 32-bit and 64-bit platforms define __powerpc__ (unlike amd64 which doesn't
> define __i386__ for example) making proper #ifdef's for just 32-bit
> __powerpc__ a bit of a PITA.
>
> --
> John Baldwin
>
>


More information about the svn-src-head mailing list