This is the mail archive of the libstdc++@gcc.gnu.org mailing list for the libstdc++ project.


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

GCC 3.0 - alpha-dec-osf5.0 - proposed patch


To: Appropriate Authorized CVS changer

I have just attempted to compile the latest CVS code for on a Tru64 5.0a platform  (alpha-dec-osf5.0)

I had to make the below small patch to gcc/libstdc++-v3/libmath/mathconf.h to get signbitl.c to compile.  If someone could verify this makes sense and put it into CVS, I would appreciate it. 

It definitely is not going to break anything that is currently working.

# diff mathconf.h mathconf.h.orig   
73c73
< typedef int Int64_t __attribute ((mode (DI)));
---
> typedef int Uint64_t __attribute ((mode (DI)));
263c263
<   (msw) = qw_u.parts64.msw;                                   \
---
>   (ix0) = qw_u.parts64.msw;                                   \


or with context

# diff -c mathconf.h mathconf.h.orig
*** mathconf.h  Fri Feb 23 13:39:22 2001
--- mathconf.h.orig     Fri Feb 23 13:35:47 2001
***************
*** 70,76 ****
  typedef unsigned int U_int32_t __attribute ((mode (SI)));
  typedef int Int32_t __attribute ((mode (SI)));
  typedef unsigned int U_int64_t __attribute ((mode (DI)));
! typedef int Int64_t __attribute ((mode (DI)));
  
  #ifdef _GLIBCPP_HAVE_NAN_H
  # include <nan.h>
--- 70,76 ----
  typedef unsigned int U_int32_t __attribute ((mode (SI)));
  typedef int Int32_t __attribute ((mode (SI)));
  typedef unsigned int U_int64_t __attribute ((mode (DI)));
! typedef int Uint64_t __attribute ((mode (DI)));
  
  #ifdef _GLIBCPP_HAVE_NAN_H
  # include <nan.h>
***************
*** 260,266 ****
  do {                                                          \
    ieee_quad_double_shape_type qw_u;                           \
    qw_u.value = (d);                                           \
!   (msw) = qw_u.parts64.msw;                                   \
  } while (0)
          
  
--- 260,266 ----
  do {                                                          \
    ieee_quad_double_shape_type qw_u;                           \
    qw_u.value = (d);                                           \
!   (ix0) = qw_u.parts64.msw;                                   \
  } while (0)


Thanks
Greg Freemyer
The Norcross Group


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