This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH RFC 2/2] bootstrap: disable most warnings in stage 3


On 08/27/2018 12:20 PM, Alexander Monakov wrote:
> Currently bootstrap stages 2 and 3 use the same warning options, but that is
> redundant: if any warnings are generated, they will be present in stage 2 (and
> stop bootstrap).  By not enabling any warnings for stage 3, we would get
> simple automated checking that warnings do not affect code generation.
> 
> I've checked GCC 5 managed to bootstrap in this manner, but starting from
> GCC 6 we've gotten less lucky.  There's a bunch of options already confirmed
> to affect code generation:
> 
> -Wnonnull/-Wrestrict/-Wformat/-Wsuggest-attribute=format (PR 86567)
> -Wimplicit-fallthrough (PR 86575)
> -Wsign-compare (PR 86586)
At least some of these are likely mine...  The range analyzer is
reflecting ranges it discovers back into the global state.  THe fix
ought to be easy, but I haven't gotten to it yet.

jeff


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]