Add workaround for gcc-2.95.2 failure.
authorAlan Modra <amodra@gmail.com>
Wed, 12 Apr 2000 12:55:06 +0000 (12:55 +0000)
committerAlan Modra <amodra@gmail.com>
Wed, 12 Apr 2000 12:55:06 +0000 (12:55 +0000)
ld/testsuite/ChangeLog
ld/testsuite/ld-selective/3.cc

index 89f94ff3e703a292f13f2b3f410c635587346ebb..c07f18eb48bf1f28483ccb5c83e35d74933e8064 100644 (file)
@@ -1,5 +1,7 @@
 2000-04-12  Alan Modra  <alan@linuxcare.com.au>
 
+       * ld-selective/3.cc (_start): Add cheat for gcc-2.95.2 failure.
+
        * ld-selective/selective.exp (test4): Test for presence of
        foo__1B, not absence.  Also check for foo__1A and _start.
        White space changes throughout file.
index 852bc5d04549ca0c4866f3618c558d2a0fb16d94..79d5e96b7f1a32e9d9df05cf00ca9c1cb202b4dd 100644 (file)
@@ -5,7 +5,7 @@ struct A
 };
 
 void A::foo() { }                      // keep
-void A::bar() { }                      // loose
+void A::bar() { }                      // lose
 
 struct B : public A
 {
@@ -23,6 +23,13 @@ A *getme() { return &a; }            // keep
 void _start()
 {
   getme()->foo();
+#ifdef __GNUC__
+#if (__GNUC__ == 2 && __GNUC_MINOR__ < 96)
+// gcc-2.95.2 gets this test wrong, and loses B::foo().
+// Cheat.  After all, we aren't trying to test the compiler here.
+  b.foo();
+#endif
+#endif
 }
 
 // In addition, keep A's virtual table.
This page took 0.024864 seconds and 4 git commands to generate.