Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 06 Mar 2017 17:59:45 +0000
From:      bugzilla-noreply@freebsd.org
To:        freebsd-bugs@FreeBSD.org
Subject:   [Bug 217532] sbin/newfs_nandfs/newfs_nandfs.c warning on unaligned pointer value
Message-ID:  <bug-217532-8-1tkUsCytVf@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-217532-8@https.bugs.freebsd.org/bugzilla/>
References:  <bug-217532-8@https.bugs.freebsd.org/bugzilla/>

next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D217532

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

__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 stru=
ct
or scalar.

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

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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-217532-8-1tkUsCytVf>