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]

Patch to i386/linux.h


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


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