aboutsummaryrefslogtreecommitdiff
path: root/gcc/config
diff options
context:
space:
mode:
authorJakub Jelinek <jakub@redhat.com>2002-01-21 16:53:31 +0100
committerJakub Jelinek <jakub@gcc.gnu.org>2002-01-21 16:53:31 +0100
commit0333394edfb117c6a3b599dcc9c20ae872a2b0be (patch)
treeb5b862995df2efeb1772947bacfcb44a7e1ae43a /gcc/config
parente9d1b155fc792949cbee6234b4628340f923fd3b (diff)
downloadgcc-0333394edfb117c6a3b599dcc9c20ae872a2b0be.zip
gcc-0333394edfb117c6a3b599dcc9c20ae872a2b0be.tar.gz
gcc-0333394edfb117c6a3b599dcc9c20ae872a2b0be.tar.bz2
i386.c (ix86_function_arg_regno_p): Never return true for 64-bit mode only SSE registers in 32-bit mode.
* config/i386/i386.c (ix86_function_arg_regno_p): Never return true for 64-bit mode only SSE registers in 32-bit mode. * gcc.dg/20020218-1.c: New test. From-SVN: r49046
Diffstat (limited to 'gcc/config')
-rw-r--r--gcc/config/i386/i386.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/gcc/config/i386/i386.c b/gcc/config/i386/i386.c
index a51990b..7eedba3 100644
--- a/gcc/config/i386/i386.c
+++ b/gcc/config/i386/i386.c
@@ -1483,7 +1483,8 @@ ix86_function_arg_regno_p (regno)
{
int i;
if (!TARGET_64BIT)
- return regno < REGPARM_MAX || (TARGET_SSE && SSE_REGNO_P (regno));
+ return (regno < REGPARM_MAX
+ || (TARGET_SSE && SSE_REGNO_P (regno) && !fixed_regs[regno]));
if (SSE_REGNO_P (regno) && TARGET_SSE)
return true;
/* RAX is used as hidden argument to va_arg functions. */