-
Bug
-
Resolution: Unresolved
-
Normal
-
rhel-8.10.z
-
None
-
None
-
rhel-sst-pt-libraries
-
ssg_platform_tools
-
1
-
False
-
No
-
Red Hat Enterprise Linux
-
None
-
None
-
None
-
Unspecified Release Note Type - Unknown
-
None
This is a clone of issue RHEL-38861 to use for version rhel-8.10.z
–
Original description:
Upstream in glibc, we fixed a code generation issue with later GCC versions which break certain common coding patterns involving socket addresses. We should consider backporting this commit:
commit 8d7b6b4cb27d4dec1dd5f7960298c1699275f962 Author: Florian Weimer <fweimer@redhat.com> Date: Sat May 18 09:33:19 2024 +0200 socket: Use may_alias on sockaddr structs (bug 19622) This supports common coding patterns. The GCC C front end before version 7 rejects the may_alias attribute on a struct definition if it was not present in a previous forward declaration, so this attribute can only be conditionally applied. This implements the spirit of the change in Austin Group issue 1641. Suggested-by: Marek Polacek <polacek@redhat.com> Suggested-by: Jakub Jelinek <jakub@redhat.com> Reviewed-by: Sam James <sam@gentoo.org> Reviewed-by: Carlos O'Donell <carlos@redhat.com>
For RHEL 8, this is understood to be mostly for the benefit of GCC Toolset compilers. System GCC is expected to optimize less aggressively.
- clones
-
RHEL-38861 glibc: Disable type-based based aliasing for sockaddr structs [rhel-9]
-
- Planning
-