--- - branch: MAIN date: Mon Nov 8 10:57:09 UTC 2021 files: - new: '1.12' old: '1.11' path: src/tests/net/net/t_tcp.c pathrev: src/tests/net/net/t_tcp.c@1.12 type: modified id: 20211108T105709Z.3eb229486cce035617d1cb81a6b618b3c1f1c826 log: | 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. module: src subject: 'CVS commit: src/tests/net/net' unixtime: '1636369029' user: rin