[V2,0/1] Add a new warning option -Wstrict-flex-arrays

Message ID 20221130142556.3079865-1-qing.zhao@oracle.com
Headers
Series Add a new warning option -Wstrict-flex-arrays |

Message

Qing Zhao Nov. 30, 2022, 2:25 p.m. UTC
  Hi, this is the 2nd version for this patch.

Per our discussion, I made the following change compared to the first
version:

1. The level of -Warray-bounds will NOT control how a trailing array 
   is considered as a flex array member anymore. Only the level of  
   -fstrict-flex-arrays will control this;
2. Updating the documentation for -Warray-bounds by clarifying this
   change.
3. Updating the testing cases for such change.

I have bootstrapped and regression tested on both X86 and aarch64
without any issue.

Okay for committing?

thanks.

Qing