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)
Ok, I could apply that, but why is it failing? What assembly output is being produced for it?
Created attachment 21570 [details] assembly file for gcc.target/i386/combine-mul.c on x86_64-apple-darwin10
Author: mrs Date: Mon Mar 7 18:07:31 2011 New Revision: 170744 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=170744 Log: 2011-03-07 Jack Howarth <howarth@bromo.med.uc.edu> PR target/45413 * gcc.target/i386/combine-mul.c: Require nonpic. Modified: trunk/gcc/testsuite/ChangeLog trunk/gcc/testsuite/gcc.target/i386/combine-mul.c
FIxed. If there is a better incantation with: /* { dg-options "-O2 -fno-PIC" { target i?86-apple-darwin* } } */ I'd be interested, but I tried that version out and didn't see a pass.