PATCH: Update config/rs6000/freebsd.h to match initial system compiler

Loren James Rittle rittle@latour.rsch.comm.mot.com
Tue Apr 29 12:07:00 GMT 2003


Under private cover, David O'Brien sent me a few patches developed
while he ported/stabilized gcc 3.2.X/3.3 to new CPUs members of the
FreeBSD family.  Approved and committed to mainline and 3.3.  For the
record, the patches I approve here today have all been tested against
the exact version of the FreeBSD configuration files in the FSF tree;
and are limited to files only used by forthcoming FreeBSD/CPU releases.

	* config/rs6000/freebsd.h (LINK_SHLIB_SPEC): New macro.
	(SIZE_TYPE): New macro.

Index: gcc/config/rs6000/freebsd.h
===================================================================
RCS file: /cvs/gcc/gcc/gcc/config/rs6000/freebsd.h,v
retrieving revision 1.4
diff -c -r1.4 freebsd.h
*** gcc/config/rs6000/freebsd.h	13 Apr 2003 17:51:06 -0000	1.4
--- gcc/config/rs6000/freebsd.h	29 Apr 2003 11:58:33 -0000
***************
*** 39,50 ****
--- 39,58 ----
  #undef	LINK_OS_DEFAULT_SPEC
  #define	LINK_OS_DEFAULT_SPEC "%(link_os_freebsd)"
  
+ /* XXX: This is wrong for many platforms in sysv4.h.
+    We should work on getting that defination fixed.  */
+ #undef  LINK_SHLIB_SPEC
+ #define LINK_SHLIB_SPEC "%{shared:-shared} %{!shared: %{static:-static}}"
+ 
  
  /************************[  Target stuff  ]***********************************/
  
  /* Define the actual types of some ANSI-mandated types.  
     Needs to agree with <machine/ansi.h>.  GCC defaults come from c-decl.c,
     c-common.c, and config/<arch>/<arch>.h.  */
+ 
+ #undef  SIZE_TYPE
+ #define SIZE_TYPE "unsigned int"
  
  /* rs6000.h gets this wrong for FreeBSD.  We use the GCC defaults instead.  */
  #undef WCHAR_TYPE



More information about the Gcc-patches mailing list