From patchwork Sun Dec 19 16:21:22 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: [v3] libstdc++/46869 Date: Sun, 19 Dec 2010 06:21:22 -0000 From: Paolo Carlini X-Patchwork-Id: 76141 Message-Id: <4D0E3102.2070407@oracle.com> To: "gcc-patches@gcc.gnu.org" Cc: libstdc++ Hi, sanity checked on x86_64-linux, committed to mainline. Paolo. /////////////////////// 2010-12-19 John David Anglin PR libstdc++/46869 * testsuite/20_util/enable_shared_from_this/cons/constexpr.cc: Compile with -g0. * testsuite/20_util/shared_ptr/cons/constexpr.cc: Likewise. * testsuite/20_util/unique_ptr/cons/constexpr.cc: Likewise. * testsuite/20_util/weak_ptr/cons/constexpr.cc: Likewise. Index: testsuite/20_util/enable_shared_from_this/cons/constexpr.cc =================================================================== --- testsuite/20_util/enable_shared_from_this/cons/constexpr.cc (revision 168046) +++ testsuite/20_util/enable_shared_from_this/cons/constexpr.cc (working copy) @@ -1,5 +1,5 @@ // { dg-do compile } -// { dg-options "-std=gnu++0x -fno-inline -save-temps" } +// { dg-options "-std=gnu++0x -fno-inline -save-temps -g0" } // { dg-final { scan-assembler-not "_ZNSt23enable_shared_from_thisIiEC2Ev" } } // { dg-final { scan-assembler-not "_ZN7derivedC2Ev" } } Index: testsuite/20_util/shared_ptr/cons/constexpr.cc =================================================================== --- testsuite/20_util/shared_ptr/cons/constexpr.cc (revision 168046) +++ testsuite/20_util/shared_ptr/cons/constexpr.cc (working copy) @@ -1,5 +1,5 @@ // { dg-do compile } -// { dg-options "-std=gnu++0x -fno-inline -save-temps" } +// { dg-options "-std=gnu++0x -fno-inline -save-temps -g0" } // { dg-final { scan-assembler-not "_ZNSt10shared_ptrIiEC2Ev" } } // { dg-final { scan-assembler-not "_ZNSt10shared_ptrIiEC2EDn" } } Index: testsuite/20_util/unique_ptr/cons/constexpr.cc =================================================================== --- testsuite/20_util/unique_ptr/cons/constexpr.cc (revision 168046) +++ testsuite/20_util/unique_ptr/cons/constexpr.cc (working copy) @@ -1,5 +1,5 @@ // { dg-do compile } -// { dg-options "-std=gnu++0x -fno-inline -save-temps" } +// { dg-options "-std=gnu++0x -fno-inline -save-temps -g0" } // { dg-final { scan-assembler-not "_ZNSt10unique_ptrIiSt14default_deleteIiEEC2Ev" } } // { dg-final { scan-assembler-not "_ZNSt10unique_ptrIiSt14default_deleteIiEEC2EDn" } } Index: testsuite/20_util/weak_ptr/cons/constexpr.cc =================================================================== --- testsuite/20_util/weak_ptr/cons/constexpr.cc (revision 168046) +++ testsuite/20_util/weak_ptr/cons/constexpr.cc (working copy) @@ -1,5 +1,5 @@ // { dg-do compile } -// { dg-options "-std=gnu++0x -fno-inline -save-temps" } +// { dg-options "-std=gnu++0x -fno-inline -save-temps -g0" } // { dg-final { scan-assembler-not "_ZNSt8weak_ptrIiEC2Ev" } } // Copyright (C) 2010 Free Software Foundation, Inc.