[PATCH]: HP-UX ctype<char>::classic_table return value

John David Anglin dave@hiauly1.hia.nrc.ca
Sat Mar 22 20:29:00 GMT 2003


Loren noticed that we didn't return __SB_masks in ctype<char>::classic_table.
This caused a variety of test failures in the v3 testsuite on the trunk.
On earlier releases, the tests are xfailed and the problem hidden.

Tested on hppa64-hp-hpux11* and hppa2.0w-hp-hpux11*.

Installed on 3.3 and trunk.  Will install on 3.2 if testing completes
successfully.

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

2003-03-22  Loren J. Rittle  <ljrittle@acm.org>

	* config/os/hpux/ctype_noninline.h (ctype<char>::classic_table):
	Correct return value.

Index: config/os/hpux/ctype_noninline.h
===================================================================
RCS file: /cvs/gcc/gcc/libstdc++-v3/config/os/hpux/ctype_noninline.h,v
retrieving revision 1.1
diff -u -3 -p -r1.1 ctype_noninline.h
--- config/os/hpux/ctype_noninline.h	24 Jun 2002 05:49:28 -0000	1.1
+++ config/os/hpux/ctype_noninline.h	22 Mar 2003 18:20:08 -0000
@@ -36,7 +36,7 @@
 
   const ctype_base::mask*
   ctype<char>::classic_table() throw()
-  { return 0; }
+  { return __SB_masks; }
 
   ctype<char>::ctype(__c_locale, const mask* __table, bool __del, 
 		     size_t __refs) 



More information about the Libstdc++ mailing list