From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 22405 invoked by alias); 30 Nov 2001 18:22:59 -0000 Mailing-List: contact gcc-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-owner@gcc.gnu.org Received: (qmail 22384 invoked from network); 30 Nov 2001 18:22:59 -0000 Received: from unknown (HELO boden.synopsys.com) (204.176.20.19) by hostedprojects.ges.redhat.com with SMTP; 30 Nov 2001 18:22:59 -0000 Received: from maiden.synopsys.com (maiden.synopsys.com [146.225.100.170]) by boden.synopsys.com (Postfix) with ESMTP id 6E41ADB78; Fri, 30 Nov 2001 10:22:54 -0800 (PST) Received: from atrus.synopsys.com (localhost [127.0.0.1]) by maiden.synopsys.com (8.9.1/8.9.1) with ESMTP id KAA04901; Fri, 30 Nov 2001 10:23:17 -0800 (PST) From: Joe Buck Received: (from jbuck@localhost) by atrus.synopsys.com (8.9.3+Sun/8.9.1) id KAA28472; Fri, 30 Nov 2001 10:22:53 -0800 (PST) Message-Id: <200111301822.KAA28472@atrus.synopsys.com> Subject: Re: fdump-ast-original and strg: To: florian@edamail.fishkill.ibm.com (Florian Krohm) Date: Fri, 23 Nov 2001 10:56:00 -0000 Cc: guillaume.thouvenin@polymtl.ca (Guillaume), jbuck@synopsys.COM (Joe Buck), gcc@gcc.gnu.org In-Reply-To: <01113013120701.01459@warp9.fishkill.ibm.com> from "Florian Krohm" at Nov 30, 2001 01:12:07 PM X-Mailer: ELM [version 2.5 PL2] MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-SW-Source: 2001-11/txt/msg01129.txt.bz2 [ fixing the dump format to be able to read back strings ] The correct solution, in my opinion, is to produce a valid C string literal. This can always be done, for any input, and furthermore there should already be routines in the compiler that you can use (though I can't be more specific off the top of my head). Don't try to invent a new format. From mboxrd@z Thu Jan 1 00:00:00 1970 From: Joe Buck To: florian@edamail.fishkill.ibm.com (Florian Krohm) Cc: guillaume.thouvenin@polymtl.ca (Guillaume), jbuck@synopsys.COM (Joe Buck), gcc@gcc.gnu.org Subject: Re: fdump-ast-original and strg: Date: Fri, 30 Nov 2001 10:22:00 -0000 Message-ID: <200111301822.KAA28472@atrus.synopsys.com> References: <01113013120701.01459@warp9.fishkill.ibm.com> X-SW-Source: 2001-11/msg01630.html Message-ID: <20011130102200.a69esFHgewZU9E-uIZDqVbTHRx1-BPCag1Tmg-el_-E@z> [ fixing the dump format to be able to read back strings ] The correct solution, in my opinion, is to produce a valid C string literal. This can always be done, for any input, and furthermore there should already be routines in the compiler that you can use (though I can't be more specific off the top of my head). Don't try to invent a new format.