Re: [PATCH] Fix PR51806

2012-01-10 Thread Joseph S. Myers
On Tue, 10 Jan 2012, Richard Guenther wrote: > This fixes LTO not honoring -Werror (similar for all other > non-C-family frontends), despite handling -Werror= just fine. > The issue is that the diagnostic context is only adjusted from > the c-family handle-options routine, not from the common > on

[PATCH] Fix PR51806

2012-01-10 Thread Richard Guenther
This fixes LTO not honoring -Werror (similar for all other non-C-family frontends), despite handling -Werror= just fine. The issue is that the diagnostic context is only adjusted from the c-family handle-options routine, not from the common one (which does process -Werror= though). Bootstrapped a