Re: [PATCH] Fix PR50999, serialize frontend specific flags (-fexceptions)

2011-11-08 Thread Richard Guenther
On Tue, 8 Nov 2011, Iain Sandoe wrote: > > On 8 Nov 2011, at 00:21, Joseph S. Myers wrote: > > > On Mon, 7 Nov 2011, Iain Sandoe wrote: > > > > > > How is the default selected (that's not obvious to me). > > > > flag_next_runtime > > > > doesn't use options mechanisms it seems, that's bad. Bot

Re: [PATCH] Fix PR50999, serialize frontend specific flags (-fexceptions)

2011-11-08 Thread Iain Sandoe
On 8 Nov 2011, at 00:21, Joseph S. Myers wrote: On Mon, 7 Nov 2011, Iain Sandoe wrote: 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 shoul

Re: [PATCH] Fix PR50999, serialize frontend specific flags (-fexceptions)

2011-11-08 Thread Richard Guenther
On Tue, 8 Nov 2011, Joseph S. Myers wrote: > 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 >

Re: [PATCH] Fix PR50999, serialize frontend specific flags (-fexceptions)

2011-11-07 Thread Joseph S. Myers
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 woul

Re: [PATCH] Fix PR50999, serialize frontend specific flags (-fexceptions)

2011-11-07 Thread Joseph S. Myers
On Mon, 7 Nov 2011, Iain Sandoe wrote: > > 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, other

Re: [PATCH] Fix PR50999, serialize frontend specific flags (-fexceptions)

2011-11-07 Thread Joseph S. Myers
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 thr

Re: [PATCH] Fix PR50999, serialize frontend specific flags (-fexceptions)

2011-11-07 Thread Richard Guenther
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

Re: [PATCH] Fix PR50999, serialize frontend specific flags (-fexceptions)

2011-11-07 Thread Richard Guenther
On Mon, 7 Nov 2011, Iain Sandoe wrote: > > On 7 Nov 2011, at 12:40, Richard Guenther wrote: > > > On Mon, 7 Nov 2011, Iain Sandoe wrote: > > > > > 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. > >

Re: [PATCH] Fix PR50999, serialize frontend specific flags (-fexceptions)

2011-11-07 Thread Richard Guenther
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 -fexceptio

Re: [PATCH] Fix PR50999, serialize frontend specific flags (-fexceptions)

2011-11-07 Thread Iain Sandoe
On 7 Nov 2011, at 12:40, Richard Guenther wrote: On Mon, 7 Nov 2011, Iain Sandoe wrote: 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

Re: [PATCH] Fix PR50999, serialize frontend specific flags (-fexceptions)

2011-11-07 Thread Richard Guenther
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 w

Re: [PATCH] Fix PR50999, serialize frontend specific flags (-fexceptions)

2011-11-07 Thread Eric Botcazou
> 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_opt

Re: [PATCH] Fix PR50999, serialize frontend specific flags (-fexceptions)

2011-11-07 Thread Iain Sandoe
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 -fexcept

[PATCH] Fix PR50999, serialize frontend specific flags (-fexceptions)

2011-11-07 Thread Richard Guenther
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_stru