OSDN Git Service

2010-02-02 Benjamin Kosnik <bkoz@redhat.com>
authorbkoz <bkoz@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 3 Feb 2010 00:20:05 +0000 (00:20 +0000)
committerbkoz <bkoz@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 3 Feb 2010 00:20:05 +0000 (00:20 +0000)
* include/bits/allocator.h: Fix for -fno-exceptions.
* include/bits/basic_string.h (basic_string::shrink_to_fit): Same.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@156459 138bc75d-0d04-0410-961f-82ee72b054a4

libstdc++-v3/ChangeLog
libstdc++-v3/include/bits/allocator.h
libstdc++-v3/include/bits/basic_string.h

index 1d09a1a..ba2446c 100644 (file)
@@ -1,3 +1,8 @@
+2010-02-02  Benjamin Kosnik  <bkoz@redhat.com>
+
+       * include/bits/allocator.h: Fix for -fno-exceptions.
+       * include/bits/basic_string.h (basic_string::shrink_to_fit): Same.
+
 2010-02-02  Paolo Carlini  <paolo.carlini@oracle.com>
 
        * testsuite/30_threads/unique_future: Rename to /future.
index 283224d..4522051 100644 (file)
@@ -194,9 +194,9 @@ _GLIBCXX_BEGIN_NAMESPACE(std)
        static void
        _S_do_it(_Tp& __v)
        {
-        try
+        __try
           { _Tp(__v).swap(__v); }
-        catch(...) { }
+        __catch(...) { }
        }
      };
 #endif
index a549cf7..0b166f3 100644 (file)
@@ -743,9 +743,9 @@ _GLIBCXX_BEGIN_NAMESPACE(std)
       void
       shrink_to_fit()
       {
-       try
+       __try
          { reserve(0); }
-       catch(...)
+       __catch(...)
          { }
       }
 #endif