From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 1579 invoked by alias); 12 Jan 2002 05:53:09 -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 1538 invoked from network); 12 Jan 2002 05:53:06 -0000 Received: from unknown (HELO localhost.cygnus.com) (24.114.42.213) by sources.redhat.com with SMTP; 12 Jan 2002 05:53:06 -0000 Received: from cygnus.com (localhost [127.0.0.1]) by localhost.cygnus.com (Postfix) with ESMTP id C75F23D0E for ; Sat, 12 Jan 2002 00:52:56 -0500 (EST) Message-ID: <3C3FCF38.7000508@cygnus.com> Date: Fri, 11 Jan 2002 21:53: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: gdb@sources.redhat.com Subject: system without printf_has_long_long? Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-SW-Source: 2002-01/txt/msg00129.txt.bz2 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.