From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 1260 invoked by alias); 8 Feb 2006 05:58:13 -0000 Received: (qmail 1252 invoked by uid 22791); 8 Feb 2006 05:58:12 -0000 X-Spam-Check-By: sourceware.org Received: from mx1.redhat.com (HELO mx1.redhat.com) (66.187.233.31) by sourceware.org (qpsmtpd/0.31) with ESMTP; Wed, 08 Feb 2006 05:58:11 +0000 Received: from int-mx1.corp.redhat.com (int-mx1.corp.redhat.com [172.16.52.254]) by mx1.redhat.com (8.12.11/8.12.11) with ESMTP id k185w4pU017836 for ; Wed, 8 Feb 2006 00:58:09 -0500 Received: from pobox.corp.redhat.com (pobox.corp.redhat.com [172.16.52.156]) by int-mx1.corp.redhat.com (8.11.6/8.11.6) with ESMTP id k185w4102938; Wed, 8 Feb 2006 00:58:04 -0500 Received: from livre.oliva.athome.lsd.ic.unicamp.br (vpn50-11.rdu.redhat.com [172.16.50.11]) by pobox.corp.redhat.com (8.12.8/8.12.8) with ESMTP id k185w3YT012267; Wed, 8 Feb 2006 00:58:03 -0500 Received: from livre.oliva.athome.lsd.ic.unicamp.br (livre.oliva.athome.lsd.ic.unicamp.br [127.0.0.1]) by livre.oliva.athome.lsd.ic.unicamp.br (8.13.5/8.13.5) with ESMTP id k185w2oG021590; Wed, 8 Feb 2006 03:58:02 -0200 Received: (from aoliva@localhost) by livre.oliva.athome.lsd.ic.unicamp.br (8.13.5/8.13.5/Submit) id k185w2uk021589; Wed, 8 Feb 2006 03:58:02 -0200 To: Eli Zaretskii Cc: gdb-patches@sources.redhat.com Subject: Re: fixes for type-punning warnings in GCC 4.1 References: <20051219221830.GA32448@nevyn.them.org> <20060122203323.GC27224@nevyn.them.org> From: Alexandre Oliva Date: Wed, 08 Feb 2006 05:58:00 -0000 In-Reply-To: (Alexandre Oliva's message of "Wed, 08 Feb 2006 00:48:11 -0200") Message-ID: User-Agent: Gnus/5.1007 (Gnus v5.10.7) XEmacs/21.4.18 (linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org X-SW-Source: 2006-02/txt/msg00165.txt.bz2 On Feb 8, 2006, Alexandre Oliva wrote: > On Jan 22, 2006, Daniel Jacobowitz wrote: >> The output is always a DOUBLEST. I don't know of any reason why we >> should enable HAVE_LONG_DOUBLE if we can't printf and scanf them; would >> this be simpler in that case? Don't make DOUBLEST something we can't >> scan or print. > Sounds good to me. Ok to install? GRR. quilt was eating my ChangeLog entries :-( Here's what I meant to post along with the previous patch: for gdb/ChangeLog from Alexandre Oliva * doublest.h (DOUBLEST): Use long double only if we can scan in. (DOUBLEST_FORMAT): New. * c-exp.y (parse_number): Use it. * jv-exp.y (parse_number): Likewise. * objc-exp.y (parse_number): Likewise. * p-exp.y (parse_number): Likewise. * tui/tui-data.c (source_windows): Silence type-punning warnings. * varobj.c (free_variable): Likewise. -- Alexandre Oliva http://www.lsd.ic.unicamp.br/~oliva/ Secretary for FSF Latin America http://www.fsfla.org/ Red Hat Compiler Engineer aoliva@{redhat.com, gcc.gnu.org} Free Software Evangelist oliva@{lsd.ic.unicamp.br, gnu.org}