1 |
dirtyepic 11/12/04 08:11:06 |
2 |
|
3 |
Modified: 10_all_default-fortify-source.patch README.history |
4 |
Log: |
5 |
Switch back to using default defines rather than spec rules to enable fortification. |
6 |
|
7 |
Revision Changes Path |
8 |
1.2 src/patchsets/gcc/4.6.2/gentoo/10_all_default-fortify-source.patch |
9 |
|
10 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo/src/patchsets/gcc/4.6.2/gentoo/10_all_default-fortify-source.patch?rev=1.2&view=markup |
11 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo/src/patchsets/gcc/4.6.2/gentoo/10_all_default-fortify-source.patch?rev=1.2&content-type=text/plain |
12 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo/src/patchsets/gcc/4.6.2/gentoo/10_all_default-fortify-source.patch?r1=1.1&r2=1.2 |
13 |
|
14 |
Index: 10_all_default-fortify-source.patch |
15 |
=================================================================== |
16 |
RCS file: /var/cvsroot/gentoo/src/patchsets/gcc/4.6.2/gentoo/10_all_default-fortify-source.patch,v |
17 |
retrieving revision 1.1 |
18 |
retrieving revision 1.2 |
19 |
diff -u -r1.1 -r1.2 |
20 |
--- 10_all_default-fortify-source.patch 28 Oct 2011 23:20:34 -0000 1.1 |
21 |
+++ 10_all_default-fortify-source.patch 4 Dec 2011 08:11:06 -0000 1.2 |
22 |
@@ -1,6 +1,5 @@ |
23 |
Enable -D_FORTIFY_SOURCE=2 by default |
24 |
|
25 |
- |
26 |
--- a/gcc/doc/invoke.texi |
27 |
+++ b/gcc/doc/invoke.texi |
28 |
@@ -5973,6 +5973,11 @@ also turns on the following optimization flags: |
29 |
@@ -15,13 +14,15 @@ |
30 |
@item -O3 |
31 |
@opindex O3 |
32 |
Optimize yet more. @option{-O3} turns on all optimizations specified |
33 |
---- a/gcc/gcc.c |
34 |
-+++ b/gcc/gcc.c |
35 |
-@@ -741,6 +741,7 @@ static const char *cpp_unique_options = |
36 |
- %{H} %C %{D*&U*&A*} %{i*} %Z %i\ |
37 |
- %{fmudflap:-D_MUDFLAP -include mf-runtime.h}\ |
38 |
- %{fmudflapth:-D_MUDFLAP -D_MUDFLAPTH -include mf-runtime.h}\ |
39 |
-+ %{!U_FORTIFY_SOURCE:%{!D_FORTIFY_SOURCE:%{!D_FORTIFY_SOURCE=*:-D_FORTIFY_SOURCE=2}}}\ |
40 |
- %{E|M|MM:%W{o*}}"; |
41 |
+--- a/gcc/c-family/c-cppbuiltin.c |
42 |
++++ b/gcc/c-family/c-cppbuiltin.c |
43 |
+@@ -731,6 +731,9 @@ c_cpp_builtins (cpp_reader *pfile) |
44 |
+ builtin_define_with_value ("__REGISTER_PREFIX__", REGISTER_PREFIX, 0); |
45 |
+ builtin_define_with_value ("__USER_LABEL_PREFIX__", user_label_prefix, 0); |
46 |
|
47 |
- /* This contains cpp options which are common with cc1_options and are passed |
48 |
++ /* Fortify Source enabled by default */ |
49 |
++ builtin_define_with_int_value ("_FORTIFY_SOURCE", 2); |
50 |
++ |
51 |
+ /* Misc. */ |
52 |
+ if (flag_gnu89_inline) |
53 |
+ cpp_define (pfile, "__GNUC_GNU_INLINE__"); |
54 |
|
55 |
|
56 |
|
57 |
1.4 src/patchsets/gcc/4.6.2/gentoo/README.history |
58 |
|
59 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo/src/patchsets/gcc/4.6.2/gentoo/README.history?rev=1.4&view=markup |
60 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo/src/patchsets/gcc/4.6.2/gentoo/README.history?rev=1.4&content-type=text/plain |
61 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo/src/patchsets/gcc/4.6.2/gentoo/README.history?r1=1.3&r2=1.4 |
62 |
|
63 |
Index: README.history |
64 |
=================================================================== |
65 |
RCS file: /var/cvsroot/gentoo/src/patchsets/gcc/4.6.2/gentoo/README.history,v |
66 |
retrieving revision 1.3 |
67 |
retrieving revision 1.4 |
68 |
diff -u -r1.3 -r1.4 |
69 |
--- README.history 4 Dec 2011 07:02:41 -0000 1.3 |
70 |
+++ README.history 4 Dec 2011 08:11:06 -0000 1.4 |
71 |
@@ -1,4 +1,5 @@ |
72 |
1.1 2011-12-04 |
73 |
+ U 10_all_default-fortify-source.patch |
74 |
+ 75_all_arm_4.7.0_strict-volatile-bitfields.patch |
75 |
|
76 |
1.0 2011-10-30 |