summaryrefslogtreecommitdiff
path: root/gcc/config/i386
diff options
context:
space:
mode:
authorktietz <ktietz@138bc75d-0d04-0410-961f-82ee72b054a4>2014-06-03 22:01:19 +0000
committerktietz <ktietz@138bc75d-0d04-0410-961f-82ee72b054a4>2014-06-03 22:01:19 +0000
commitc20a94d3df40ec8c99b668791e4e2e2a236bad08 (patch)
treedd2e69be9881fdc13f5b168dd3da939b401cc984 /gcc/config/i386
parent6da869e154186eadbafdcf596d10b05611d60b91 (diff)
downloadgcc-c20a94d3df40ec8c99b668791e4e2e2a236bad08.tar.gz
* config/i386/i386.c (ix86_function_value_regno_p): Disallow DX_REG
for 64-bit ms-abi. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@211204 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/config/i386')
-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 84f79dd1d7f..e9a6b040adc 100644
--- a/gcc/config/i386/i386.c
+++ b/gcc/config/i386/i386.c
@@ -7774,8 +7774,9 @@ ix86_function_value_regno_p (const unsigned int regno)
switch (regno)
{
case AX_REG:
- case DX_REG:
return true;
+ case DX_REG:
+ return (!TARGET_64BIT || ix86_abi != MS_ABI);
case DI_REG:
case SI_REG:
return TARGET_64BIT && ix86_abi != MS_ABI;