That commit makes gcc.target/i386/libcall-1.c on darwin:

FAIL: gcc.target/i386/libcall-1.c scan-assembler globl\t__divti3

because the pattern is not found, the only mention of divti3 in the generated 
assembly is:

LCFI0:
        movabsq $_b@GOTOFF, %rdx
        movabsq $___divti3@PLTOFF, %rax
        leaq    L2(%rip), %r15
        pushq   %rbx


The source code is:

---
/* Make sure that external refences for libcalls are generated even for
   indirect calls.  */

/* { dg-do compile { target int128 } } */
/* { dg-options "-O2 -mcmodel=large" } */
/* { dg-final { scan-assembler "globl\t__divti3" } } */

__int128 a, b; void foo () { a = a / b; }
---

Looking at, for example, gcc.target/i386/falign-functions-3.c it seems that 
test avoids scanning for global references on darwin. Probably the new test 
needs the same exception.

FX

Reply via email to