This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Patch to i386/linux.h
- To: egcs-patches at cygnus dot com
- Subject: Patch to i386/linux.h
- From: Jason Merrill <jason at cygnus dot com>
- Date: Sun, 12 Jul 1998 01:31:54 -0700
A straightforward patch to make the common x86 defines work like
CPP_PREDEFINES.
Sun Jul 12 01:27:05 1998 Jason Merrill <jason@yorick.cygnus.com>
* i386/linux.h (CPP_SPEC): Handle -undef and -ansi.
Index: config/i386/linux.h
===================================================================
RCS file: /egcs/carton/cvsfiles/egcs/gcc/config/i386/linux.h,v
retrieving revision 1.9
diff -c -p -r1.9 linux.h
*** config/i386/linux.h 1998/07/05 23:02:03 1.9
--- config/i386/linux.h 1998/07/12 08:30:42
*************** Boston, MA 02111-1307, USA. */
*** 155,163 ****
#undef CPP_SPEC
#ifdef USE_GNULIBC_1
! #define CPP_SPEC "%(cpp_cpu) %[cpp_cpu] %{fPIC:-D__PIC__ -D__pic__} %{fpic:-D__PIC__ -D__pic__} %{posix:-D_POSIX_SOURCE}"
#else
! #define CPP_SPEC "%(cpp_cpu) %[cpp_cpu] %{fPIC:-D__PIC__ -D__pic__} %{fpic:-D__PIC__ -D__pic__} %{posix:-D_POSIX_SOURCE} %{pthread:-D_REENTRANT}"
#endif
#undef CC1_SPEC
--- 155,163 ----
#undef CPP_SPEC
#ifdef USE_GNULIBC_1
! #define CPP_SPEC "%{!undef:%{!ansi:%(cpp_cpu)} %[cpp_cpu]} %{fPIC:-D__PIC__ -D__pic__} %{fpic:-D__PIC__ -D__pic__} %{posix:-D_POSIX_SOURCE}"
#else
! #define CPP_SPEC "%{!undef:%{!ansi:%(cpp_cpu)} %[cpp_cpu]} %{fPIC:-D__PIC__ -D__pic__} %{fpic:-D__PIC__ -D__pic__} %{posix:-D_POSIX_SOURCE} %{pthread:-D_REENTRANT}"
#endif
#undef CC1_SPEC