summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorkazu <kazu@138bc75d-0d04-0410-961f-82ee72b054a4>2007-04-16 16:23:09 +0000
committerkazu <kazu@138bc75d-0d04-0410-961f-82ee72b054a4>2007-04-16 16:23:09 +0000
commitdbaae14a3f80b90149359e8f86f08cccf3a7cd6f (patch)
treed8d6371c67b5bb8423efc548d16e06e1f690ac1c
parent57aaf841ac1101fe6a9930ab37fee126c38708ac (diff)
downloadgcc-dbaae14a3f80b90149359e8f86f08cccf3a7cd6f.tar.gz
* config/m68k/m68k.c (m68k_libcall_value,
m68k_function_value): Use macros for register names more. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@123877 138bc75d-0d04-0410-961f-82ee72b054a4
-rw-r--r--gcc/ChangeLog5
-rw-r--r--gcc/config/m68k/m68k.c6
2 files changed, 8 insertions, 3 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index cda7596032c..a2cf24a78fd 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,8 @@
+2007-04-16 Kazu Hirata <kazu@codesourcery.com>
+
+ * config/m68k/m68k.c (m68k_libcall_value,
+ m68k_function_value): Use macros for register names more.
+
2007-04-16 Maxim Kuvyrkov <mkuvyrkov@ispras.ru>
PR middle-end/28071
diff --git a/gcc/config/m68k/m68k.c b/gcc/config/m68k/m68k.c
index 794659868a3..b450a424d68 100644
--- a/gcc/config/m68k/m68k.c
+++ b/gcc/config/m68k/m68k.c
@@ -4302,12 +4302,12 @@ m68k_libcall_value (enum machine_mode mode)
case DFmode:
case XFmode:
if (TARGET_68881)
- return gen_rtx_REG (mode, 16);
+ return gen_rtx_REG (mode, FP0_REG);
break;
default:
break;
}
- return gen_rtx_REG (mode, 0);
+ return gen_rtx_REG (mode, D0_REG);
}
rtx
@@ -4321,7 +4321,7 @@ m68k_function_value (tree valtype, tree func ATTRIBUTE_UNUSED)
case DFmode:
case XFmode:
if (TARGET_68881)
- return gen_rtx_REG (mode, 16);
+ return gen_rtx_REG (mode, FP0_REG);
break;
default:
break;