From 8f13c4d68fa3f5328f93cde8274152f8da5bd341 Mon Sep 17 00:00:00 2001 From: Paolo Carlini Date: Tue, 31 Jan 2006 17:46:07 +0000 Subject: [PATCH] re PR libstdc++/21554 (ext/array_allocator/2.cc execution fails) 2006-01-31 Paolo Carlini PR libstdc++/21554 * include/tr1/array (array<>::_M_instance): Maximally align. * testsuite/ext/array_allocator/2.cc: Do not xfail for powerpc. From-SVN: r110445 --- libstdc++-v3/ChangeLog | 6 ++++++ libstdc++-v3/include/tr1/array | 4 ++-- libstdc++-v3/testsuite/ext/array_allocator/2.cc | 5 +---- 3 files changed, 9 insertions(+), 6 deletions(-) diff --git a/libstdc++-v3/ChangeLog b/libstdc++-v3/ChangeLog index 4d45c13f54f..3b7693f489b 100644 --- a/libstdc++-v3/ChangeLog +++ b/libstdc++-v3/ChangeLog @@ -1,3 +1,9 @@ +2006-01-31 Paolo Carlini + + PR libstdc++/21554 + * include/tr1/array (array<>::_M_instance): Maximally align. + * testsuite/ext/array_allocator/2.cc: Do not xfail for powerpc. + 2006-01-31 Ed Smith-Rowland <3dw4rd@verizon.net> * docs/html/faq/index.html ([1.0]): Replace references to CVS diff --git a/libstdc++-v3/include/tr1/array b/libstdc++-v3/include/tr1/array index bdef568f0cd..5f504851847 100644 --- a/libstdc++-v3/include/tr1/array +++ b/libstdc++-v3/include/tr1/array @@ -1,6 +1,6 @@ // class template array -*- C++ -*- -// Copyright (C) 2004, 2005 Free Software Foundation, Inc. +// Copyright (C) 2004, 2005, 2006 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 @@ -64,7 +64,7 @@ _GLIBCXX_BEGIN_NAMESPACE(tr1) enum { _S_index = _Nm }; // Support for zero-sized arrays mandatory. - value_type _M_instance[_Nm ? _Nm : 1]; + value_type _M_instance[_Nm ? _Nm : 1] __attribute__((__aligned__)); // No explicit construct/copy/destroy for aggregate type. diff --git a/libstdc++-v3/testsuite/ext/array_allocator/2.cc b/libstdc++-v3/testsuite/ext/array_allocator/2.cc index 6ec4a1771ee..f3b30947812 100644 --- a/libstdc++-v3/testsuite/ext/array_allocator/2.cc +++ b/libstdc++-v3/testsuite/ext/array_allocator/2.cc @@ -1,7 +1,4 @@ -// Expected execution error for PR19495. -// { dg-do run { xfail powerpc*-*-linux* } } - -// Copyright (C) 2004, 2005 Free Software Foundation, Inc. +// Copyright (C) 2004, 2005, 2006 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