gcc/gcc14-Wno-format-security.patch

63 lines
2.1 KiB
Diff
Raw Normal View History

2022-01-08 11:35:44 +00:00
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
2022-01-25 14:24:01 +00:00
@@ -570,7 +570,7 @@ AC_ARG_ENABLE(build-format-warnings,
2022-01-08 11:35:44 +00:00
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 ],
2022-01-25 14:24:01 +00:00
[-Wcast-qual $wf_opt])),
2022-01-08 11:35:44 +00:00
--- gcc/configure.jj 2017-02-13 12:20:52.000000000 +0100
+++ gcc/configure 2017-02-25 12:42:50.041946391 +0100
2022-01-25 14:24:01 +00:00
@@ -7077,7 +7077,7 @@ else
2022-01-08 11:35:44 +00:00
fi
if test $enable_build_format_warnings = no; then :
- wf_opt=-Wno-format
+ wf_opt="-Wno-format -Wno-format-security"
else
wf_opt=
fi
2024-01-13 11:49:39 +00:00
--- Makefile.tpl.jj 2023-11-29 13:21:41.680292662 +0100
+++ Makefile.tpl 2023-11-29 13:23:24.677839321 +0100
@@ -448,9 +448,9 @@ LDFLAGS = @LDFLAGS@
2022-01-08 11:35:44 +00:00
LIBCFLAGS = $(CFLAGS)
CXXFLAGS = @CXXFLAGS@
LIBCXXFLAGS = $(CXXFLAGS) -fno-implicit-templates
-GOCFLAGS = $(CFLAGS)
2024-01-13 11:49:39 +00:00
-GDCFLAGS = @GDCFLAGS@
2023-01-15 12:51:18 +00:00
-GM2FLAGS = $(CFLAGS)
2022-01-08 11:35:44 +00:00
+GOCFLAGS = $(filter-out -Wformat-security,$(CFLAGS))
2024-01-13 11:49:39 +00:00
+GDCFLAGS = $(filter-out -Wformat-security,@GDCFLAGS@)
2023-01-15 12:51:18 +00:00
+GM2FLAGS = $(filter-out -Wformat-security,$(CFLAGS))
2022-01-08 11:35:44 +00:00
2024-01-13 11:49:39 +00:00
PKG_CONFIG_PATH = @PKG_CONFIG_PATH@
--- Makefile.in.jj 2023-11-29 13:21:41.691292507 +0100
+++ Makefile.in 2023-11-29 13:24:01.254323180 +0100
@@ -445,9 +445,9 @@ LDFLAGS = @LDFLAGS@
2022-01-08 11:35:44 +00:00
LIBCFLAGS = $(CFLAGS)
CXXFLAGS = @CXXFLAGS@
LIBCXXFLAGS = $(CXXFLAGS) -fno-implicit-templates
-GOCFLAGS = $(CFLAGS)
2024-01-13 11:49:39 +00:00
-GDCFLAGS = @GDCFLAGS@
2023-01-15 12:51:18 +00:00
-GM2FLAGS = $(CFLAGS)
2022-01-08 11:35:44 +00:00
+GOCFLAGS = $(filter-out -Wformat-security,$(CFLAGS))
2024-01-13 11:49:39 +00:00
+GDCFLAGS = $(filter-out -Wformat-security,@GDCFLAGS@)
2023-01-15 12:51:18 +00:00
+GM2FLAGS = $(filter-out -Wformat-security,$(CFLAGS))
2022-01-08 11:35:44 +00:00
2024-01-13 11:49:39 +00:00
PKG_CONFIG_PATH = @PKG_CONFIG_PATH@