summaryrefslogtreecommitdiff
path: root/sys/dev
diff options
context:
space:
mode:
authorrin <rin@NetBSD.org>2021-11-08 10:57:09 +0000
committerrin <rin@NetBSD.org>2021-11-08 10:57:09 +0000
commit6f1c027ddc4300a80c9b388793536d722b50766c (patch)
tree564d6b5da91126cacc8798751c3aff4e07f7cce1 /sys/dev
parent8f33ae140419b659b7cd19e6a0df7d40590d9dbb (diff)
Fix (a kind of) violation of strict aliasing rule.
Due to the rule, "sin" and "sin6" can be treated as restrict pointers. Compilers seem to be confused by structure copy for those pointed by them before assignments. For aarch64eb, GCC 9 and 10 compile t_tcp.c rev 1.11 into a code, where fetch for "sin6->sin6_port" is preceding the structure copy "ss = bs". This results in failure of connect(2) with EADDRNOOTAVAIL.
Diffstat (limited to 'sys/dev')
0 files changed, 0 insertions, 0 deletions