This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH] Show dangerous warning when -Werror option is used
- From: Segher Boessenkool <segher at kernel dot crashing dot org>
- To: Pali Rohár <pali dot rohar at gmail dot com>
- Cc: gcc-patches at gcc dot gnu dot org
- Date: Sun, 1 Apr 2018 14:32:26 -0500
- Subject: Re: [PATCH] Show dangerous warning when -Werror option is used
- References: <20180401100540.bsjccsvwegrcb6mj@pali>
On Sun, Apr 01, 2018 at 12:05:40PM +0200, Pali Rohár wrote:
> Command line option -Werror is dangerous as it could cause problems for
> compiling applications in future. Once gcc introduces a new warning or
> change logic for existing warnings then compilation of existing
> application via gcc could throw a new warning.
>
> As -Werror makes all warnings fatal, it makes applications not
> compilable. -Werror makes sense only for specific gcc versions against
> which was application tested to compile correctly.
>
> Attached patch adds a new warning when -Werror command line option is
> enabled. It warns user that usage of -Werror can be dangerous.
While I love this patch in principle...
All patches need to be bootstrapped and regression tested. Did you?
On what target?
And I think a feature as big as this one isn't suitable for stage 4.
Segher