svn commit: r242014 - head/sys/kern

Brett brett.mahar at gmx.com
Wed Oct 24 22:11:50 UTC 2012


> >>> As I've already said in another thread __align() doesn't work on
> >>> object declaration, so what that won't pad it either if it is global
> >>> or part of a struct.
> >>> It is just implemented as __attribute__((aligned(X))):
> >>> http://gcc.gnu.org/onlinedocs/gcc-3.2/gcc/Type-Attributes.html

> The problem we have is that is apparently doesn't work correctly
> within gcc when creating structs nor within the linker when placing
> such supposedly aligned structs in the .bss section (at least the
> padding is missing).
> 
> It seems to come down to either a) fixing gcc+ld; or b) hacking
> around it by magically padding the structs that require it.

Isn't -current switching over to Clang pretty soon? In that case, why worry about what gcc does?

Brett.
 



More information about the svn-src-head mailing list