* gcc.target/i386/asm-4.c: Fix inline asm for darwin
x86_64.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@117795
138bc75d-0d04-0410-961f-
82ee72b054a4
+2006-10-16 Eric Christopher <echristo@apple.com>
+
+ * gcc.target/i386/asm-4.c: Fix inline asm for darwin
+ x86_64.
+
2006-10-16 Mark Mitchell <mark@codesourcery.com>
PR c++/28211
void
baz (void)
{
+ /* Darwin loads 64-bit regions above the 4GB boundary so
+ we need to use this instead. */
+#if defined (__LP64__) && defined (__MACH__)
+ __asm ("leaq foo(%%rip), %0" : "=r" (fn));
+#else
__asm ("movl $foo, %k0" : "=r" (fn));
+#endif
if (fn (2, 3, 4, 5) != 14)
abort ();
}