From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 27396 invoked by alias); 19 May 2008 14:31:17 -0000 Received: (qmail 27359 invoked by uid 22791); 19 May 2008 14:31:11 -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; Mon, 19 May 2008 14:30:54 +0000 Received: from int-mx1.corp.redhat.com (int-mx1.corp.redhat.com [172.16.52.254]) by mx1.redhat.com (8.13.8/8.13.8) with ESMTP id m4JEUXvk029996; Mon, 19 May 2008 10:30:33 -0400 Received: from file.rdu.redhat.com (file.rdu.redhat.com [10.11.255.147]) by int-mx1.corp.redhat.com (8.13.1/8.13.1) with ESMTP id m4JEUWEY004309; Mon, 19 May 2008 10:30:32 -0400 Received: from devserv.devel.redhat.com (devserv.devel.redhat.com [10.10.36.72]) by file.rdu.redhat.com (8.13.1/8.13.1) with ESMTP id m4JEUWrV010256; Mon, 19 May 2008 10:30:32 -0400 Received: from devserv.devel.redhat.com (localhost.localdomain [127.0.0.1]) by devserv.devel.redhat.com (8.12.11.20060308/8.12.11) with ESMTP id m4JEUWKn002481; Mon, 19 May 2008 10:30:32 -0400 Received: (from jakub@localhost) by devserv.devel.redhat.com (8.12.11.20060308/8.12.11/Submit) id m4JEUWc5002479; Mon, 19 May 2008 10:30:32 -0400 Date: Mon, 19 May 2008 14:31:00 -0000 From: Jakub Jelinek To: FX Cc: GCC Development , gcc-patches Subject: Re: [RFC] Adjust output for strings in tree-pretty-print.c Message-ID: <20080519143031.GR29975@devserv.devel.redhat.com> Reply-To: Jakub Jelinek References: <19c433eb0805190659g7442d645ga7755ec598856463@mail.gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <19c433eb0805190659g7442d645ga7755ec598856463@mail.gmail.com> User-Agent: Mutt/1.4.1i Mailing-List: contact gcc-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-owner@gcc.gnu.org X-SW-Source: 2008-05/txt/msg00207.txt.bz2 On Mon, May 19, 2008 at 02:59:16PM +0100, FX wrote: > return (unsigned char *) "look\0here\0"; > > > Notice the added final '\0' in the C case; I don't know if it's bad to > have it there, but I don't see a way to not output it and still have > the correct output for Fortran (whose strings are not NUL-terminated). Yes, it is bad to have it there for C/C++, please make sure the final \0 isn't printed. Jakub