[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Bug#333766: libc6: SIGBUS in libm on hppa breaks qt-x11-free



On Thu, Oct 13, 2005 at 05:04:55PM -0700, Steve Langasek wrote:
> To say that this is a compiler bug, you would have to show that gcc-4.0 is
> *wrong* to 32-bit align the fenv_t struct instead of 64-bit aligning it.
> You'd have to check with the compiler folks to be sure, but I don't think
> this is a correct assertion for a struct of 32-bit unsigned ints.
>

If it wants to use fldd (floating point load double) it must be 8-byte
aligned, otherwise it will take an unaligned access trap. I believe I
added code to the kernel recently that will let someone toggle on and
off unaligned access traps/logging with "prctl"... Might be worth checking.

> At any rate, knowing that gcc-3.4 does this alignment differently gives us a
> viable workaround for qt; since qt is already building with g++-3.4 on hppa
> (et al.), it's no trouble to also make it build-depend on and use gcc-3.4.
>

Cheers,
	Kyle



Reply to: