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]

Re: std_limits.h os_defines.h



| Gaby, unless you can think of a reason not to use this, you might
| as well remove __glibcpp_plain_char_is_signed, and use
| __CHAR_UNSIGNED__ directly.

Richard,

What about the below?

-- Gaby

Index: config/os/aix/bits/os_defines.h
===================================================================
RCS file: /cvs/gcc/egcs/libstdc++-v3/config/os/aix/bits/os_defines.h,v
retrieving revision 1.6
diff -p -r1.6 os_defines.h
*** os_defines.h	2001/08/09 18:01:35	1.6
--- os_defines.h	2001/08/10 17:32:40
***************
*** 55,61 ****
  #undef _G_USING_THUNKS
  #define _G_USING_THUNKS 0
  
- #define __glibcpp_plain_char_is_signed false
  #define __glibcpp_long_double_bits 64
  
  #if !defined(_AIX51) || !defined(__64BIT__)
--- 55,60 ----
Index: config/os/gnu-linux/bits/os_defines.h
===================================================================
RCS file: /cvs/gcc/egcs/libstdc++-v3/config/os/gnu-linux/bits/os_defines.h,v
retrieving revision 1.11
diff -p -r1.11 os_defines.h
*** os_defines.h	2001/08/09 18:01:35	1.11
--- os_defines.h	2001/08/10 17:32:40
*************** typedef __loff_t __off64_t;
*** 64,70 ****
  # endif
  
  #if defined (__powerpc__) || defined (__s390__) || defined (__s390x__)
- #define __glibcpp_plain_char_is_signed false
  #define __glibcpp_wchar_t_is_signed true
  #endif
  
--- 64,69 ----
Index: include/bits/std_limits.h
===================================================================
RCS file: /cvs/gcc/egcs/libstdc++-v3/include/bits/std_limits.h,v
retrieving revision 1.1
diff -p -r1.1 std_limits.h
*** std_limits.h	2001/08/10 15:47:22	1.1
--- std_limits.h	2001/08/10 17:32:41
***************
*** 77,85 ****
  #ifndef __glibcpp_char_bits
  #define __glibcpp_char_bits 8
  #endif
! #ifndef __glibcpp_plain_char_is_signed
! #define __glibcpp_plain_char_is_signed true
! #endif
  #ifndef __glibcpp_short_bits
  #define __glibcpp_short_bits 16
  #endif
--- 77,83 ----
  #ifndef __glibcpp_char_bits
  #define __glibcpp_char_bits 8
  #endif
! #define __glibcpp_plain_char_is_signed (!__CHAR_UNSIGNED__)
  #ifndef __glibcpp_short_bits
  #define __glibcpp_short_bits 16
  #endif


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