diff options
author | Rafael Espindola <espindola@google.com> | 2008-05-14 22:58:48 +0000 |
---|---|---|
committer | Rafael Espindola <espindola@google.com> | 2008-05-14 22:58:48 +0000 |
commit | 48d2a2fd68ba33ef5ebafb3cbf435559ca5fb68d (patch) | |
tree | ac30956054bc8e3cbb87007c8e718b640199e51f | |
parent | 9f53b5e367be126139722c6b3cc287a394e9ea22 (diff) |
Fix previous merge
git-svn-id: https://gcc.gnu.org/svn/gcc/branches/lto@135314 138bc75d-0d04-0410-961f-82ee72b054a4
-rw-r--r-- | ChangeLog | 4 | ||||
-rw-r--r-- | config-ml.in | 7 | ||||
-rw-r--r-- | fixincludes/ChangeLog | 6 | ||||
-rw-r--r-- | fixincludes/fixincl.x | 13 | ||||
-rw-r--r-- | fixincludes/inclhack.def | 1 | ||||
-rw-r--r-- | libstdc++-v3/ChangeLog | 10 | ||||
-rw-r--r-- | libstdc++-v3/doc/doxygen/user.cfg.in | 1 | ||||
-rw-r--r-- | libstdc++-v3/include/bits/fstream.tcc | 32 | ||||
-rw-r--r-- | libstdc++-v3/include/std/sstream | 10 | ||||
-rw-r--r-- | libstdc++-v3/testsuite/29_atomics/atomic_flag/test_and_set/explicit.c | 2 | ||||
-rw-r--r-- | libstdc++-v3/testsuite/29_atomics/atomic_flag/test_and_set/implicit.c | 2 |
11 files changed, 60 insertions, 28 deletions
diff --git a/ChangeLog b/ChangeLog index 1ac9bcf5e27..6b5823907b7 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +2008-05-14 Rafael Espindola <espindola@google.com> + + * config-ml.in: don't handle --enable-shared and --enable-static. + 2008-05-10 Richard Sandiford <rdsandiford@googlemail.com> * MAINTAINERS: Update my email address. diff --git a/config-ml.in b/config-ml.in index 3ae19743b76..f2497ada4f8 100644 --- a/config-ml.in +++ b/config-ml.in @@ -135,7 +135,12 @@ do *) optarg=yes ;; esac enableopt=`echo ${option} | sed 's:^--::;s:=.*$::;s:-:_:g'` - eval $enableopt="$optarg" + # enable_shared and enable_static are handled by configure. + # Don't undo its work. + case $enableopt in + enable_shared | enable_static) ;; + *) eval $enableopt="$optarg" ;; + esac ;; --norecursion | --no-recursion) ml_norecursion=yes diff --git a/fixincludes/ChangeLog b/fixincludes/ChangeLog index 913e34e5c47..3f7e9918163 100644 --- a/fixincludes/ChangeLog +++ b/fixincludes/ChangeLog @@ -1,3 +1,9 @@ +2008-05-14 Joseph Myers <joseph@codesourcery.com> + + * inclhack.def (AAB_fd_zero_asm_posix_types_h): Bypass on + posix_types_64. + * fixincl.x: Regenerate. + 2008-04-25 Kai Tietz <kai.tietz@onvision.com> * fixincl.c (fix_with_system): Cast pointer difference to long. diff --git a/fixincludes/fixincl.x b/fixincludes/fixincl.x index 4338150135c..4d5c8c038a0 100644 --- a/fixincludes/fixincl.x +++ b/fixincludes/fixincl.x @@ -2,11 +2,11 @@ * * DO NOT EDIT THIS FILE (fixincl.x) * - * It has been AutoGen-ed Friday March 7, 2008 at 07:37:21 AM CET + * It has been AutoGen-ed Wednesday May 14, 2008 at 03:12:47 PM UTC * From the definitions inclhack.def * and the template file fixincl */ -/* DO NOT SVN-MERGE THIS FILE, EITHER Fr 7. Mär 07:37:22 CET 2008 +/* DO NOT SVN-MERGE THIS FILE, EITHER Wed May 14 15:12:47 UTC 2008 * * You must regenerate it. Use the ./genfixes script. * @@ -272,11 +272,14 @@ tSCC zAab_Fd_Zero_Asm_Posix_Types_HBypass0[] = "} while"; tSCC zAab_Fd_Zero_Asm_Posix_Types_HBypass1[] = "x86_64"; +tSCC zAab_Fd_Zero_Asm_Posix_Types_HBypass2[] = + "posix_types_64"; -#define AAB_FD_ZERO_ASM_POSIX_TYPES_H_TEST_CT 2 +#define AAB_FD_ZERO_ASM_POSIX_TYPES_H_TEST_CT 3 static tTestDesc aAab_Fd_Zero_Asm_Posix_Types_HTests[] = { { TT_NEGREP, zAab_Fd_Zero_Asm_Posix_Types_HBypass0, (regex_t*)NULL }, - { TT_NEGREP, zAab_Fd_Zero_Asm_Posix_Types_HBypass1, (regex_t*)NULL }, }; + { TT_NEGREP, zAab_Fd_Zero_Asm_Posix_Types_HBypass1, (regex_t*)NULL }, + { TT_NEGREP, zAab_Fd_Zero_Asm_Posix_Types_HBypass2, (regex_t*)NULL }, }; /* * Fix Command Arguments for Aab_Fd_Zero_Asm_Posix_Types_H @@ -8664,7 +8667,7 @@ static const char* apzX11_SprintfPatch[] = { * * List of all fixes */ -#define REGEX_COUNT 256 +#define REGEX_COUNT 257 #define MACH_LIST_SIZE_LIMIT 261 #define FIX_COUNT 213 diff --git a/fixincludes/inclhack.def b/fixincludes/inclhack.def index 04b0c82ed6c..a64566e5e0b 100644 --- a/fixincludes/inclhack.def +++ b/fixincludes/inclhack.def @@ -182,6 +182,7 @@ fix = { mach = 'i[34567]86-*-linux*'; bypass = '} while'; bypass = 'x86_64'; + bypass = 'posix_types_64'; /* * Define _POSIX_TYPES_H_WRAPPER at the end of the wrapper, not diff --git a/libstdc++-v3/ChangeLog b/libstdc++-v3/ChangeLog index 1b2e4fa7257..bb4e3d62ec9 100644 --- a/libstdc++-v3/ChangeLog +++ b/libstdc++-v3/ChangeLog @@ -1,3 +1,13 @@ +2008-05-14 Benjamin Kosnik <bkoz@redhat.com> + + * include/std/sstream: Adjust braces. + * include/bits/fstream.tcc: Same. + * testsuite/29_atomics/atomic_flag/test_and_set/explicit.c: Add + -shared-libgcc. + * testsuite/29_atomics/atomic_flag/test_and_set/implicit.c: Same. + + * doc/doxygen/user.cfg.in: Remove thread include. + 2008-05-13 David Daney <ddaney@avtrex.com> * config/cpu/mips/atomicity.h: Remove file. diff --git a/libstdc++-v3/doc/doxygen/user.cfg.in b/libstdc++-v3/doc/doxygen/user.cfg.in index fdb1ea1e5f8..3c59dcbb831 100644 --- a/libstdc++-v3/doc/doxygen/user.cfg.in +++ b/libstdc++-v3/doc/doxygen/user.cfg.in @@ -497,7 +497,6 @@ INPUT = @srcdir@/libsupc++/cxxabi.h \ include/streambuf \ include/string \ include/system_error \ - include/thread \ include/tuple \ include/type_traits \ include/unordered_map \ diff --git a/libstdc++-v3/include/bits/fstream.tcc b/libstdc++-v3/include/bits/fstream.tcc index 1ef7af50e44..69119dc6853 100644 --- a/libstdc++-v3/include/bits/fstream.tcc +++ b/libstdc++-v3/include/bits/fstream.tcc @@ -662,21 +662,23 @@ _GLIBCXX_BEGIN_NAMESPACE(std) setbuf(char_type* __s, streamsize __n) { if (!this->is_open()) - if (__s == 0 && __n == 0) - _M_buf_size = 1; - else if (__s && __n > 0) - { - // This is implementation-defined behavior, and assumes that - // an external char_type array of length __n exists and has - // been pre-allocated. If this is not the case, things will - // quickly blow up. When __n > 1, __n - 1 positions will be - // used for the get area, __n - 1 for the put area and 1 - // position to host the overflow char of a full put area. - // When __n == 1, 1 position will be used for the get area - // and 0 for the put area, as in the unbuffered case above. - _M_buf = __s; - _M_buf_size = __n; - } + { + if (__s == 0 && __n == 0) + _M_buf_size = 1; + else if (__s && __n > 0) + { + // This is implementation-defined behavior, and assumes that + // an external char_type array of length __n exists and has + // been pre-allocated. If this is not the case, things will + // quickly blow up. When __n > 1, __n - 1 positions will be + // used for the get area, __n - 1 for the put area and 1 + // position to host the overflow char of a full put area. + // When __n == 1, 1 position will be used for the get area + // and 0 for the put area, as in the unbuffered case above. + _M_buf = __s; + _M_buf_size = __n; + } + } return this; } diff --git a/libstdc++-v3/include/std/sstream b/libstdc++-v3/include/std/sstream index f8dd50a19f9..2a812423e8d 100644 --- a/libstdc++-v3/include/std/sstream +++ b/libstdc++-v3/include/std/sstream @@ -236,10 +236,12 @@ _GLIBCXX_BEGIN_NAMESPACE(std) { const bool __testin = _M_mode & ios_base::in; if (this->pptr() && this->pptr() > this->egptr()) - if (__testin) - this->setg(this->eback(), this->gptr(), this->pptr()); - else - this->setg(this->pptr(), this->pptr(), this->pptr()); + { + if (__testin) + this->setg(this->eback(), this->gptr(), this->pptr()); + else + this->setg(this->pptr(), this->pptr(), this->pptr()); + } } }; diff --git a/libstdc++-v3/testsuite/29_atomics/atomic_flag/test_and_set/explicit.c b/libstdc++-v3/testsuite/29_atomics/atomic_flag/test_and_set/explicit.c index 9401af4d13b..12a503cbf90 100644 --- a/libstdc++-v3/testsuite/29_atomics/atomic_flag/test_and_set/explicit.c +++ b/libstdc++-v3/testsuite/29_atomics/atomic_flag/test_and_set/explicit.c @@ -1,4 +1,4 @@ -// { dg-options "-x c -lstdc++" } +// { dg-options "-x c -shared-libgcc -lstdc++" } // Copyright (C) 2008 Free Software Foundation, Inc. // diff --git a/libstdc++-v3/testsuite/29_atomics/atomic_flag/test_and_set/implicit.c b/libstdc++-v3/testsuite/29_atomics/atomic_flag/test_and_set/implicit.c index 727421bd12f..658c2b7fc2f 100644 --- a/libstdc++-v3/testsuite/29_atomics/atomic_flag/test_and_set/implicit.c +++ b/libstdc++-v3/testsuite/29_atomics/atomic_flag/test_and_set/implicit.c @@ -1,4 +1,4 @@ -// { dg-options "-x c -lstdc++" } +// { dg-options "-x c -shared-libgcc -lstdc++" } // Copyright (C) 2008 Free Software Foundation, Inc. // |