From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 20724 invoked by alias); 7 Nov 2011 13:34:10 -0000 Received: (qmail 20666 invoked by uid 22791); 7 Nov 2011 13:34:09 -0000 X-SWARE-Spam-Status: No, hits=-3.8 required=5.0 tests=AWL,BAYES_00,RP_MATCHES_RCVD X-Spam-Check-By: sourceware.org Received: from cantor2.suse.de (HELO mx2.suse.de) (195.135.220.15) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Mon, 07 Nov 2011 13:33:56 +0000 Received: from relay2.suse.de (charybdis-ext.suse.de [195.135.221.2]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mx2.suse.de (Postfix) with ESMTP id 155738ADF6; Mon, 7 Nov 2011 14:33:55 +0100 (CET) Date: Mon, 07 Nov 2011 14:11:00 -0000 From: Richard Guenther To: Eric Botcazou Cc: gcc-patches@gcc.gnu.org, "Joseph S. Myers" Subject: Re: [PATCH] Fix PR50999, serialize frontend specific flags (-fexceptions) In-Reply-To: Message-ID: References: <201111071335.33685.ebotcazou@adacore.com> User-Agent: Alpine 2.00 (LNX 1167 2008-08-23) 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/msg00937.txt.bz2 On Mon, 7 Nov 2011, Richard Guenther wrote: > On Mon, 7 Nov 2011, Eric Botcazou wrote: > > > > This tries to find a way to prepend explicitly set command-line options > > > by those implicitly set by the frontend (-fexceptions in this case). > > > Unfortunately we don't seem to have a good way to extract this information > > > easily, so for -fexceptions I hope all frontends set that during > > > init_options_struct. > > > > That's wrong for Ada: it is set in gnat_init_gcc_eh and cannot be set earlier > > because we support run time selection of the EH scheme. Btw, I doubt the patch would break anything for Ada - it at most adds -fexceptions, so if Ada doesn't set flag_exceptions in init_options_struct then it is a no-op for Ada. Richard.