* [gentoo-commits] gentoo commit in src/patchsets/gcc/4.6.2/gentoo: 10_all_default-fortify-source.patch README.history
@ 2011-12-04 8:11 Ryan Hill (dirtyepic)
0 siblings, 0 replies; 2+ messages in thread
From: Ryan Hill (dirtyepic) @ 2011-12-04 8:11 UTC (permalink / raw
To: gentoo-commits
dirtyepic 11/12/04 08:11:06
Modified: 10_all_default-fortify-source.patch README.history
Log:
Switch back to using default defines rather than spec rules to enable fortification.
Revision Changes Path
1.2 src/patchsets/gcc/4.6.2/gentoo/10_all_default-fortify-source.patch
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
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
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
Index: 10_all_default-fortify-source.patch
===================================================================
RCS file: /var/cvsroot/gentoo/src/patchsets/gcc/4.6.2/gentoo/10_all_default-fortify-source.patch,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- 10_all_default-fortify-source.patch 28 Oct 2011 23:20:34 -0000 1.1
+++ 10_all_default-fortify-source.patch 4 Dec 2011 08:11:06 -0000 1.2
@@ -1,6 +1,5 @@
Enable -D_FORTIFY_SOURCE=2 by default
-
--- a/gcc/doc/invoke.texi
+++ b/gcc/doc/invoke.texi
@@ -5973,6 +5973,11 @@ also turns on the following optimization flags:
@@ -15,13 +14,15 @@
@item -O3
@opindex O3
Optimize yet more. @option{-O3} turns on all optimizations specified
---- a/gcc/gcc.c
-+++ b/gcc/gcc.c
-@@ -741,6 +741,7 @@ static const char *cpp_unique_options =
- %{H} %C %{D*&U*&A*} %{i*} %Z %i\
- %{fmudflap:-D_MUDFLAP -include mf-runtime.h}\
- %{fmudflapth:-D_MUDFLAP -D_MUDFLAPTH -include mf-runtime.h}\
-+ %{!U_FORTIFY_SOURCE:%{!D_FORTIFY_SOURCE:%{!D_FORTIFY_SOURCE=*:-D_FORTIFY_SOURCE=2}}}\
- %{E|M|MM:%W{o*}}";
+--- a/gcc/c-family/c-cppbuiltin.c
++++ b/gcc/c-family/c-cppbuiltin.c
+@@ -731,6 +731,9 @@ c_cpp_builtins (cpp_reader *pfile)
+ builtin_define_with_value ("__REGISTER_PREFIX__", REGISTER_PREFIX, 0);
+ builtin_define_with_value ("__USER_LABEL_PREFIX__", user_label_prefix, 0);
- /* This contains cpp options which are common with cc1_options and are passed
++ /* Fortify Source enabled by default */
++ builtin_define_with_int_value ("_FORTIFY_SOURCE", 2);
++
+ /* Misc. */
+ if (flag_gnu89_inline)
+ cpp_define (pfile, "__GNUC_GNU_INLINE__");
1.4 src/patchsets/gcc/4.6.2/gentoo/README.history
file : http://sources.gentoo.org/viewvc.cgi/gentoo/src/patchsets/gcc/4.6.2/gentoo/README.history?rev=1.4&view=markup
plain: http://sources.gentoo.org/viewvc.cgi/gentoo/src/patchsets/gcc/4.6.2/gentoo/README.history?rev=1.4&content-type=text/plain
diff : http://sources.gentoo.org/viewvc.cgi/gentoo/src/patchsets/gcc/4.6.2/gentoo/README.history?r1=1.3&r2=1.4
Index: README.history
===================================================================
RCS file: /var/cvsroot/gentoo/src/patchsets/gcc/4.6.2/gentoo/README.history,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -r1.3 -r1.4
--- README.history 4 Dec 2011 07:02:41 -0000 1.3
+++ README.history 4 Dec 2011 08:11:06 -0000 1.4
@@ -1,4 +1,5 @@
1.1 2011-12-04
+ U 10_all_default-fortify-source.patch
+ 75_all_arm_4.7.0_strict-volatile-bitfields.patch
1.0 2011-10-30
^ permalink raw reply [flat|nested] 2+ messages in thread
* [gentoo-commits] gentoo commit in src/patchsets/gcc/4.6.2/gentoo: 10_all_default-fortify-source.patch README.history
@ 2016-01-13 5:01 Mike Frysinger (vapier)
0 siblings, 0 replies; 2+ messages in thread
From: Mike Frysinger (vapier) @ 2016-01-13 5:01 UTC (permalink / raw
To: gentoo-commits
vapier 16/01/13 05:01:47
Modified: README.history
Removed: 10_all_default-fortify-source.patch
Log:
stop enabling -D_FORTIFY_SOURCE by default in older versions for compatibility and simplicity -- these are really only used for old builds now and cross-compiling
Revision Changes Path
1.27 src/patchsets/gcc/4.6.2/gentoo/README.history
file : http://sources.gentoo.org/viewvc.cgi/gentoo/src/patchsets/gcc/4.6.2/gentoo/README.history?rev=1.27&view=markup
plain: http://sources.gentoo.org/viewvc.cgi/gentoo/src/patchsets/gcc/4.6.2/gentoo/README.history?rev=1.27&content-type=text/plain
diff : http://sources.gentoo.org/viewvc.cgi/gentoo/src/patchsets/gcc/4.6.2/gentoo/README.history?r1=1.26&r2=1.27
Index: README.history
===================================================================
RCS file: /var/cvsroot/gentoo/src/patchsets/gcc/4.6.2/gentoo/README.history,v
retrieving revision 1.26
retrieving revision 1.27
diff -u -r1.26 -r1.27
--- README.history 13 Jan 2016 04:55:24 -0000 1.26
+++ README.history 13 Jan 2016 05:01:47 -0000 1.27
@@ -1,5 +1,6 @@
1.6 [pending]
- 03_all_java-nomulti.patch
+ - 10_all_default-fortify-source.patch
- 12_all_default-warn-trampolines.patch
+ 39_all_cond-store-pr452445.patch
+ 40_all_superh-mieee-default-fix-pr33135.patch
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2016-01-13 5:01 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-12-04 8:11 [gentoo-commits] gentoo commit in src/patchsets/gcc/4.6.2/gentoo: 10_all_default-fortify-source.patch README.history Ryan Hill (dirtyepic)
-- strict thread matches above, loose matches on Subject: below --
2016-01-13 5:01 Mike Frysinger (vapier)
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox