[PATCH] ppc64: Fix issue with gcc 4.0 compiled kernels
Paul Mackerras
paulus at samba.org
Tue Aug 23 16:11:05 EST 2005
Anton Blanchard writes:
> I recently had a BUG_ON() go off spuriously on a gcc 4.0 compiled
> kernel. It turns out gcc-4.0 was removing a sign extension while earlier
> gcc versions would not. Thinking this to be a compiler bug, I submitted
> a report:
...
> - "i" (__FUNCTION__)); \
> + : : "r" ((long long)(x)), "i" (__LINE__), \
Could we have a (long) cast instead? That way we can use the same
definition on 32-bit as well.
Paul.
More information about the Linuxppc64-dev
mailing list