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

Fix ctype_noninline.h for hpux to use correct address for char mapping


This fixes 10 FAILs in the libstdc++ testsuite under hpux.  Tested
with no regressions on hppa2.0w-hp-hpux11.11.

OK to install?

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

2002-01-15  John David Anglin  <dave@hiauly1.hia.nrc.ca>

	* config/os/hpux/bits/ctype_noninline.h: Use __SB_masks for address
	of character to attribute mapping table.

--- config/os/hpux/bits/ctype_noninline.h.orig	Wed Dec 12 18:16:20 2001
+++ config/os/hpux/bits/ctype_noninline.h	Tue Jan 15 12:02:53 2002
@@ -37,13 +37,13 @@
 		     size_t __refs) 
   : __ctype_abstract_base<char>(__refs), _M_del(__table != 0 && __del), 
   _M_toupper(NULL), _M_tolower(NULL), _M_ctable(NULL), 
-  _M_table(__table == 0 ? _M_ctable: __table) 
+  _M_table(__table == 0 ? (const mask *) __SB_masks : __table) 
   { }
 
   ctype<char>::ctype(const mask* __table, bool __del, size_t __refs) 
   : __ctype_abstract_base<char>(__refs), _M_del(__table != 0 && __del), 
   _M_toupper(NULL), _M_tolower(NULL), _M_ctable(NULL), 
-  _M_table(__table == 0 ? _M_ctable: __table) 
+  _M_table(__table == 0 ? (const mask *) __SB_masks : __table) 
   { }
 
   char


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