Hi Joseph, On Thu, Aug 08, 2024 at 05:31:05PM GMT, Joseph Myers wrote: > Actual bugs should of course be fixed.
Here are the suspects: ./gcc/testsuite/gcc.target/powerpc/sse3-addsubps.c:80: for (i = 0; i < sizeof (vals) / sizeof (vals); i += 8) ./gcc/c-family/c-pragma.cc:1811: = sizeof (omp_pragmas_simd) / sizeof (*omp_pragmas); The second sizeof expression seems to have a bogus operand, and the correct one is probably the common one in sizeof divisions. There are some others which are weird, but the result is correct. For example: ./libstdc++-v3/testsuite/21_strings/basic_string/cons/char/constexpr.cc:62: const auto len = (sizeof(cs) - 1)/sizeof(C); ./libstdc++-v3/testsuite/21_strings/basic_string/cons/wchar_t/constexpr.cc:62: const auto len = (sizeof(cs) - 1)/sizeof(C); Which would read better as sizeof/sizeof - 1. There are others which also could be improved in readability terms, but I don't think it's worth bikeshedding that at the moment. If you do a global switch to ARRAY_SIZE(), I can help with those. I'll keep the commit in the backyard in case we need it for something. It's: 662 files changed, 1426 insertions(+), 1545 deletions(-) Have a lovely night! Alex -- <https://www.alejandro-colomar.es/>
signature.asc
Description: PGP signature