NetBSD-Bugs archive

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

Re: pkg/52326: devel/cmake fails to build on netbsd-8 on VAX



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

From: coypu%sdf.org@localhost
To: gnats-bugs%NetBSD.org@localhost
Cc: 
Subject: Re: pkg/52326: devel/cmake fails to build on netbsd-8 on VAX
Date: Sun, 25 Jun 2017 05:36:46 +0000

 I have made a GCC bug report for this:
 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81199
 
 Please try the attached patch.
 
 Index: longlong.h
 ===================================================================
 RCS file: /cvsroot/src/external/gpl3/gcc/dist/include/longlong.h,v
 retrieving revision 1.1.1.1
 diff -u -r1.1.1.1 longlong.h
 --- longlong.h	24 Jan 2016 06:05:54 -0000	1.1.1.1
 +++ longlong.h	25 Jun 2017 05:35:48 -0000
 @@ -57,8 +57,6 @@
  #define attribute_hidden
  #endif
  
 -extern const UQItype __clz_tab[256] attribute_hidden;
 -
  /* Define auxiliary asm macros.
  
     1) umul_ppmm(high_prod, low_prod, multiplier, multiplicand) multiplies two
 @@ -164,6 +162,7 @@
  #define count_trailing_zeros(COUNT,X)	((COUNT) = __builtin_ctzl (X))
  #define COUNT_LEADING_ZEROS_0 64
  #else
 +extern const UQItype __clz_tab[256];
  #define count_leading_zeros(COUNT,X) \
    do {									\
      UDItype __xr = (X), __t, __a;					\
 @@ -1705,6 +1704,7 @@
  #endif
  
  #if !defined (count_leading_zeros)
 +extern const UQItype __clz_tab[256];
  #define count_leading_zeros(count, x) \
    do {									\
      UWtype __xr = (x);							\
 


Home | Main Index | Thread Index | Old Index