Dear maintainers, Having come across https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61414 (bug #61414) quite often myself I decided I wanted to fix it.
By reading through parts of the GCC internals manual I have managed to add a warning flag, the code for which I will submit to gcc-patches, but since this is my first time contributing to GCC I have some questions. 1. When it comes to the patch, should I post it to the bug tracker before sending it to gcc-patches? 2. A better fix for this bug would be to only warn when the number of defined enumerators would not fit inside a bitfield of the specified size. Seeing as I don't know the GCC internals very well, I'm wondering if anyone could point me in the right direction when it comes to getting the number of defined enumerators in an enum type. 3. When it comes to documentation and tests, I've documented the flag in doc/invoke.texi and will add a test in the test suite, hopefully when the patch includes the check specified in 2. Are there are any other places I should add documentation? Thank you in advance, Sam