Re: auto generate cpp_reason to gcc OPT_W table

2014-09-09 Thread Joseph S. Myers
On Fri, 5 Sep 2014, Manuel L?pez-Ib??ez wrote: > This adds a new option property CppReason which maps to a warning > reason code in cpplib.h. This allows us to auto-generate > cpp_reason_option_codes[], which maps from CPP warning codes to GCC > ones, thus making a bit harder to forget to update t

auto generate cpp_reason to gcc OPT_W table

2014-09-05 Thread Manuel López-Ibáñez
This adds a new option property CppReason which maps to a warning reason code in cpplib.h. This allows us to auto-generate cpp_reason_option_codes[], which maps from CPP warning codes to GCC ones, thus making a bit harder to forget to update this table (which evidently has happened a lot in the pas