https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112897

            Bug ID: 112897
           Summary: Have a configure option for all common flags used by
                    default on distros
           Product: gcc
           Version: 13.2.1
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: other
          Assignee: unassigned at gcc dot gnu.org
          Reporter: ago at gentoo dot org
  Target Milestone: ---

Historically, distro like Gentoo Hardened, used patches to make gcc compile by
default with pie/ssp.

After a lot of years these patches are not anymore needed because they have
been 'translated' into a configure option by upstream (-enable-default-pie
--enable-default-ssp), so I'm wondering about create a proper configure option
for the mostly used flags used on distros.

That means do the job once upstream, and then distros can use the proper
configure option while atm distros need to rebase patches on each gcc bump.

This is what I have found from a rapid search:

Debian:
https://salsa.debian.org/toolchain-team/gcc/-/blob/master/debian/patches/gcc-distro-specs.diff

Fedora (there are other unrelated patches):
https://download.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/source/tree/Packages/g/gcc-13.2.1-5.fc40.src.rpm

Gentoo (there are other unrelated patches):
https://gitweb.gentoo.org/proj/gcc-patches.git/tree/13.2.0/gentoo

What do you think?

Reply via email to