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

            Bug ID: 125233
           Summary: Useless LINK_SSP_SPEC if TARGET_LIBC_PROVIDES_SSP is
                    defined
           Product: gcc
           Version: 17.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: driver
          Assignee: unassigned at gcc dot gnu.org
          Reporter: hjl.tools at gmail dot com
  Target Milestone: ---

gcc.cc has

#ifndef LINK_SSP_SPEC
#ifdef TARGET_LIBC_PROVIDES_SSP
#define LINK_SSP_SPEC "%{fstack-protector|fstack-protector-all" \
                       "|fstack-protector-strong|fstack-protector-explicit:}"   
#else
#define LINK_SSP_SPEC "%{fstack-protector|fstack-protector-all" \
                       "|fstack-protector-strong|fstack-protector-explicit" \
                       ":-lssp_nonshared -lssp}"
#endif
#endif

#define LINK_SSP_SPEC "%{fstack-protector|fstack-protector-all" \
                       "|fstack-protector-strong|fstack-protector-explicit:}"

can be replaced with

#define LINK_SSP_SPEC ""

Reply via email to