From: "Joseph S. Myers" <joseph@codesourcery.com>
To: Richard Guenther <rguenther@suse.de>
Cc: gcc-patches@gcc.gnu.org
Subject: Re: [PATCH] Fix PR50999, serialize frontend specific flags (-fexceptions)
Date: Tue, 08 Nov 2011 00:27:00 -0000 [thread overview]
Message-ID: <Pine.LNX.4.64.1111080012390.31960@digraph.polyomino.org.uk> (raw)
In-Reply-To: <alpine.LNX.2.00.1111071311130.4527@zhemvz.fhfr.qr>
On Mon, 7 Nov 2011, Richard Guenther wrote:
> Joseph, do you have any advise on how to address frontend specific
> options in a more general way? I'm trying to re-construct a
> command-line that when processed frontend agnostic would produce
> the same end-result in global_options as if going through the frontend.
> Is that even possible (do you have option examples that would show
> this is impossible?)
Reconstructing command lines is never going to be particularly reliable.
I think the short-term fix will be saving these particular options
explicitly, and the longer-term fix will be representing them (anything
affecting IR semantics rather than just what IR gets generated) in the IR
so that once the front end is finished the global settings never get used.
(That doesn't mean moving them all to the individual GIMPLE operations,
although for complex-method that would be the best location; moving them
to struct function, with appropriate code to stream the new fields and do
whatever's appropriate when inlining between functions with different
settings, would still be useful.)
--
Joseph S. Myers
joseph@codesourcery.com
next prev parent reply other threads:[~2011-11-08 0:18 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-11-07 12:40 Richard Guenther
2011-11-07 12:49 ` Iain Sandoe
2011-11-07 12:50 ` Richard Guenther
2011-11-07 12:51 ` Iain Sandoe
2011-11-07 13:15 ` Richard Guenther
2011-11-08 0:30 ` Joseph S. Myers
2011-11-08 14:51 ` Iain Sandoe
2011-11-08 14:53 ` Richard Guenther
2011-11-07 12:49 ` Eric Botcazou
2011-11-07 13:08 ` Richard Guenther
2011-11-07 14:11 ` Richard Guenther
2011-11-08 0:30 ` Joseph S. Myers
2011-11-08 0:27 ` Joseph S. Myers [this message]
2011-11-08 14:00 ` Richard Guenther
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=Pine.LNX.4.64.1111080012390.31960@digraph.polyomino.org.uk \
--to=joseph@codesourcery.com \
--cc=gcc-patches@gcc.gnu.org \
--cc=rguenther@suse.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).