From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 15220 invoked by alias); 5 May 2004 22:47:16 -0000 Mailing-List: contact gcc-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-owner@gcc.gnu.org Received: (qmail 15193 invoked from network); 5 May 2004 22:47:15 -0000 Received: from unknown (HELO bluesmobile.specifixinc.com) (64.62.200.227) by sources.redhat.com with SMTP; 5 May 2004 22:47:15 -0000 Received: from localhost.localdomain (bluesmobile.corp.specifixinc.com [10.0.0.1]) by bluesmobile.specifixinc.com (Postfix) with ESMTP id 113801651D; Wed, 5 May 2004 15:47:15 -0700 (PDT) Subject: Re: Promoting floats to doubles? From: Jim Wilson To: Kean Johnston Cc: "Joseph S. Myers" , gcc@gcc.gnu.org In-Reply-To: <4098AD32.5050003@sco.com> References: <409493B7.6040108@sco.com> <4096AE14.7000505@specifixinc.com> <4096EEAE.60105@sco.com> <1083643245.1258.151.camel@leaf.tuliptree.org> <4097D44D.5090105@sco.com> <1083703482.1063.5.camel@leaf.tuliptree.org> <40982DD0.5070200@sco.com> <40989367.7000506@specifixinc.com> <4098AD32.5050003@sco.com> Content-Type: text/plain Content-Transfer-Encoding: 7bit Date: Wed, 05 May 2004 22:47:00 -0000 Message-Id: <1083797272.1082.51.camel@leaf.tuliptree.org> Mime-Version: 1.0 X-SW-Source: 2004-05/txt/msg00248.txt.bz2 On Wed, 2004-05-05 at 02:00, Kean Johnston wrote: > #define PROMOTE_MODE(MODE,UNSIGNEDP, TYPE) \ > #define PROMOTE_FUNCTION_ARGS > #define PROMOTE_FOR_CALL_ONLY PROMOTE_FOR_CALL_ONLY was removed last week by the way. The PROMOTE_MODE stuff may not work in your case. Currently, they are only for integers (char/short/int/long), and they work by adding SUBREGs. However, SUBREGs can not be used for converting floats to doubles and vice versa. So the PROMOTE_MODE stuff will just lead to trouble. You might be able to get it working, but you will have to rewrite the code a bit. It might be easier to add some new hooks which are used in the same places but generate conversions instead of adding subregs. It is probably easier to do this in the C front end, even if that is the wrong place to do this. It will be a bit more work to do this in the middle-end. I don't believe there are any existing hooks for this. I will you will. have to write some code to get this working in the middle-end. -- Jim Wilson, GNU Tools Support, http://www.SpecifixInc.com