On Wed, 29 Oct 2025 at 21:31, Joel Sherrill <[email protected]> wrote:
>
> Hi
>
> I am starting a new thread on https://gcc.gnu.org/wiki/WarningHistory. It 
> looks useful but in need of an update. Before I spend more itme on it, I 
> wanted to make sure I am doing the archeology correctly.
>
> Use git diff with pairs of "adjacent" release tags. I did this for 
> 8.2.0->8.3.0->8.4.0->8.5.0 but didn't see any. This is the command for what's 
> new in 9.1.0.
>
> $ git diff releases/gcc-8.1.0 releases/gcc-9.1.0 -- common.opt
>
> And after wading through the output, I think this is the new set of warnings 
> in gcc 9.1.0.
>
> New in 9.1.0
> ============
> -Wattribute-alias
> -Wattribute-warning
> -Wcannot-profile
> -Wdeprecated
> -Wmissing-profile
>
> Does this process look correct to everyone? If so, I will update the wiki 
> page.

-Wdeprecated is much older than GCC 9. You can check the manual for
GCC 8.5.0 to see if the new warnings really are new, or were already
documented for 8.5.0, and that shows -Wno-deprecated was present
already.

https://gcc.gnu.org/gcc-9/changes.html#c-family suggests that
-Wattribute-alias already existed and was "enhanced" in gcc-9.

That page also lists -Waddress-of-packed-member and -Wabsolute-value
as new warnings, and five new C++ warnings, which weren't found by
your method. Maybe there are other .opt files to consider, for
C-specific and C++-specific warnings?

Reply via email to