Uploaded image for project: 'RHEL'
  1. RHEL
  2. RHEL-38862

glibc: Disable type-based based aliasing for sockaddr structs [rhel-8.10.z]

    • None
    • Impediment
    • None
    • 1
    • sst_pt_libraries
    • ssg_platform_tools
    • None
    • None
    • 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.

            Unassigned Unassigned
            watson-automation Watson Automation
            Platform Tools - Libraries Bot Platform Tools - Libraries Bot
            Martin Coufal Martin Coufal
            Votes:
            0 Vote for this issue
            Watchers:
            10 Start watching this issue

              Created:
              Updated: