On Mon, 7 Nov 2011, Iain Sandoe wrote:

> 
> On 7 Nov 2011, at 12:17, Richard Guenther 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.
> 
> It would also be nice to preserve the Objective-C flavor (GNU/NeXT), since we
> have to make a guess for this in darwin.c when in lto.

How is the default selected (that's not obvious to me).  flag_next_runtime
doesn't use options mechanisms it seems, that's bad.  Both
-fgnu-runtime and -fnext-runtime are frontend-only flags, they should
be at least also enabled for LTO, otherwise LTO cannot do anything
about the flag (and if it were LTO supported it would already be
saved properly).

Please provide a patch to move flag_next_runtime to properly
use the new option mechanism to avoid the need to handle it
in c-opts.c explicitely (and thus avoid the need to handle it
in lto explicitely).

Thanks,
Richard.

Reply via email to