aboutsummaryrefslogtreecommitdiff
blob: 25e704faae1a2906ccd62fbea59f953d6b8da8e7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
2013-03-26  Peter S. Mazinger	<ps.m@gmx.net>, Magnus Granberg <zorry@gentoo.org>

	* gcc/config/rs6000/linux64.h (ASM_SPEC32): Change %{fpic:-K PIC} %{fPIC:-K PIC}
	to %{fpic|fPIC|fpie|fPIE:-K PIC}
	* gcc/config/rs6000/sysv4.h (DRIVER_SELF_SPECS): Add ESP_DRIVER_SELF_SPECS.
	(SUBTARGET_EXTRA_SPECS): Add ESP_EXTRA_SPECS.

--- a/gcc/config/rs6000/linux64.h.psm	2009-04-10 01:23:07.000000000 +0200
+++ b/gcc/config/rs6000/linux64.h	2009-09-23 12:34:26.000000000 +0200
@@ -162,7 +162,7 @@
 #endif
 
 #define ASM_SPEC32 "-a32 \
-%{mrelocatable} %{mrelocatable-lib} %{fpic:-K PIC} %{fPIC:-K PIC} \
+%{mrelocatable} %{mrelocatable-lib} %{fpic|fPIC|fpie|fPIE:-K PIC} \
 %{memb} %{!memb: %{msdata=eabi: -memb}} \
 %{!mlittle: %{!mlittle-endian: %{!mbig: %{!mbig-endian: \
     %{mcall-freebsd: -mbig} \
--- a/gcc/config/rs6000/sysv4.h	2013-01-10 21:38:27.000000000 +0100
+++ b/gcc/config/rs6000/sysv4.h	2013-03-26 01:30:33.257003189 +0100
@@ -627,8 +627,13 @@ extern int fixuplabelno;
 
 #define LINK_OS_DEFAULT_SPEC ""
 
+#ifdef ENABLE_ESP
+#define DRIVER_SELF_SPECS "%{mfpu=none: %<mfpu=* \
+	%<msingle-float %<mdouble-float}", ESP_DRIVER_SELF_SPECS
+#else
 #define DRIVER_SELF_SPECS "%{mfpu=none: %<mfpu=* \
  	%<msingle-float %<mdouble-float}"
+#endif
 
 /* Override rs6000.h definition.  */
 #undef	CPP_SPEC
@@ -933,7 +938,11 @@ ncrtn.o%s"
   { "cpp_os_openbsd",		CPP_OS_OPENBSD_SPEC },			\
   { "cpp_os_default",		CPP_OS_DEFAULT_SPEC },			\
   { "fbsd_dynamic_linker",	FBSD_DYNAMIC_LINKER },			\
-  SUBSUBTARGET_EXTRA_SPECS
+  SUBSUBTARGET_EXTRA_SPECS ESP_EXTRA_SPECS
+  
+#ifndef ENABLE_ESP
+#define ESP_EXTRA_SPECS
+#endif
 
 #define	SUBSUBTARGET_EXTRA_SPECS