]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
2008-10-24 Paolo Carlini <paolo.carlini@oracle.com>
authorpaolo <paolo@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 24 Oct 2008 10:41:42 +0000 (10:41 +0000)
committerpaolo <paolo@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 24 Oct 2008 10:41:42 +0000 (10:41 +0000)
* config/os/generic/error_constants.h (enum errc): Remove
no_posix_equivalent.
* config/os/mingw32/error_constants.h (enum errc): Likewise.
* testsuite/19_diagnostics/headers/system_error/errc_std_c++0x.cc:
Adjust.

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

libstdc++-v3/ChangeLog
libstdc++-v3/config/os/generic/error_constants.h
libstdc++-v3/config/os/mingw32/error_constants.h
libstdc++-v3/testsuite/19_diagnostics/headers/system_error/errc_std_c++0x.cc

index 1144f9c437572b04b99dbc4ab958a11bdc6e0421..97ce9efec4fcd44f36ac253ff8bf180ddaf96338 100644 (file)
@@ -1,3 +1,11 @@
+2008-10-24  Paolo Carlini  <paolo.carlini@oracle.com>
+
+       * config/os/generic/error_constants.h (enum errc): Remove
+       no_posix_equivalent.
+       * config/os/mingw32/error_constants.h (enum errc): Likewise.
+       * testsuite/19_diagnostics/headers/system_error/errc_std_c++0x.cc:
+       Adjust.
+
 2008-10-24  Jakub Jelinek  <jakub@redhat.com>
 
        * testsuite/Makefile.am (AUTOMAKE_OPTIONS): Remove dejagnu.
index edb196fc3611e8f215f2a70c79cae6ff7ffcf883..73918e5543e18dd89ead2e6f33f07e533a3c42b2 100644 (file)
@@ -40,7 +40,7 @@
 
 _GLIBCXX_BEGIN_NAMESPACE(std)
 
-  enum class errc : long
+  enum class errc
     {
       address_family_not_supported =           EAFNOSUPPORT,
       address_in_use =                                 EADDRINUSE,
@@ -172,8 +172,7 @@ _GLIBCXX_BEGIN_NAMESPACE(std)
       value_too_large =                        EOVERFLOW,
 #endif
 
-      wrong_protocol_type =                    EPROTOTYPE,
-      no_posix_equivalent = 1L << 16
+      wrong_protocol_type =                    EPROTOTYPE
     };
 
 _GLIBCXX_END_NAMESPACE
index 7b756cc6b93e290e0564ef0dddd7ee1afce6fc41..ce34bdeebd824be8796624e23bad2c93b9fdaa41 100644 (file)
@@ -1,6 +1,6 @@
 // Specific definitions for mingw32 platform  -*- C++ -*-
 
-// Copyright (C) 2007 Free Software Foundation, Inc.
+// Copyright (C) 2007, 2008 Free Software Foundation, Inc.
 //
 // This file is part of the GNU ISO C++ Library.  This library is free
 // software; you can redistribute it and/or modify it under the
@@ -43,7 +43,7 @@ _GLIBCXX_BEGIN_NAMESPACE(std)
 
 // Most of the commented-out error codes are socket-related and could be
 // replaced by Winsock WSA-prefixed equivalents.
-  enum class errc : long
+  enum class errc
     {
 //    address_family_not_supported =           EAFNOSUPPORT,
 //    address_in_use =                                 EADDRINUSE,
@@ -119,11 +119,10 @@ _GLIBCXX_BEGIN_NAMESPACE(std)
 //    timed_out =                              ETIMEDOUT,
       too_many_files_open_in_system =          ENFILE,
       too_many_files_open =                    EMFILE,
-      too_many_links =                                 EMLINK,
+      too_many_links =                                 EMLINK
  //   too_many_symbolic_link_levels =          ELOOP,
  //   value_too_large =                        EOVERFLOW,
- //   wrong_protocol_type =                    EPROTOTYPE,
-      no_posix_equivalent = 1L << 16
+ //   wrong_protocol_type =                    EPROTOTYPE
    };
 
 _GLIBCXX_END_NAMESPACE
index d2325d17d4665c581d8ea72b8a4e2e4844127ba6..6eff4ee5bda093bf30b6c8836461bd93223c6f9f 100644 (file)
@@ -1,7 +1,7 @@
 // { dg-options "-std=gnu++0x" }
 // { dg-do compile }
 
-// Copyright (C) 2007 Free Software Foundation, Inc.
+// Copyright (C) 2007, 2008 Free Software Foundation, Inc.
 //
 // This file is part of the GNU ISO C++ Library.  This library is free
 // software; you can redistribute it and/or modify it under the
@@ -85,7 +85,6 @@ void test01()
 #endif
 
   TEST_ERRC(no_message);
-  TEST_ERRC(no_posix_equivalent);
   TEST_ERRC(no_protocol_option);
   TEST_ERRC(no_space_on_device);