Mageia Bugzilla – Attachment 14028 Details for
Bug 32355
arm-none-eabi-gcc-cs-13.2.0 is needed to build libreboot from source [PKG REQUEST]
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
New Account
|
Forgot Password
[patch]
gcc12-Wno-format-security patch
gcc12-Wno-format-security.patch (text/plain), 2.31 KB, created by
Kristoffer Grundström
on 2023-10-03 05:52:13 CEST
(
hide
)
Description:
gcc12-Wno-format-security patch
Filename:
MIME Type:
Creator:
Kristoffer Grundström
Created:
2023-10-03 05:52:13 CEST
Size:
2.31 KB
patch
obsolete
>2022-01-07 Jakub Jelinek <jakub@redhat.com> > > * Makefile.tpl (GOCFLAGS, GDCFLAGS): Filter out -Wformat-security. > * Makefile.in: Regenerated. > >2017-02-25 Jakub Jelinek <jakub@redhat.com> > > * configure.ac: When adding -Wno-format, also add -Wno-format-security. > * configure: Regenerated. > >--- gcc/configure.ac.jj 2017-02-13 12:20:53.000000000 +0100 >+++ gcc/configure.ac 2017-02-25 12:42:32.859175403 +0100 >@@ -570,7 +570,7 @@ AC_ARG_ENABLE(build-format-warnings, > AS_HELP_STRING([--disable-build-format-warnings],[don't use -Wformat while building GCC]), > [],[enable_build_format_warnings=yes]) > AS_IF([test $enable_build_format_warnings = no], >- [wf_opt=-Wno-format],[wf_opt=]) >+ [wf_opt="-Wno-format -Wno-format-security"],[wf_opt=]) > ACX_PROG_CXX_WARNING_OPTS( > m4_quote(m4_do([-W -Wall -Wno-narrowing -Wwrite-strings ], > [-Wcast-qual $wf_opt])), >--- gcc/configure.jj 2017-02-13 12:20:52.000000000 +0100 >+++ gcc/configure 2017-02-25 12:42:50.041946391 +0100 >@@ -7077,7 +7077,7 @@ else > fi > > if test $enable_build_format_warnings = no; then : >- wf_opt=-Wno-format >+ wf_opt="-Wno-format -Wno-format-security" > else > wf_opt= > fi >--- Makefile.tpl.jj 2021-12-30 15:12:42.188164847 +0100 >+++ Makefile.tpl 2022-01-07 12:06:12.115550714 +0100 >@@ -446,9 +446,9 @@ LDFLAGS = @LDFLAGS@ > LIBCFLAGS = $(CFLAGS) > CXXFLAGS = @CXXFLAGS@ > LIBCXXFLAGS = $(CXXFLAGS) -fno-implicit-templates >-GOCFLAGS = $(CFLAGS) >-GDCFLAGS = $(CFLAGS) >-GM2FLAGS = $(CFLAGS) >+GOCFLAGS = $(filter-out -Wformat-security,$(CFLAGS)) >+GDCFLAGS = $(filter-out -Wformat-security,$(CFLAGS)) >+GM2FLAGS = $(filter-out -Wformat-security,$(CFLAGS)) > > # Pass additional PGO and LTO compiler options to the PGO build. > BUILD_CFLAGS = $(PGO_BUILD_CFLAGS) $(PGO_BUILD_LTO_CFLAGS) >--- Makefile.in.jj 2021-12-30 15:12:42.188164847 +0100 >+++ Makefile.in 2022-01-07 12:06:27.335334561 +0100 >@@ -446,9 +446,9 @@ LDFLAGS = @LDFLAGS@ > LIBCFLAGS = $(CFLAGS) > CXXFLAGS = @CXXFLAGS@ > LIBCXXFLAGS = $(CXXFLAGS) -fno-implicit-templates >-GOCFLAGS = $(CFLAGS) >-GDCFLAGS = $(CFLAGS) >-GM2FLAGS = $(CFLAGS) >+GOCFLAGS = $(filter-out -Wformat-security,$(CFLAGS)) >+GDCFLAGS = $(filter-out -Wformat-security,$(CFLAGS)) >+GM2FLAGS = $(filter-out -Wformat-security,$(CFLAGS)) > > # Pass additional PGO and LTO compiler options to the PGO build. > BUILD_CFLAGS = $(PGO_BUILD_CFLAGS) $(PGO_BUILD_LTO_CFLAGS)
2022-01-07 Jakub Jelinek <jakub@redhat.com> * Makefile.tpl (GOCFLAGS, GDCFLAGS): Filter out -Wformat-security. * Makefile.in: Regenerated. 2017-02-25 Jakub Jelinek <jakub@redhat.com> * configure.ac: When adding -Wno-format, also add -Wno-format-security. * configure: Regenerated. --- gcc/configure.ac.jj 2017-02-13 12:20:53.000000000 +0100 +++ gcc/configure.ac 2017-02-25 12:42:32.859175403 +0100 @@ -570,7 +570,7 @@ AC_ARG_ENABLE(build-format-warnings, AS_HELP_STRING([--disable-build-format-warnings],[don't use -Wformat while building GCC]), [],[enable_build_format_warnings=yes]) AS_IF([test $enable_build_format_warnings = no], - [wf_opt=-Wno-format],[wf_opt=]) + [wf_opt="-Wno-format -Wno-format-security"],[wf_opt=]) ACX_PROG_CXX_WARNING_OPTS( m4_quote(m4_do([-W -Wall -Wno-narrowing -Wwrite-strings ], [-Wcast-qual $wf_opt])), --- gcc/configure.jj 2017-02-13 12:20:52.000000000 +0100 +++ gcc/configure 2017-02-25 12:42:50.041946391 +0100 @@ -7077,7 +7077,7 @@ else fi if test $enable_build_format_warnings = no; then : - wf_opt=-Wno-format + wf_opt="-Wno-format -Wno-format-security" else wf_opt= fi --- Makefile.tpl.jj 2021-12-30 15:12:42.188164847 +0100 +++ Makefile.tpl 2022-01-07 12:06:12.115550714 +0100 @@ -446,9 +446,9 @@ LDFLAGS = @LDFLAGS@ LIBCFLAGS = $(CFLAGS) CXXFLAGS = @CXXFLAGS@ LIBCXXFLAGS = $(CXXFLAGS) -fno-implicit-templates -GOCFLAGS = $(CFLAGS) -GDCFLAGS = $(CFLAGS) -GM2FLAGS = $(CFLAGS) +GOCFLAGS = $(filter-out -Wformat-security,$(CFLAGS)) +GDCFLAGS = $(filter-out -Wformat-security,$(CFLAGS)) +GM2FLAGS = $(filter-out -Wformat-security,$(CFLAGS)) # Pass additional PGO and LTO compiler options to the PGO build. BUILD_CFLAGS = $(PGO_BUILD_CFLAGS) $(PGO_BUILD_LTO_CFLAGS) --- Makefile.in.jj 2021-12-30 15:12:42.188164847 +0100 +++ Makefile.in 2022-01-07 12:06:27.335334561 +0100 @@ -446,9 +446,9 @@ LDFLAGS = @LDFLAGS@ LIBCFLAGS = $(CFLAGS) CXXFLAGS = @CXXFLAGS@ LIBCXXFLAGS = $(CXXFLAGS) -fno-implicit-templates -GOCFLAGS = $(CFLAGS) -GDCFLAGS = $(CFLAGS) -GM2FLAGS = $(CFLAGS) +GOCFLAGS = $(filter-out -Wformat-security,$(CFLAGS)) +GDCFLAGS = $(filter-out -Wformat-security,$(CFLAGS)) +GM2FLAGS = $(filter-out -Wformat-security,$(CFLAGS)) # Pass additional PGO and LTO compiler options to the PGO build. BUILD_CFLAGS = $(PGO_BUILD_CFLAGS) $(PGO_BUILD_LTO_CFLAGS)
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 32355
:
14026
|
14027
| 14028