* testsuite/discard_locals_relocatable_test.c: Add a powerpc
authorAlan Modra <amodra@gmail.com>
Thu, 7 Mar 2013 05:33:50 +0000 (05:33 +0000)
committerAlan Modra <amodra@gmail.com>
Thu, 7 Mar 2013 05:33:50 +0000 (05:33 +0000)
relocation referencing .LC0.
* testsuite/discard_locals_test.sh: Remove FIXMEs.

gold/ChangeLog
gold/testsuite/discard_locals_relocatable_test.c
gold/testsuite/discard_locals_test.sh

index efd7752e4e76cb0df55d9d696273c4358668be71..c3d1b5af1352d90674a3eeffcaf0f71e314739ff 100644 (file)
@@ -1,3 +1,9 @@
+2013-03-07  Alan Modra  <amodra@gmail.com>
+
+       * testsuite/discard_locals_relocatable_test.c: Add a powerpc
+       relocation referencing .LC0.
+       * testsuite/discard_locals_test.sh: Remove FIXMEs.
+
 2013-03-07  Alan Modra  <amodra@gmail.com>
 
        * testsuite/ifunc-sel.h (ifunc_sel, ifunc_one): Mark
index d46151e42ce274f4da9255db863d0f6c48a314c5..f7f8b2792023246f5406f98e0afd2653766fa347 100644 (file)
    in the output object file. */
 asm (".Lshould_be_discarded:");
 
+#ifdef __powerpc__
+/* Test wants to keep one local.  Satisfy it.  */
+#ifdef __powerpc64__
+asm (".reloc 0,R_PPC64_NONE,.LC0");
+#else
+asm (".reloc 0,R_PPC_NONE,.LC0");
+#endif
+#endif
+
 extern void print_func (const char* s);
 
 extern int func (void);
index 0d0a118472dbaffe7e60370fa5dc06ee01c3c9f5..3fc679a45855622a0cb09fccf7b4361b3e6d4804 100755 (executable)
@@ -55,10 +55,8 @@ check_non_discarded()
 
 check_discarded     "discard_locals_test.syms" "should_be_discarded"
 
-# FIXME: gcc doesn't generate a .LC0 sym for powerpc64
 check_non_discarded "discard_locals_relocatable_test1.syms" ".LC0"
 check_discarded     "discard_locals_relocatable_test1.syms" "should_be_discarded"
-# FIXME: gcc doesn't generate a .LC0 sym for powerpc64
 check_non_discarded "discard_locals_relocatable_test2.syms" ".LC0"
 check_discarded     "discard_locals_relocatable_test2.syms" "should_be_discarded"