svn commit: r515619 - in /incubator/stdcxx/trunk/tests: self/0.alloc.cpp src/alloc.cpp

2007-03-07 Thread faridz
Author: faridz
Date: Wed Mar  7 07:55:37 2007
New Revision: 515619

URL: http://svn.apache.org/viewvc?view=revrev=515619
Log:
2007-03-07  Farid Zaripov [EMAIL PROTECTED]

* alloc.cpp: fixed typo (removed comma);
* 0.alloc.cpp: use setjmp() instead sigsetjmp() on Cygwin

Modified:
incubator/stdcxx/trunk/tests/self/0.alloc.cpp
incubator/stdcxx/trunk/tests/src/alloc.cpp

Modified: incubator/stdcxx/trunk/tests/self/0.alloc.cpp
URL: 
http://svn.apache.org/viewvc/incubator/stdcxx/trunk/tests/self/0.alloc.cpp?view=diffrev=515619r1=515618r2=515619
==
--- incubator/stdcxx/trunk/tests/self/0.alloc.cpp (original)
+++ incubator/stdcxx/trunk/tests/self/0.alloc.cpp Wed Mar  7 07:55:37 2007
@@ -31,11 +31,6 @@
 #include rw_printf.h   // for rw_printf
 #include driver.h
 
-#ifdef __CYGWIN__
-// use the Windows API on Cygwin
-#  define _WIN32
-#endif
-
 static jmp_buf mark;
 
 extern C {
@@ -48,7 +43,8 @@
 
 }
 
-#ifdef sigsetjmp
+// on Cygwin use setjmp
+#if !defined (__CYGWIN__)  defined (sigsetjmp)
 #define SETJMP(env) sigsetjmp (env, 1)
 #else
 #define SETJMP(env) setjmp (env)

Modified: incubator/stdcxx/trunk/tests/src/alloc.cpp
URL: 
http://svn.apache.org/viewvc/incubator/stdcxx/trunk/tests/src/alloc.cpp?view=diffrev=515619r1=515618r2=515619
==
--- incubator/stdcxx/trunk/tests/src/alloc.cpp (original)
+++ incubator/stdcxx/trunk/tests/src/alloc.cpp Wed Mar  7 07:55:37 2007
@@ -93,7 +93,7 @@
 PROT_READ  = 1  0,
 PROT_WRITE = 1  1,
 PROT_RDWR  = PROT_READ | PROT_WRITE,
-PROT_EXEC  = 1  2,
+PROT_EXEC  = 1  2
 };
 
 #define MAP_PRIVATE   0




svn commit: r515784 [2/2] - /incubator/stdcxx/trunk/etc/config/src/

2007-03-07 Thread sebor
Modified: incubator/stdcxx/trunk/etc/config/src/STD_NOTHROW.cpp
URL: 
http://svn.apache.org/viewvc/incubator/stdcxx/trunk/etc/config/src/STD_NOTHROW.cpp?view=diffrev=515784r1=515783r2=515784
==
--- incubator/stdcxx/trunk/etc/config/src/STD_NOTHROW.cpp (original)
+++ incubator/stdcxx/trunk/etc/config/src/STD_NOTHROW.cpp Wed Mar  7 13:46:51 
2007
@@ -1,9 +1,5 @@
 // checking for std::nothrow
 
-#if defined (_RWSTD_USE_CONFIG)
-#  include config.h
-#endif   // _RWSTD_USE_CONFIG
-
 
 // will fail if namespaces aren't supported
 namespace std {

Modified: incubator/stdcxx/trunk/etc/config/src/STD_NOTHROW_T.cpp
URL: 
http://svn.apache.org/viewvc/incubator/stdcxx/trunk/etc/config/src/STD_NOTHROW_T.cpp?view=diffrev=515784r1=515783r2=515784
==
--- incubator/stdcxx/trunk/etc/config/src/STD_NOTHROW_T.cpp (original)
+++ incubator/stdcxx/trunk/etc/config/src/STD_NOTHROW_T.cpp Wed Mar  7 13:46:51 
2007
@@ -2,9 +2,7 @@
 
 #include stddef.h   // for size_t
 
-#if defined (_RWSTD_USE_CONFIG)
-#  include config.h
-#endif   // _RWSTD_USE_CONFIG
+#include config.h
 
 
 // will fail if namespaces aren't supported

Modified: incubator/stdcxx/trunk/etc/config/src/STD_SET_NEW_HANDLER.cpp
URL: 
http://svn.apache.org/viewvc/incubator/stdcxx/trunk/etc/config/src/STD_SET_NEW_HANDLER.cpp?view=diffrev=515784r1=515783r2=515784
==
--- incubator/stdcxx/trunk/etc/config/src/STD_SET_NEW_HANDLER.cpp (original)
+++ incubator/stdcxx/trunk/etc/config/src/STD_SET_NEW_HANDLER.cpp Wed Mar  7 
13:46:51 2007
@@ -1,8 +1,6 @@
 // checking for std::set_new_handler()
 
-#if defined (_RWSTD_USE_CONFIG)
-#  include config.h
-#endif   // _RWSTD_USE_CONFIG
+#include config.h
 
 #ifdef _RWSTD_NO_EXCEPTION_SPECIFICATION
 

Modified: incubator/stdcxx/trunk/etc/config/src/STD_SET_TERMINATE.cpp
URL: 
http://svn.apache.org/viewvc/incubator/stdcxx/trunk/etc/config/src/STD_SET_TERMINATE.cpp?view=diffrev=515784r1=515783r2=515784
==
--- incubator/stdcxx/trunk/etc/config/src/STD_SET_TERMINATE.cpp (original)
+++ incubator/stdcxx/trunk/etc/config/src/STD_SET_TERMINATE.cpp Wed Mar  7 
13:46:51 2007
@@ -1,8 +1,6 @@
 // checking for std::set_terminate()
 
-#if defined (_RWSTD_USE_CONFIG)
-#  include config.h
-#endif   // _RWSTD_USE_CONFIG
+#include config.h
 
 #ifdef _RWSTD_NO_EXCEPTION_SPECIFICATION
 

Modified: incubator/stdcxx/trunk/etc/config/src/STD_SET_UNEXPECTED.cpp
URL: 
http://svn.apache.org/viewvc/incubator/stdcxx/trunk/etc/config/src/STD_SET_UNEXPECTED.cpp?view=diffrev=515784r1=515783r2=515784
==
--- incubator/stdcxx/trunk/etc/config/src/STD_SET_UNEXPECTED.cpp (original)
+++ incubator/stdcxx/trunk/etc/config/src/STD_SET_UNEXPECTED.cpp Wed Mar  7 
13:46:51 2007
@@ -1,8 +1,7 @@
 // checking for std::set_unexpected()
 
-#if defined (_RWSTD_USE_CONFIG)
-#  include config.h
-#endif   // _RWSTD_USE_CONFIG
+#include config.h
+
 
 #ifdef _RWSTD_NO_EXCEPTION_SPECIFICATION
 

Modified: incubator/stdcxx/trunk/etc/config/src/STD_TERMINATE.cpp
URL: 
http://svn.apache.org/viewvc/incubator/stdcxx/trunk/etc/config/src/STD_TERMINATE.cpp?view=diffrev=515784r1=515783r2=515784
==
--- incubator/stdcxx/trunk/etc/config/src/STD_TERMINATE.cpp (original)
+++ incubator/stdcxx/trunk/etc/config/src/STD_TERMINATE.cpp Wed Mar  7 13:46:51 
2007
@@ -1,8 +1,6 @@
 // checking for std::terminate()
 
-#if defined (_RWSTD_USE_CONFIG)
-#  include config.h
-#endif   // _RWSTD_USE_CONFIG
+#include config.h
 
 // will fail if namespaces aren't supported
 namespace std {

Modified: incubator/stdcxx/trunk/etc/config/src/STD_TYPE_INFO.cpp
URL: 
http://svn.apache.org/viewvc/incubator/stdcxx/trunk/etc/config/src/STD_TYPE_INFO.cpp?view=diffrev=515784r1=515783r2=515784
==
--- incubator/stdcxx/trunk/etc/config/src/STD_TYPE_INFO.cpp (original)
+++ incubator/stdcxx/trunk/etc/config/src/STD_TYPE_INFO.cpp Wed Mar  7 13:46:51 
2007
@@ -1,9 +1,5 @@
 // checking for class std::type_info
 
-#if defined (_RWSTD_USE_CONFIG)
-#  include config.h
-#endif
-
 
 namespace std {
 

Modified: incubator/stdcxx/trunk/etc/config/src/STD_UNCAUGHT_EXCEPTION.cpp
URL: 
http://svn.apache.org/viewvc/incubator/stdcxx/trunk/etc/config/src/STD_UNCAUGHT_EXCEPTION.cpp?view=diffrev=515784r1=515783r2=515784
==
--- incubator/stdcxx/trunk/etc/config/src/STD_UNCAUGHT_EXCEPTION.cpp (original)
+++ incubator/stdcxx/trunk/etc/config/src/STD_UNCAUGHT_EXCEPTION.cpp Wed Mar  7 
13:46:51 2007
@@ -1,8 +1,6 @@
 // checking for std::uncaught_exception()
 

svn commit: r515881 - /incubator/stdcxx/trunk/etc/config/gcc.config

2007-03-07 Thread sebor
Author: sebor
Date: Wed Mar  7 17:32:45 2007
New Revision: 515881

URL: http://svn.apache.org/viewvc?view=revrev=515881
Log:
2007-03-07  Martin Sebor  [EMAIL PROTECTED]

STDCXX-346
* gcc.config (PICFLAGS): Corrected a typo inadvertently introduced
in r514256: http://svn.apache.org/viewcvs?view=revrev=514256.

Modified:
incubator/stdcxx/trunk/etc/config/gcc.config

Modified: incubator/stdcxx/trunk/etc/config/gcc.config
URL: 
http://svn.apache.org/viewvc/incubator/stdcxx/trunk/etc/config/gcc.config?view=diffrev=515881r1=515880r2=515881
==
--- incubator/stdcxx/trunk/etc/config/gcc.config (original)
+++ incubator/stdcxx/trunk/etc/config/gcc.config Wed Mar  7 17:32:45 2007
@@ -51,7 +51,7 @@
 
 # avoid adding -FPIC on IBM AIX and Cygwin where
 # gcc generated code is always position independent
-ifeq (,$findstring |$(OSNAME)|,|AIX|CYGWIN|)
+ifeq (,$(findstring |$(OSNAME)|,|AIX|CYGWIN|))
 PICFLAGS = -fPIC
 endif
 




svn commit: r515888 - /incubator/stdcxx/trunk/src/iostore.cpp

2007-03-07 Thread sebor
Author: sebor
Date: Wed Mar  7 18:00:07 2007
New Revision: 515888

URL: http://svn.apache.org/viewvc?view=revrev=515888
Log:
2007-03-07  Martin Sebor  [EMAIL PROTECTED]

STDCXX-349
* iostore.cpp (_C_copyfmt): Zeroed out a_size array to prevent
(bogus) gcc warnings about the variable being used uninitialized.

Modified:
incubator/stdcxx/trunk/src/iostore.cpp

Modified: incubator/stdcxx/trunk/src/iostore.cpp
URL: 
http://svn.apache.org/viewvc/incubator/stdcxx/trunk/src/iostore.cpp?view=diffrev=515888r1=515887r2=515888
==
--- incubator/stdcxx/trunk/src/iostore.cpp (original)
+++ incubator/stdcxx/trunk/src/iostore.cpp Wed Mar  7 18:00:07 2007
@@ -3,20 +3,27 @@
  * iostore.cpp - source of the C++ Standard Library 
  *   ios_base storage functions [lib.ios.base.storage]
  *
- * $Id: //stdlib/dev/source/stdlib/iostore.cpp#10 $
+ * $Id$
  *
  ***
  *
- * Copyright (c) 1994-2005 Quovadx,  Inc., acting through its  Rogue Wave
- * Software division. Licensed under the Apache License, Version 2.0 (the
- * License);  you may  not use this file except  in compliance with the
- * License.Youmay   obtain   a   copy   ofthe   Licenseat
- * http://www.apache.org/licenses/LICENSE-2.0.Unless   requiredby
- * applicable law  or agreed to  in writing,  software  distributed under
- * the License is distributed on an AS IS BASIS,  WITHOUT WARRANTIES OR
- * CONDITIONS OF  ANY KIND, either  express or implied.  See  the License
- * for the specific language governing permissions  and limitations under
- * the License.
+ * Licensed to the Apache Software  Foundation (ASF) under one or more
+ * contributor  license agreements.  See  the NOTICE  file distributed
+ * with  this  work  for  additional information  regarding  copyright
+ * ownership.   The ASF  licenses this  file to  you under  the Apache
+ * License, Version  2.0 (the  License); you may  not use  this file
+ * except in  compliance with the License.   You may obtain  a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the  License is distributed on an  AS IS BASIS,
+ * WITHOUT  WARRANTIES OR CONDITIONS  OF ANY  KIND, either  express or
+ * implied.   See  the License  for  the  specific language  governing
+ * permissions and limitations under the License.
+ *
+ * Copyright 1994-2006 Rogue Wave Software.
  * 
  **/
 
@@ -223,6 +230,11 @@
 memcpy (ia,  rusr-_C_iarray,  a_size [0] * sizeof *ia);
 memcpy (pa,  rusr-_C_parray,  a_size [1] * sizeof *pa);
 memcpy (cba, rusr-_C_cbarray, a_size [2] * sizeof *cba);
+}
+else {
+// zero out array to prevent (bogus) gcc warnings
+// about the variable being used uninitialized
+memset (a_size, 0, sizeof a_size);
 }
 
 // copy the rest of rhs state (save for exceptions)