Author: sebor Date: Sun Jan 4 13:46:02 2009 New Revision: 731371 URL: http://svn.apache.org/viewvc?rev=731371&view=rev Log: 2009-01-04 Martin Sebor <se...@apache.org>
STDCXX-1029 * src/file.cpp [__linux__ && 4 == __GNUC__ && 3 == __GNUC_MINOR__] (__wur): #defined to an empty comment to work around gcc 4.3.1 bug 37405: http://gcc.gnu.org/bugzilla/show_bug.cgi?id=37405 * src/locale_core.cpp: Ditto. * src/setlocale.cpp: Ditto. * src/mman.cpp: Ditto. Modified: stdcxx/branches/4.2.x/src/file.cpp stdcxx/branches/4.2.x/src/locale_core.cpp stdcxx/branches/4.2.x/src/mman.cpp stdcxx/branches/4.2.x/src/setlocale.cpp Modified: stdcxx/branches/4.2.x/src/file.cpp URL: http://svn.apache.org/viewvc/stdcxx/branches/4.2.x/src/file.cpp?rev=731371&r1=731370&r2=731371&view=diff ============================================================================== --- stdcxx/branches/4.2.x/src/file.cpp (original) +++ stdcxx/branches/4.2.x/src/file.cpp Sun Jan 4 13:46:02 2009 @@ -37,6 +37,12 @@ # define _RWSTD_NO_DEPRECATED_C_HEADERS #endif // _RWSTD_NO_DEPRECATED_C_HEADERS +#if defined __linux__ && 4 == __GNUC__ && 3 == __GNUC_MINOR__ + // work around gcc bug 37405 + // http://gcc.gnu.org/bugzilla/show_bug.cgi?id=37405 +# define __wur /* empty */ +#endif // gcc 4.3 on Linux + #include <errno.h> // for ENAMETOOLONG, ERANGE, errno #include <stddef.h> // for ptrdiff_t #include <stdio.h> // for P_tmpdir, std{err,in,out}, remove(), tmpnam() Modified: stdcxx/branches/4.2.x/src/locale_core.cpp URL: http://svn.apache.org/viewvc/stdcxx/branches/4.2.x/src/locale_core.cpp?rev=731371&r1=731370&r2=731371&view=diff ============================================================================== --- stdcxx/branches/4.2.x/src/locale_core.cpp (original) +++ stdcxx/branches/4.2.x/src/locale_core.cpp Sun Jan 4 13:46:02 2009 @@ -30,6 +30,12 @@ #include <rw/_defs.h> +#if defined __linux__ && 4 == __GNUC__ && 3 == __GNUC_MINOR__ + // work around gcc bug 37405 + // http://gcc.gnu.org/bugzilla/show_bug.cgi?id=37405 +# define __wur /* empty */ +#endif // gcc 4.3 on Linux + #ifdef __SUNPRO_CC // working around SunPro bug 568 # include <time.h> Modified: stdcxx/branches/4.2.x/src/mman.cpp URL: http://svn.apache.org/viewvc/stdcxx/branches/4.2.x/src/mman.cpp?rev=731371&r1=731370&r2=731371&view=diff ============================================================================== --- stdcxx/branches/4.2.x/src/mman.cpp (original) +++ stdcxx/branches/4.2.x/src/mman.cpp Sun Jan 4 13:46:02 2009 @@ -29,6 +29,12 @@ #define _RWSTD_LIB_SRC #include <rw/_defs.h> +#if defined __linux__ && 4 == __GNUC__ && 3 == __GNUC_MINOR__ + // work around gcc bug 37405 + // http://gcc.gnu.org/bugzilla/show_bug.cgi?id=37405 +# define __wur /* empty */ +#endif // gcc 4.3 on Linux + #ifndef _MSC_VER // <unistd.h> is included here because of PR #26255 # include <unistd.h> Modified: stdcxx/branches/4.2.x/src/setlocale.cpp URL: http://svn.apache.org/viewvc/stdcxx/branches/4.2.x/src/setlocale.cpp?rev=731371&r1=731370&r2=731371&view=diff ============================================================================== --- stdcxx/branches/4.2.x/src/setlocale.cpp (original) +++ stdcxx/branches/4.2.x/src/setlocale.cpp Sun Jan 4 13:46:02 2009 @@ -1,6 +1,6 @@ /*************************************************************************** * - * rw_setlocale.cpp - implementation of the __rw_setlocale class + * setlocale.cpp - implementation of the __rw_setlocale class * * This is an internal header file used to implement the C++ Standard * Library. It should never be #included directly by a program. @@ -25,7 +25,7 @@ * implied. See the License for the specific language governing * permissions and limitations under the License. * - * Copyright 2001-2006 Rogue Wave Software. + * Copyright 2001-2006 Rogue Wave Software, Inc. * **************************************************************************/ @@ -33,6 +33,12 @@ #include <rw/_defs.h> +#if defined __linux__ && 4 == __GNUC__ && 3 == __GNUC_MINOR__ + // work around gcc bug 37405 + // http://gcc.gnu.org/bugzilla/show_bug.cgi?id=37405 +# define __wur /* empty */ +#endif // gcc 4.3 on Linux + #if defined (__linux__) && !defined (_XOPEN_SOURCE) // need S_IFDIR on Linux # define _XOPEN_SOURCE