diff options
author | dalej <dalej@138bc75d-0d04-0410-961f-82ee72b054a4> | 2005-03-25 00:21:43 +0000 |
---|---|---|
committer | dalej <dalej@138bc75d-0d04-0410-961f-82ee72b054a4> | 2005-03-25 00:21:43 +0000 |
commit | d2f49aead488254eb7102883f09cb53a10dc08eb (patch) | |
tree | dc0e412e7210a4b82270bbda31f46ad80efb543d /gcc/testsuite/gcc.dg/20020919-1.c | |
parent | 8f58677e8d5b6f2440d7af45ae90446eb8407188 (diff) | |
download | gcc-d2f49aead488254eb7102883f09cb53a10dc08eb.tar.gz |
2005-03-24 Dale Johannesen <dalej@apple.com>
* gcc.dg/20020919-1.c: Fix for x86 Darwin.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@97026 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/testsuite/gcc.dg/20020919-1.c')
-rw-r--r-- | gcc/testsuite/gcc.dg/20020919-1.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/gcc/testsuite/gcc.dg/20020919-1.c b/gcc/testsuite/gcc.dg/20020919-1.c index 0eb6b50bdc9..a60fff30b1d 100644 --- a/gcc/testsuite/gcc.dg/20020919-1.c +++ b/gcc/testsuite/gcc.dg/20020919-1.c @@ -31,8 +31,14 @@ #elif defined (__i386__) # define REG1 "%eax" # define REG2 "%edx" +#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 #elif defined (__MMIX__) # define REG1 "$8" # define REG2 "$9" |