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]
Other format: [Raw text]

Re: [PATCH] CPP tweaks for NetBSD/sparc64


On Fri, May 03, 2002 at 02:41:27PM -0700, Jason R Thorpe wrote:

 > The following makes some CPP tweaks for the NetBSD/sparc64 target:
 > 
 > 	* Add -D_LP64 when building 64-bit binaries (see my previous
 > 	  patch for the NetBSD/alpha target for an explanation).
 > 
 > 	* Fix __SIZE_TYPE__ and __PTRDIFF_TYPE__ when using -m32.
 > 
 > Committed to trunk.
 > 
 > I'd like to apply at least the _LP64 change to the 3.1 branch, but
 > also need to verify if the __SIZE_TYPE__/__PTRDIFF_TYPE__ is needed
 > there, too.  Assuming they are, ok for 3.1 branch?
 > 
 >         * config/sparc/netbsd-elf.c (CPP_SUBTARGET_SPEC64): Remove
 >         -D__arch64__.  Add -D_LP64.
 >         (CPP_ARCH32_SPEC): Redefine to match the non-bi-arch version
 >         from sparc.h.
 >         (CPP_ARCH64_SPEC): Likewise.
 >         (NO_BUILTIN_PTRDIFF_TYPE): Undef.
 >         (NO_BUILTIN_SIZE_TYPE): Undef.

Foo.  And this time, with the patch actually attached.

-- 
        -- Jason R. Thorpe <thorpej@wasabisystems.com>

Attachment: sparc-patch
Description: Text document


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