From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 16444 invoked by alias); 8 Nov 2011 00:25:44 -0000 Received: (qmail 16426 invoked by uid 22791); 8 Nov 2011 00:25:42 -0000 X-SWARE-Spam-Status: No, hits=-1.8 required=5.0 tests=AWL,BAYES_00 X-Spam-Check-By: sourceware.org Received: from relay1.mentorg.com (HELO relay1.mentorg.com) (192.94.38.131) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Tue, 08 Nov 2011 00:25:30 +0000 Received: from nat-ies.mentorg.com ([192.94.31.2] helo=EU1-MAIL.mgc.mentorg.com) by relay1.mentorg.com with esmtp id 1RNZVJ-0001xQ-2B from joseph_myers@mentor.com ; Mon, 07 Nov 2011 16:25:29 -0800 Received: from digraph.polyomino.org.uk ([172.16.63.104]) by EU1-MAIL.mgc.mentorg.com with Microsoft SMTPSVC(6.0.3790.1830); Tue, 8 Nov 2011 00:25:27 +0000 Received: from jsm28 (helo=localhost) by digraph.polyomino.org.uk with local-esmtp (Exim 4.74) (envelope-from ) id 1RNZVG-0000ai-8F; Tue, 08 Nov 2011 00:25:26 +0000 Date: Tue, 08 Nov 2011 00:30:00 -0000 From: "Joseph S. Myers" To: Richard Guenther cc: Eric Botcazou , gcc-patches@gcc.gnu.org Subject: Re: [PATCH] Fix PR50999, serialize frontend specific flags (-fexceptions) In-Reply-To: Message-ID: References: <201111071335.33685.ebotcazou@adacore.com> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Mailing-List: contact gcc-patches-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-patches-owner@gcc.gnu.org X-SW-Source: 2011-11/txt/msg01108.txt.bz2 On Mon, 7 Nov 2011, Richard Guenther wrote: > Just looking for a more general solution (but I note that Ada lacks > some conversion to the new cl_decoded_options facility anyways ...) Full conversion may be hard because of things done in Ada code not C/C++, but it is indeed the case that it would be better to pass something closer to decoded options to the Ada code than the present reconstruction in gnat_init_options, and the kludges involving #undef optimize #undef optimize_size #undef flag_compare_debug #undef flag_stack_check should definitely be replaced by naming the Ada versions of those variables differently from the C macros (gnat_optimize, for example) so there is no need for the #undef or for gnat_post_options to refer to global_options.x_* when setting the Ada versions. -- Joseph S. Myers joseph@codesourcery.com