Release: 2
Epoch: 1
Patch1: gcc-bug51969.patch
+Patch2: format-security.patch
# Patches 1xx are taken form Atmel official AVR8-GNU toolchain version 3.4.0.663.
Patch100: 200-gcc-libiberty-Makefile.in.patch
Patch101: 300-gcc-fixedpoint-3-4-2010.patch
%setup -q -n gcc-%{version}
cd gcc/config/%{target} && %undos -f c,h && cd -
%patch1 -p2
+%patch2 -p1
%patch100 -p0
%patch101 -p0
%patch102 -p0
--- /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;