This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[patch] Move gcc.target/arm/pr27387.C to g++.dg/inherit/thunk8.C.


Hi,

Attached is a patch to move and rename gcc.target/arm/pr27387.C to
g++.dg/inherit/thunk8.C.

Andrew Pinski pointed out that gcc.target/arm/pr27387.C was not
compiled because it was a C++ testcase in a C testsuite.  It turns out
that it is compiled, well, at least in my environment, but it is
compiled with gcc, not g++.

In any event, it's awefully confusing to have a C++ testcase in a C
testsuite, so this patch moves the testcase to an appropriate place.

Tested on arm-none-eabi.  OK to apply?

Kazu Hirata

2007-05-30  Kazu Hirata  <kazu@codesourcery.com>

	* gcc.target/arm/pr27387.C: Move and rename to ...
	* g++.dg/inherit/thunk8.C: ... here.

Index: gcc/testsuite/g++.dg/inherit/thunk8.C
===================================================================
--- gcc/testsuite/g++.dg/inherit/thunk8.C	(revision 0)
+++ gcc/testsuite/g++.dg/inherit/thunk8.C	(revision 0)
@@ -0,0 +1,26 @@
+/* PR target/27387
+   We used to generate a non-PIC thunk on thumb even with -fPIC.
+   Make sure that won't happen anymore.  */
+
+/* { dg-do compile } */
+/* { dg-require-effective-target arm32 } */
+/* { dg-options "-mthumb -fPIC" } */
+
+struct A {
+  virtual void f ();
+};
+
+struct B {
+  virtual void g ();
+};
+
+struct C : public A, public B {
+  virtual void g();
+};
+
+void
+C::g()
+{
+}
+
+/* { dg-final { scan-assembler "LTHUNKPC" } } */
Index: gcc/testsuite/gcc.target/arm/pr27387.C
===================================================================
--- gcc/testsuite/gcc.target/arm/pr27387.C	(revision 125143)
+++ gcc/testsuite/gcc.target/arm/pr27387.C	(working copy)
@@ -1,26 +0,0 @@
-/* PR target/27387
-   We used to generate a non-PIC thunk on thumb even with -fPIC.
-   Make sure that won't happen anymore.  */
-
-/* { dg-do compile } */
-/* { dg-require-effective-target arm32 } */
-/* { dg-options "-mthumb -fPIC" } */
-
-struct A {
-  virtual void f ();
-};
-
-struct B {
-  virtual void g ();
-};
-
-struct C : public A, public B {
-  virtual void g();
-};
-
-void
-C::g()
-{
-}
-
-/* { dg-final { scan-assembler "LTHUNKPC" } } */


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]