From 492d1e0ac5c5bae22a29c0e436b50603052f2c29 Mon Sep 17 00:00:00 2001 From: Iain Sandoe Date: Sat, 14 Sep 2013 11:09:55 +0000 Subject: [PATCH] re PR target/58269 (ICE when building libobjc on x86_64-apple-darwin* after revision 201915) gcc: PR target/58269 config/i386/i386.c (ix86_function_arg_regno_p): Make Darwin use the xmm register set described in the psABI. From-SVN: r202590 --- gcc/ChangeLog | 6 ++++++ gcc/config/i386/i386.c | 14 +++----------- 2 files changed, 9 insertions(+), 11 deletions(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 0224228f253..5113efd4404 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,9 @@ +2013-09-14 Iain Sandoe + + PR target/58269 + config/i386/i386.c (ix86_function_arg_regno_p): Make Darwin use the + xmm register set described in the psABI. + 2013-09-13 Evgeny Gavrin * dwarf2out.c (should_emit_struct_debug): Add check diff --git a/gcc/config/i386/i386.c b/gcc/config/i386/i386.c index 72549e92873..bba214712a0 100644 --- a/gcc/config/i386/i386.c +++ b/gcc/config/i386/i386.c @@ -5723,17 +5723,9 @@ ix86_function_arg_regno_p (int regno) && (regno < FIRST_SSE_REG + SSE_REGPARM_MAX))); } - if (TARGET_MACHO) - { - if (SSE_REGNO_P (regno) && TARGET_SSE) - return true; - } - else - { - if (TARGET_SSE && SSE_REGNO_P (regno) - && (regno < FIRST_SSE_REG + SSE_REGPARM_MAX)) - return true; - } + if (TARGET_SSE && SSE_REGNO_P (regno) + && (regno < FIRST_SSE_REG + SSE_REGPARM_MAX)) + return true; /* TODO: The function should depend on current function ABI but builtins.c would need updating then. Therefore we use the -- 2.30.2