Patch0: %{name}-buildsystem1.patch
Patch1: %{name}-buildsystem2.patch
Patch2: %{name}-lfs.patch
+Patch3: format-security.patch
BuildRequires: autoconf
BuildRequires: automake
BuildRequires: bison
%patch100 -p0
%patch0 -p1
%patch2 -p1
+%patch3 -p1
%if %{with bootstrap}
# note: "winsup" dirs below are special, handled by gcc's configure
--- /dev/null
+--- gcc-4.6.2/libcpp/expr.c~ 2011-04-29 00:39:59.000000000 +0200
++++ gcc-4.6.2/libcpp/expr.c 2012-12-07 22:38:30.102991906 +0100
+@@ -434,9 +434,9 @@
+ : N_("use of C99 long long integer constant");
+
+ if (CPP_OPTION (pfile, c99))
+- cpp_warning (pfile, CPP_W_LONG_LONG, message);
++ cpp_warning (pfile, CPP_W_LONG_LONG, "%s", message);
+ else
+- cpp_pedwarning (pfile, CPP_W_LONG_LONG, message);
++ cpp_pedwarning (pfile, CPP_W_LONG_LONG, "%s", message);
+ }
+
+ result |= CPP_N_INTEGER;