[Bug 217532] sbin/newfs_nandfs/newfs_nandfs.c warning on unaligned pointer value

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Mon Mar 6 17:59:45 UTC 2017


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=217532

--- Comment #7 from Conrad Meyer <cem at freebsd.org> ---
(In reply to Brooks Davis from comment #6)
> I don't think that struct assignment is defined in C for misaligned structures

__packed isn't defined in C, so you don't get misaligned structures at all in
standard C.  Still, every compiler that implements __packed must implement
misaligned member stores correctly, whether the misaligned member is a struct
or scalar.

I think you're imagining a pretty severe compiler bug.

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the freebsd-bugs mailing list