NetBSD-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: toolchain/53710 : xlint fails to compile using 32 bit host with 64 bit target



The following reply was made to PR toolchain/53710; it has been noted by GNATS.

From: scole_mail <scole_mail%gmx.com@localhost>
To: gnats-bugs%NetBSD.org@localhost
Cc: 
Subject: Re: toolchain/53710 : xlint fails to compile using 32 bit host with 64 bit target
Date: Fri, 16 Nov 2018 11:01:53 -0800

 Here is a patch, which is probably not correct, but it at least lets me
 complete a build on my machine.
 
 Thanks
 
 Summary of changes:  (A/? = New, R/D = Removed, M = Modified)
 =============================================================
 M lp64.h
 
 Apply patch with "cd .../src/usr.bin/xlint/common ; patch -s -p0 < .../patchfile"
 
 Index: lp64.h
 ===================================================================
 RCS file: /cvsroot/src/usr.bin/xlint/common/lp64.h,v
 retrieving revision 1.6
 diff -b -u -r1.6 lp64.h
 --- lp64.h	7 Oct 2018 14:20:01 -0000	1.6
 +++ lp64.h	16 Nov 2018 18:54:08 -0000
 @@ -45,7 +45,9 @@
  #define	LONG_SIZE	(8 * CHAR_BIT)
  #define	QUAD_SIZE	(8 * CHAR_BIT)
  #define	PTR_SIZE	(8 * CHAR_BIT)
 +#ifdef _LP64
  #define	INT128_SIZE	(16 * CHAR_BIT)
 +#endif
  
  #define	TARG_SCHAR_MAX	((signed char) (((unsigned char) -1) >> 1))
  #define	TARG_SCHAR_MIN	((-TARG_CHAR_MAX) - 1)
 @@ -67,7 +69,7 @@
  #define	TARG_QUAD_MIN	((-TARG_QUAD_MAX) - 1)
  #define	TARG_UQUAD_MAX	((uint64_t) -1)
  
 -#ifndef _LP64
 +#ifdef _LP64
  /* XXX on a 32 build for a 64 build host we skip these */
  #define	TARG_INT128_MAX		((__int128_t) (((__uint128_t) -1) >> 1))
  #define	TARG_INT128_MIN		((-TARG_INT128_MAX) - 1)
 


Home | Main Index | Thread Index | Old Index