diff mbox

RFA: Add libstdc++-v3 support for avr 6/7: Run -frtti tests with -frtti

Message ID CAMqJFCrDj1a6L+WaCAjCXP_d3U-wDBmMX=aH6HJ67_=Ci36dRA@mail.gmail.com
State New
Headers show

Commit Message

Joern Rennecke Oct. 21, 2014, 4:05 p.m. UTC
We got a couple of tests that assume -frtti; this is the default for
most targets, but not for avr.
libstdc++-v3:

2013-09-24  Joern Rennecke <joern.rennecke@embecosm.com>

	* testsuite/18_support/type_info/hash_code.cc (dg-options): Add -frtti.
	* testsuite/20_util/shared_ptr/cons/unique_ptr_deleter_ref_2.cc
	(dg-options): Likewise.
	* testsuite/20_util/shared_ptr/creation/private.cc (dg-options):
	Likewise.
	* testsuite/20_util/typeindex/hash.cc (dg-options): Likewise.
	* testsuite/20_util/typeindex/hash_code.cc (dg-options): Likewise.
	* testsuite/experimental/any/observers/type.cc (dg-options): Likewise.

	* testsuite/20_util/shared_ptr/creation/58594.cc (dg-options):
	Add -frtti.
	* testsuite/20_util/typeindex/comparison_operators.cc (dg-options):
	Likewise.
	* testsuite/20_util/typeindex/name.cc (dg-options): Likewise.
	* testsuite/23_containers/array/requirements/non_default_constructible.cc (dg-options):
	Likewise.
diff mbox

Patch

Index: testsuite/18_support/type_info/hash_code.cc
===================================================================
--- testsuite/18_support/type_info/hash_code.cc	(revision 216243)
+++ testsuite/18_support/type_info/hash_code.cc	(working copy)
@@ -1,4 +1,4 @@ 
-// { dg-options "-std=gnu++0x" }
+// { dg-options "-std=gnu++0x -frtti" }
 
 // 2010-09-21  Paolo Carlini  <paolo.carlini@oracle.com>
 //
Index: testsuite/20_util/shared_ptr/cons/unique_ptr_deleter_ref_2.cc
===================================================================
--- testsuite/20_util/shared_ptr/cons/unique_ptr_deleter_ref_2.cc	(revision 216243)
+++ testsuite/20_util/shared_ptr/cons/unique_ptr_deleter_ref_2.cc	(working copy)
@@ -1,4 +1,4 @@ 
-// { dg-options "-std=gnu++0x" }
+// { dg-options "-std=gnu++0x -frtti" }
 
 // Copyright (C) 2008-2014 Free Software Foundation, Inc.
 //
Index: testsuite/20_util/shared_ptr/creation/58594.cc
===================================================================
--- testsuite/20_util/shared_ptr/creation/58594.cc	(revision 216243)
+++ testsuite/20_util/shared_ptr/creation/58594.cc	(working copy)
@@ -1,4 +1,4 @@ 
-// { dg-options "-std=gnu++11" }
+// { dg-options "-std=gnu++11 -frtti" }
 // { dg-do compile }
 
 // Copyright (C) 2013-2014 Free Software Foundation, Inc.
Index: testsuite/20_util/shared_ptr/creation/private.cc
===================================================================
--- testsuite/20_util/shared_ptr/creation/private.cc	(revision 216243)
+++ testsuite/20_util/shared_ptr/creation/private.cc	(working copy)
@@ -1,4 +1,4 @@ 
-// { dg-options "-std=gnu++0x" }
+// { dg-options "-std=gnu++0x -frtti" }
 
 // Copyright (C) 2011-2014 Free Software Foundation, Inc.
 //
Index: testsuite/20_util/typeindex/comparison_operators.cc
===================================================================
--- testsuite/20_util/typeindex/comparison_operators.cc	(revision 216243)
+++ testsuite/20_util/typeindex/comparison_operators.cc	(working copy)
@@ -1,4 +1,4 @@ 
-// { dg-options "-std=gnu++0x" }
+// { dg-options "-std=gnu++0x -frtti" }
 
 // 2010-09-22  Paolo Carlini  <paolo.carlini@oracle.com>
 //
Index: testsuite/20_util/typeindex/hash.cc
===================================================================
--- testsuite/20_util/typeindex/hash.cc	(revision 216243)
+++ testsuite/20_util/typeindex/hash.cc	(working copy)
@@ -1,4 +1,4 @@ 
-// { dg-options "-std=gnu++0x" }
+// { dg-options "-std=gnu++0x -frtti" }
 
 // 2010-09-22  Paolo Carlini  <paolo.carlini@oracle.com>
 //
Index: testsuite/20_util/typeindex/hash_code.cc
===================================================================
--- testsuite/20_util/typeindex/hash_code.cc	(revision 216243)
+++ testsuite/20_util/typeindex/hash_code.cc	(working copy)
@@ -1,4 +1,4 @@ 
-// { dg-options "-std=gnu++0x" }
+// { dg-options "-std=gnu++0x -frtti" }
 
 // 2010-09-22  Paolo Carlini  <paolo.carlini@oracle.com>
 //
Index: testsuite/20_util/typeindex/name.cc
===================================================================
--- testsuite/20_util/typeindex/name.cc	(revision 216243)
+++ testsuite/20_util/typeindex/name.cc	(working copy)
@@ -1,4 +1,4 @@ 
-// { dg-options "-std=gnu++0x" }
+// { dg-options "-std=gnu++0x -frtti" }
 
 // 2010-09-22  Paolo Carlini  <paolo.carlini@oracle.com>
 //
Index: testsuite/23_containers/array/requirements/non_default_constructible.cc
===================================================================
--- testsuite/23_containers/array/requirements/non_default_constructible.cc	(revision 216243)
+++ testsuite/23_containers/array/requirements/non_default_constructible.cc	(working copy)
@@ -1,4 +1,4 @@ 
-// { dg-options "-std=gnu++11" }
+// { dg-options "-std=gnu++11 -frtti" }
 // { dg-do compile }
 
 // Copyright (C) 2012-2014 Free Software Foundation, Inc.
Index: testsuite/experimental/any/observers/type.cc
===================================================================
--- testsuite/experimental/any/observers/type.cc	(revision 216243)
+++ testsuite/experimental/any/observers/type.cc	(working copy)
@@ -1,4 +1,4 @@ 
-// { dg-options "-std=gnu++14" }
+// { dg-options "-std=gnu++14 -frtti" }
 // { dg-do run }
 
 // Copyright (C) 2014 Free Software Foundation, Inc.