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]
Other format: [Raw text]

Fix PR6501


This patch fixes the problem building libstdc++ under hpux 10.20.  Libstdc++
now builds and there are no unexpected fails.  I have also built and tested
the patch under hppa2.0-hp-hpux11.00.  There are no regressions.

It's possible that there are other files that should include bits/c++config.h
but this appears to be the only one used under hpux.

The build problem is a regression, caused by a change to using __SB_masks.

If the libstdc++ people approve, I would like to install on the branch as
well as the trunk.

Dave
-- 
J. David Anglin                                  dave.anglin@nrc.ca
National Research Council of Canada              (613) 990-0752 (FAX: 952-6605)

2002-04-28  John David Anglin  <dave@hiauly1.hia.nrc.ca>

	* include/c_std/std_cctype.h: Include bits/c++config.h.
	* config/os/hpux/bits/os_defines.h (_SB_CTYPE_MACROS): Define.

--- include/c_std/std_cctype.h.orig	Mon Apr 22 14:57:18 2002
+++ include/c_std/std_cctype.h	Sun Apr 28 14:36:33 2002
@@ -45,6 +45,7 @@
 
 #pragma GCC system_header
 
+#include <bits/c++config.h>
 #include <ctype.h>
 
 // Get rid of those macros defined in <ctype.h> in lieu of real functions.
2002-04-28  John David Anglin  <dave@hiauly1.hia.nrc.ca>

	* config/os/hpux/bits/os_defines.h (_SB_CTYPE_MACROS): Define.

--- config/os/hpux/bits/os_defines.h.orig	Mon Apr 22 14:56:50 2002
+++ config/os/hpux/bits/os_defines.h	Sun Apr 28 13:50:04 2002
@@ -39,6 +39,9 @@
 
 #define __glibcpp_wchar_t_is_signed false
 
+// Use macro form of ctype functions to ensure __SB_masks is defined.
+#define _SB_CTYPE_MACROS 1
+
 /* HP-UX, for reasons unknown choose to use a different name for
    the string to [unsigned] long long conversion routines.
 


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