Module Name:    src
Committed By:   matt
Date:           Thu Feb 10 07:18:29 UTC 2011

Modified Files:
        src/gnu/dist/gcc4/gcc: config.gcc
        src/gnu/dist/gcc4/gcc/config/rs6000: netbsd.h
        src/gnu/usr.bin/gcc4/arch/powerpc: tm.h

Log Message:
Default NetBSD to -msecure-plt now.


To generate a diff of this commit:
cvs rdiff -u -r1.21 -r1.22 src/gnu/dist/gcc4/gcc/config.gcc
cvs rdiff -u -r1.4 -r1.5 src/gnu/dist/gcc4/gcc/config/rs6000/netbsd.h
cvs rdiff -u -r1.4 -r1.5 src/gnu/usr.bin/gcc4/arch/powerpc/tm.h

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/gnu/dist/gcc4/gcc/config.gcc
diff -u src/gnu/dist/gcc4/gcc/config.gcc:1.21 src/gnu/dist/gcc4/gcc/config.gcc:1.22
--- src/gnu/dist/gcc4/gcc/config.gcc:1.21	Sun Jan 23 06:29:52 2011
+++ src/gnu/dist/gcc4/gcc/config.gcc	Thu Feb 10 07:18:29 2011
@@ -1704,6 +1704,9 @@
 	    tmake_file="${tmake_file} rs6000/t-netbsd"
 	    ;;
 	esac
+	if test x${enable_secureplt} != xno; then
+		tm_file="rs6000/secureplt.h ${tm_file}"
+	fi
 	extra_options="${extra_options} rs6000/sysv4.opt rs6000/linux64.opt"
 	;;
 powerpc-*-chorusos*)

Index: src/gnu/dist/gcc4/gcc/config/rs6000/netbsd.h
diff -u src/gnu/dist/gcc4/gcc/config/rs6000/netbsd.h:1.4 src/gnu/dist/gcc4/gcc/config/rs6000/netbsd.h:1.5
--- src/gnu/dist/gcc4/gcc/config/rs6000/netbsd.h:1.4	Tue Jan 18 00:19:28 2011
+++ src/gnu/dist/gcc4/gcc/config/rs6000/netbsd.h	Thu Feb 10 07:18:29 2011
@@ -44,6 +44,8 @@
       builtin_define ("__powerpc__");		\
       builtin_assert ("cpu=powerpc");		\
       builtin_assert ("machine=powerpc");	\
+      if (TARGET_SECURE_PLT)			\
+        builtin_define ("_SECURE_PLT");		\
     }						\
   while (0)
 
@@ -111,6 +113,7 @@
 
 #undef  SUBTARGET_EXTRA_SPECS
 #define SUBTARGET_EXTRA_SPECS					\
+  { "cc1_secure_plt_default",	CC1_SECURE_PLT_DEFAULT_SPEC },	\
   { "netbsd_link_spec",		NETBSD_LINK_SPEC_ELF },		\
   { "netbsd_entry_point",	NETBSD_ENTRY_POINT },		\
   { "netbsd_endfile_spec",	NETBSD_ENDFILE_SPEC },

Index: src/gnu/usr.bin/gcc4/arch/powerpc/tm.h
diff -u src/gnu/usr.bin/gcc4/arch/powerpc/tm.h:1.4 src/gnu/usr.bin/gcc4/arch/powerpc/tm.h:1.5
--- src/gnu/usr.bin/gcc4/arch/powerpc/tm.h:1.4	Mon Jul  3 00:24:46 2006
+++ src/gnu/usr.bin/gcc4/arch/powerpc/tm.h	Thu Feb 10 07:18:29 2011
@@ -9,6 +9,7 @@
 #endif
 #ifdef IN_GCC
 # include "options.h"
+# include "config/rs6000/secureplt.h"
 # include "config/rs6000/rs6000.h"
 # include "config/dbxelf.h"
 # include "config/elfos.h"

Reply via email to