This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: Patch: adjust gcc.dg/20020919-1.c for x86 Darwin
- From: Richard Henderson <rth at gcc dot gnu dot org>
- To: Dale Johannesen <dalej at apple dot com>
- Cc: "gcc-patches at gcc dot gnu dot org Patches" <gcc-patches at gcc dot gnu dot org>
- Date: Mon, 28 Mar 2005 14:35:39 -0800
- Subject: Re: Patch: adjust gcc.dg/20020919-1.c for x86 Darwin
- References: <3c49e017677e7bef5faa7689dc6a4bfd@apple.com>
> + #if defined (__MACH__)
> + /* On Darwin -fpic is on by default, so don't use %ebx. */
> + # define REG3 "%esi"
> + # define REG4 "%edi"
> + #else
> # define REG3 "%ecx"
> # define REG4 "%ebx"
> + #endif
Or you could just change the registers for all x86...
r~