PATCH: config/sparc/freebsd.h

Loren James Rittle rittle@latour.rsch.comm.mot.com
Thu May 22 05:15:00 GMT 2003


As applied to mainline and 3.3 branch.  Fixes all/most g77 failures
noted upon first complete run of dejagnu on sparc64-unknown-freebsd5.1.
[Considered a regression since gcc 3.2.2 as installed as the system
compiler did not display the failure profile.]

	* config/sparc/freebsd.h (CPP_CPU64_DEFAULT_SPEC): Add -D__sparcv9
	-D__sparc__ to match system compiler convention.

Index: config/sparc/freebsd.h
===================================================================
RCS file: /cvs/gcc/gcc/gcc/config/sparc/freebsd.h,v
retrieving revision 1.19
diff -c -r1.19 freebsd.h
*** config/sparc/freebsd.h	17 May 2003 07:19:56 -0000	1.19
--- config/sparc/freebsd.h	22 May 2003 03:58:44 -0000
***************
*** 22,28 ****
     Emacs needs to know if the arch is 64 or 32-bits.  */
  
  #undef  CPP_CPU64_DEFAULT_SPEC
! #define CPP_CPU64_DEFAULT_SPEC "-D__sparc64__ -D__sparc_v9__ -D__arch64__"
  
  #define LINK_SPEC "%(link_arch)						\
    %{!mno-relax:%{!r:-relax}}						\
--- 22,29 ----
     Emacs needs to know if the arch is 64 or 32-bits.  */
  
  #undef  CPP_CPU64_DEFAULT_SPEC
! #define CPP_CPU64_DEFAULT_SPEC \
!   "-D__sparc64__ -D__sparc_v9__ -D__sparcv9 -D__sparc__ -D__arch64__"
  
  #define LINK_SPEC "%(link_arch)						\
    %{!mno-relax:%{!r:-relax}}						\



More information about the Gcc-patches mailing list