gcc/libgcc/config
Rainer Orth 10e48e3927 netbsd.h (ENABLE_EXECUTE_STACK): Remove.
2011-05-29  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
	    Joseph Myers  <joseph@codesourcery.com>

	gcc:
	* config/alpha/netbsd.h (ENABLE_EXECUTE_STACK): Remove.
	(HAVE_ENABLE_EXECUTE_STACK): Define.
	* config/alpha/osf5.h (ENABLE_EXECUTE_STACK): Remove.
	(HAVE_ENABLE_EXECUTE_STACK): Define.
	* config/darwin.h (ENABLE_EXECUTE_STACK): Remove.
	(HAVE_ENABLE_EXECUTE_STACK): Define.
	* config/i386/mingw32.h (MINGW_ENABLE_EXECUTE_STACK): Remove.
	(ENABLE_EXECUTE_STACK): Remove.
	(HAVE_ENABLE_EXECUTE_STACK): Define.
	[IN_LIBGCC2]: Don't include <windows.h>.
	* config/i386/netbsd-elf.h (ENABLE_EXECUTE_STACK): Remove.
	(HAVE_ENABLE_EXECUTE_STACK): Define.
	* config/i386/netbsd64.h (ENABLE_EXECUTE_STACK): Remove.
	(HAVE_ENABLE_EXECUTE_STACK): Define.
	* config/netbsd.h (NETBSD_ENABLE_EXECUTE_STACK): Remove.
	* config/openbsd.h (ENABLE_EXECUTE_STACK): Remove.
	(HAVE_ENABLE_EXECUTE_STACK): Define.
	* config/sol2.h (ENABLE_EXECUTE_STACK): Remove.
	(HAVE_ENABLE_EXECUTE_STACK): Define.
	* config/sparc/freebsd.h (ENABLE_EXECUTE_STACK): Remove.
	(HAVE_ENABLE_EXECUTE_STACK): Define.
	* config/sparc/netbsd-elf.h (ENABLE_EXECUTE_STACK): Remove.
	(HAVE_ENABLE_EXECUTE_STACK): Define.
	* config/alpha/alpha.c (alpha_trampoline_init): Test
	HAVE_ENABLE_EXECUTE_STACK.
	* config/i386/i386.c (ix86_trampoline_init): Likewise.
	* config/sparc/sparc.c (sparc32_initialize_trampoline): Likewise.
	(sparc64_initialize_trampoline): Likewise.
	* libgcc2.c [L_enable_execute_stack]: Remove.
	* system.h (ENABLE_EXECUTE_STACK): Poison.
	* doc/tm.texi.in (Trampolines, ENABLE_EXECUTE_STACK): Remove.
	* doc/tm.texi: Regenerate.
	* Makefile.in (LIBGCC2_CFLAGS): Add -fbuilding-libgcc.

	gcc/c-family:
	* c.opt (fbuilding-libgcc): New option.
	* c-cppbuiltin.c (c_cpp_builtins): Define
	__LIBGCC_TRAMPOLINE_SIZE__ if flag_building_libgcc.

	libgcc:
	* enable-execute-stack-empty.c: New file.
	* enable-execute-stack-mprotect.c: New file.
	* config/i386/enable-execute-stack-mingw32.c: New file.
	* config.host (enable_execute_stack): New variable.
	Select appropriate variants.
	* configure.ac: Link enable-execute-stack.c to
	$enable_execute_stack.
	* configure: Regenerate.
	* Makefile.in (LIB2ADD): Add enable-execute-stack.c.
	(lib2funcs): Remove _enable_execute_stack.

Co-Authored-By: Joseph Myers <joseph@codesourcery.com>

From-SVN: r174843
2011-06-09 12:30:46 +00:00
..
alpha linux.h (MD_UNWIND_SUPPORT): Remove. 2011-06-03 18:30:39 +00:00
arm config.gcc (libgcc_tm_file): Define instead of including files from ../../libgcc/config/ in tm_file. 2011-05-10 15:41:47 +01:00
avr
bfin linux.h (MD_UNWIND_SUPPORT): Remove. 2011-06-03 18:30:39 +00:00
frv
i386 netbsd.h (ENABLE_EXECUTE_STACK): Remove. 2011-06-09 12:30:46 +00:00
ia64 linux.h (MD_UNWIND_SUPPORT): Remove. 2011-06-03 18:30:39 +00:00
libbid
lm32
m68k linux.h (MD_UNWIND_SUPPORT): Remove. 2011-06-03 18:30:39 +00:00
microblaze
mips iris6.h (ENDFILE_SPEC): Use crtfastmath.o if -ffast-math etc. 2011-06-06 09:49:47 +00:00
mmix
moxie
pa linux.h (MD_UNWIND_SUPPORT): Remove. 2011-06-03 18:30:39 +00:00
rs6000 linux.h (MD_UNWIND_SUPPORT): Remove. 2011-06-03 18:30:39 +00:00
rx
s390 linux.h (MD_UNWIND_SUPPORT): Remove. 2011-06-03 18:30:39 +00:00
sh linux.h (MD_UNWIND_SUPPORT): Remove. 2011-06-03 18:30:39 +00:00
sparc linux.h (MD_UNWIND_SUPPORT): Remove. 2011-06-03 18:30:39 +00:00
xtensa linux.h (MD_UNWIND_SUPPORT): Remove. 2011-06-03 18:30:39 +00:00
gmon-sol2.c gmon-sol2.c: Reindent. 2011-06-01 14:46:24 +00:00
no-unwind.h linux.h (MD_UNWIND_SUPPORT): Remove. 2011-06-03 18:30:39 +00:00
t-crtfm t-slibgcc-darwin: Move to ... 2011-06-01 14:39:17 +00:00
t-crtin t-slibgcc-darwin: Move to ... 2011-06-01 14:39:17 +00:00
t-gnu-prefix libgcc2.h (__NW, __NDW): Define using a __gnu_ prefix if LIBGCC2_GNU_PREFIX is defined. 2011-05-25 12:11:42 +00:00
t-rtems t-slibgcc-darwin: Move to ... 2011-06-01 14:39:17 +00:00
t-slibgcc t-slibgcc-darwin: Move to ... 2011-06-01 14:39:17 +00:00
t-slibgcc-darwin re PR bootstrap/49173 (No rule to make target ../../../../work/libgcc/../gcc/libgcc-std.ver', needed by libgcc.map'.) 2011-05-27 07:53:51 +00:00
t-slibgcc-elf-ver t-slibgcc-darwin: Move to ... 2011-06-01 14:39:17 +00:00
t-slibgcc-gld t-slibgcc-darwin: Move to ... 2011-06-01 14:39:17 +00:00
t-slibgcc-sld t-slibgcc-darwin: Move to ... 2011-06-01 14:39:17 +00:00
t-softfp
t-sol2 Makefile.in (LIB2ADDEHDEP): Remove. 2011-06-03 16:07:21 +00:00
t-stack
t-tls