This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Another Hurd config fix


It looks as if I overlooked something when updating the Hurd/i386
config files.  Could the following patch be included in gcc 2.95?  The
C library depends on this when optimizing some string functions for
the i486 (it decides whether it can freely use the %ebx register based
on the definition of __PIC__).  The Linux and FreeBSD/ELF ports
already have these defines.

Thanks,

Mark


1999-06-29  Mark Kettenis  <kettenis@gnu.org>

	* config/i386/gnu.h (CPP_SPEC): Define __PIC__ and __pic__ if
	-fPIC or -fpic is specified.


--- gcc/config/i386/gnu.h.~1~	Tue Jun 29 12:10:29 1999
+++ gcc/config/i386/gnu.h	Tue Jun 29 12:26:19 1999
@@ -14,7 +14,9 @@
   -Dunix -Asystem(unix) -Asystem(posix) -D__GNU__ -Asystem(gnu)"
 
 #undef CPP_SPEC
-#define CPP_SPEC "%(cpp_cpu) %{posix:-D_POSIX_SOURCE} %{bsd:-D_BSD_SOURCE}"
+#define CPP_SPEC "%(cpp_cpu) \
+  %{fPIC:-D__PIC__ -D__pic__} %{fpic:-D__PIC__ -D__pic__} \
+  %{posix:-D_POSIX_SOURCE} %{bsd:-D_BSD_SOURCE}"
 
 #undef CC1_SPEC
 #define CC1_SPEC "%(cc1_cpu)"


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]