stdcxx-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From se...@apache.org
Subject svn commit: r731374 - in /stdcxx/branches/4.2.x/tests/src: file.cpp locale.cpp
Date Sun, 04 Jan 2009 22:07:07 GMT
Author: sebor
Date: Sun Jan  4 14:07:07 2009
New Revision: 731374

URL: http://svn.apache.org/viewvc?rev=731374&view=rev
Log:
2009-01-04  Martin Sebor  <sebor@apache.org>

	STDCXX-1029
	* tests/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
	* tests/src/locale.cpp: Ditto.

Modified:
    stdcxx/branches/4.2.x/tests/src/file.cpp
    stdcxx/branches/4.2.x/tests/src/locale.cpp

Modified: stdcxx/branches/4.2.x/tests/src/file.cpp
URL: http://svn.apache.org/viewvc/stdcxx/branches/4.2.x/tests/src/file.cpp?rev=731374&r1=731373&r2=731374&view=diff
==============================================================================
--- stdcxx/branches/4.2.x/tests/src/file.cpp (original)
+++ stdcxx/branches/4.2.x/tests/src/file.cpp Sun Jan  4 14:07:07 2009
@@ -32,6 +32,12 @@
 #include <rw_file.h>
 
 #ifdef _RWSTD_OS_LINUX
+#  if 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
+
 #  ifdef _RWSTD_NO_PURE_C_HEADERS
      // on Linux define _XOPEN_SOURCE to get CODESET defined in <langinfo.h>
      // (avoid this hackery when using pure "C' headers (i.e., with the EDG

Modified: stdcxx/branches/4.2.x/tests/src/locale.cpp
URL: http://svn.apache.org/viewvc/stdcxx/branches/4.2.x/tests/src/locale.cpp?rev=731374&r1=731373&r2=731374&view=diff
==============================================================================
--- stdcxx/branches/4.2.x/tests/src/locale.cpp (original)
+++ stdcxx/branches/4.2.x/tests/src/locale.cpp Sun Jan  4 14:07:07 2009
@@ -29,6 +29,11 @@
 // expand _TEST_EXPORT macros
 #define _RWSTD_TEST_SRC
 
+#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 <rw_locale.h>
 #include <rw_environ.h>   // for rw_putenv()



Mime
View raw message