From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 30713 invoked by alias); 12 Jan 2002 19:54:21 -0000 Mailing-List: contact gdb-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sources.redhat.com Received: (qmail 30681 invoked from network); 12 Jan 2002 19:54:20 -0000 Received: from unknown (HELO localhost.cygnus.com) (24.114.42.213) by sources.redhat.com with SMTP; 12 Jan 2002 19:54:20 -0000 Received: from cygnus.com (localhost [127.0.0.1]) by localhost.cygnus.com (Postfix) with ESMTP id 1F9E73CFC; Sat, 12 Jan 2002 14:54:21 -0500 (EST) Message-ID: <3C40946C.8090809@cygnus.com> Date: Sat, 12 Jan 2002 11:54:00 -0000 From: Andrew Cagney User-Agent: Mozilla/5.0 (X11; U; NetBSD macppc; en-US; rv:0.9.7) Gecko/20020103 X-Accept-Language: en-us MIME-Version: 1.0 To: Andrew Cagney Cc: gdb@sources.redhat.com Subject: Re: system without printf_has_long_long? References: <3C3FCF38.7000508@cygnus.com> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-SW-Source: 2002-01/txt/msg00130.txt.bz2 FYI, Peter Schauer tossed me a patch to fix it so I'll check it in. Andrew > Hello, > > This, er gem, from language.c, has me truely puzzled: > > #ifndef CC_HAS_LONG_LONG > .... > #elif defined (PRINTF_HAS_LONG_LONG) > .... > #else /* !defined (PRINTF_HAS_LONG_LONG) */ > /* Use strcat_address_numeric to print the number into a string, then > build the result string from local_hex_format_prefix, padding and > the hex representation as indicated by "width". */ > > temp_nbr_buf[0] = 0; > /* With use_local == 0, we don't get the leading "0x" prefix. */ > /* MERGEBUG ?? As a quick fix I am replacing this call to > strcat_address_numeric with sprintf > strcat_address_numeric(num, 0, temp_nbr_buf, RESULT_BUF_LEN); > */ > > { > long long ll = num; > sprintf (temp_nbr_buf, "%llx", ll); > } > > It has been in there for two years (HP merge) and it can't work. > > Andrew. >