On Sat, 27 Aug 2022, Jose E. Marchesi via Gcc-patches wrote: > + if (metadata + 1 > data) /* { dg-warning "comparison of distinct pointer > types" } */
> + if (metadata + 1 > data) /* { dg-warning "comparison of distinct pointer > types" } */ > + if (metadata + 1 > data) /* There shouldn't be a warning here. */ It seems the tests are only testing the '>' comparison operator. I think all six comparison operators should be tested (in particular, you're changing two pedwarns - separate code paths for ordered and equality comparisons - but the tests only appear to cover one of the two). -- Joseph S. Myers jos...@codesourcery.com