This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: std_limits.h os_defines.h
- To: Gabriel Dos Reis <gdr at codesourcery dot com>
- Subject: Re: std_limits.h os_defines.h
- From: Gabriel Dos Reis <gdr at codesourcery dot com>
- Date: 10 Aug 2001 19:36:47 +0200
- Cc: Mark Mitchell <mark at codesourcery dot com>, Richard Henderson <rth at redhat dot com>, David Edelsohn <dje at watson dot ibm dot com>, Benjamin Kosnik <bkoz at redhat dot com>, "gcc-patches at gcc dot gnu dot org" <gcc-patches at gcc dot gnu dot org>, "libstdc++ at gcc dot gnu dot org" <libstdc++ at gcc dot gnu dot org>
- Organization: CodeSourcery, LLC
- References: <80480000.997462791@warlock.codesourcery.com> <flwv4besxd.fsf@jambon.cmla.ens-cachan.fr>
| 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