From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 2577 invoked by alias); 26 Oct 2009 15:29:59 -0000 Received: (qmail 2569 invoked by uid 22791); 26 Oct 2009 15:29:58 -0000 X-SWARE-Spam-Status: No, hits=-2.6 required=5.0 tests=AWL,BAYES_00,SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: sourceware.org Received: from mx1.redhat.com (HELO mx1.redhat.com) (209.132.183.28) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Mon, 26 Oct 2009 15:29:51 +0000 Received: from int-mx02.intmail.prod.int.phx2.redhat.com (int-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.12]) by mx1.redhat.com (8.13.8/8.13.8) with ESMTP id n9QFToaU013404; Mon, 26 Oct 2009 11:29:50 -0400 Received: from omfg.slc.redhat.com (ovpn01.gateway.prod.ext.phx2.redhat.com [10.5.9.1]) by int-mx02.intmail.prod.int.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id n9QFTkpO026174; Mon, 26 Oct 2009 11:29:48 -0400 Message-ID: <4AE5C081.1070301@redhat.com> Date: Mon, 26 Oct 2009 15:44:00 -0000 From: Jeff Law User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.1.4pre) Gecko/20091014 Fedora/3.0-2.8.b4.fc11 Thunderbird/3.0b4 MIME-Version: 1.0 To: Anatoly Sokolov CC: gcc-patches@gcc.gnu.org Subject: Re: [MN10300] Remove FUNCTION_VALUE, FUNCTION_OUTGOING_VALUE and LIBCALL_VALUE macros. References: <1529218693.20091025145911@post.ru> In-Reply-To: <1529218693.20091025145911@post.ru> Content-Type: text/plain; charset=windows-1251; format=flowed Content-Transfer-Encoding: 7bit X-IsSubscribed: yes Mailing-List: contact gcc-patches-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-patches-owner@gcc.gnu.org X-SW-Source: 2009-10/txt/msg01561.txt.bz2 On 10/25/09 05:59, Anatoly Sokolov wrote: > Hello. > > This patch removes obsolete FUNCTION_VALUE, FUNCTION_OUTGOING_VALUE and > LIBCALL_VALUE macros from mn10300 back end in the GCC and introduces > equivalent TARGET_FUNCTION_VALUE, TARGET_FUNCTION_OUTGOING_VALUE and > TARGET_LIBCALL_VALUE target hooks. Also this patch convert > FUNCTION_VALUE_REGNO_P macro to mn10300_function_value_regno_p function, this > should simplify hookize FUNCTION_VALUE_REGNO_P macro in the future. > > Regression tested on mn10300-unknown-elf. > > * config/mn10300/mn10300.c (mn10300_function_value): Make static, add > new 'outgoing' argument. > (mn10300_libcall_value, mn10300_function_value_regno_p): New > functions. > (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE): Declare. > * config/mn10300/mn10300.h: (FUNCTION_VALUE, FUNCTION_OUTGOING_VALUE, > LIBCALL_VALUE): Remove. > (FUNCTION_VALUE_REGNO_P): Redefine, use mn10300_function_value_regno_p. > * config/mn10300/mn10300-protos.h (mh10300_function_value_regno_p): > Declare. > OK. Jeff