From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 4464 invoked by alias); 18 Feb 2003 19:46:52 -0000 Mailing-List: contact gdb-patches-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sources.redhat.com Received: (qmail 4455 invoked from network); 18 Feb 2003 19:46:51 -0000 Received: from unknown (HELO localhost.redhat.com) (172.16.49.200) by 172.16.49.205 with SMTP; 18 Feb 2003 19:46:51 -0000 Received: from redhat.com (localhost [127.0.0.1]) by localhost.redhat.com (Postfix) with ESMTP id 4B71F2D37; Tue, 18 Feb 2003 14:51:39 -0500 (EST) Message-ID: <3E528EC8.9040906@redhat.com> Date: Tue, 18 Feb 2003 19:46:00 -0000 From: Andrew Cagney User-Agent: Mozilla/5.0 (X11; U; NetBSD i386; en-US; rv:1.0.2) Gecko/20030217 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Pierre Muller Cc: gdb-patches@sources.redhat.com Subject: Re: [RFC] Support alternate 'long double' size. References: <5.0.2.1.2.20030217174903.02c193e8@ics.u-strasbg.fr> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-SW-Source: 2003-02/txt/msg00376.txt.bz2 > Index: doublest.c > =================================================================== > RCS file: /cvs/src/src/gdb/doublest.c,v > retrieving revision 1.11 > diff -u -p -r1.11 doublest.c > --- doublest.c 4 Dec 2002 05:40:40 -0000 1.11 > +++ doublest.c 17 Feb 2003 16:07:19 -0000 > @@ -633,6 +633,8 @@ floatformat_from_length (int len) > return TARGET_DOUBLE_FORMAT; > else if (len * TARGET_CHAR_BIT == TARGET_LONG_DOUBLE_BIT) > return TARGET_LONG_DOUBLE_FORMAT; > + else if (len * TARGET_CHAR_BIT == TARGET_LONG_DOUBLE_BIT_ALTERNATE) > + return TARGET_LONG_DOUBLE_FORMAT; > > return NULL; > } Would simply adding: else if (TARGET_LONG_DOUBLE_FORMAT != NULL && len * TARGET_CHAR_BIT == TARGET_LONG_DOUBLE_FORMAT->totalsize) .. to the end of that if() chain work? (and the other alternatives as well of course). Otherwize, yes, I can't see any other way of handling this problem :-( Andrew