Don't override USER_H on FreeBSD

Loren James Rittle rittle@latour.rsch.comm.mot.com
Mon Aug 2 16:09:00 GMT 1999


[This is a resend due to possible ORBS rejection.]

Mon Aug  2 16:43:34 CDT 1999 Loren Rittle  <ljrittle@acm.org>

       * config/t-freebsd: Do not override USER_H.
       * ginclude/stdarg.h (__gnuc_va_list): Adhere to definition of
			   va_list in FreeBSD system headers.
       * ginclude/stddef.h (_BSD_PTRDIFF_T_): Do not redefine after use.
       (_BSD_SIZE_T_, _BSD_WCHAR_T_): Likewise.

Index: gcc/config/t-freebsd
===================================================================
RCS file: /cvs/egcs/egcs/gcc/config/t-freebsd,v
retrieving revision 1.1.2.1
diff -p -r1.1.2.1 t-freebsd
*** t-freebsd	1999/06/02 00:02:39	1.1.2.1
--- t-freebsd	1999/07/30 05:20:13
***************
*** 1,4 ****
  # Don't run fixproto
  STMP_FIXPROTO =
- # Use only native include files
- USER_H = $(EXTRA_HEADERS) $(LANG_EXTRA_HEADERS)
--- 1,2 ----
Index: gcc/ginclude/stdarg.h
===================================================================
RCS file: /cvs/egcs/egcs/gcc/ginclude/stdarg.h,v
retrieving revision 1.9
diff -p -r1.9 stdarg.h
*** stdarg.h	1999/05/08 01:52:35	1.9
--- stdarg.h	1999/07/30 05:20:13
***************
*** 67,73 ****
  
  #ifndef __GNUC_VA_LIST
  #define __GNUC_VA_LIST
! #if defined(__svr4__) || defined(_AIX) || defined(_M_UNIX) || defined(__NetBSD__)
  typedef char *__gnuc_va_list;
  #else
  typedef void *__gnuc_va_list;
--- 67,73 ----
  
  #ifndef __GNUC_VA_LIST
  #define __GNUC_VA_LIST
! #if defined(__svr4__) || defined(_AIX) || defined(_M_UNIX) || defined(__NetBSD__) || defined(__FreeBSD__)
  typedef char *__gnuc_va_list;
  #else
  typedef void *__gnuc_va_list;
Index: gcc/ginclude/stddef.h
===================================================================
RCS file: /cvs/egcs/egcs/gcc/ginclude/stddef.h,v
retrieving revision 1.4
diff -p -r1.4 stddef.h
*** stddef.h	1998/12/16 21:19:25	1.4
--- stddef.h	1999/07/30 05:20:13
*************** _TYPE_wchar_t;
*** 109,115 ****
  #define _T_PTRDIFF
  #define __PTRDIFF_T
  #define _PTRDIFF_T_
- #define _BSD_PTRDIFF_T_
  #define ___int_ptrdiff_t_h
  #define _GCC_PTRDIFF_T
  #ifndef __PTRDIFF_TYPE__
--- 109,114 ----
*************** typedef __PTRDIFF_TYPE__ ptrdiff_t;
*** 156,162 ****
  #define _T_SIZE
  #define __SIZE_T
  #define _SIZE_T_
- #define _BSD_SIZE_T_
  #define _SIZE_T_DEFINED_
  #define _SIZE_T_DEFINED
  #define ___int_size_t_h
--- 155,160 ----
*************** typedef long ssize_t;
*** 217,223 ****
  #define _T_WCHAR
  #define __WCHAR_T
  #define _WCHAR_T_
- #define _BSD_WCHAR_T_
  #define _WCHAR_T_DEFINED_
  #define _WCHAR_T_DEFINED
  #define _WCHAR_T_H
--- 215,220 ----


More information about the Gcc-patches mailing list