The scan-assembler-not "12345" test in gcc.target/i386/combine-mul.c fails on
x86_64-apple-darwin10 due to that target defaulting to -fPIC. Adding -fno-PIC
eliminates the failure. This testcase needs...

Index: gcc.target/i386/combine-mul.c
===================================================================
--- gcc.target/i386/combine-mul.c       (revision 163561)
+++ gcc.target/i386/combine-mul.c       (working copy)
@@ -1,5 +1,6 @@
 /* { dg-do compile } */
 /* { dg-options "-O2" } */
+/* { dg-require-effective-target nonpic } */
 /* { dg-final { scan-assembler-not "12345" } } */

 static inline unsigned int myrnd (void)


-- 
           Summary: gcc.target/i386/combine-mul.c fails on PIC targets
           Product: gcc
           Version: 4.6.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: testsuite
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: howarth at nitro dot med dot uc dot edu
 GCC build triplet: x86_64-apple-darwin10
  GCC host triplet: x86_64-apple-darwin10
GCC target triplet: x86_64-apple-darwin10


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45413

Reply via email to