rs6000: Shut up -Wformat-diag somewhat

Programming / Compilers / GCC - segher [138bc75d-0d04-0410-961f-82ee72b054a4] - 13 July 2019 15:57 EDT

We currently get lot of build warnings like /home/segher/src/gcc/gcc/config/rs6000/rs6000-c.c:7039:12: warning: misspelled term 'builtin function' in format; use 'built-in function' instead [-Wformat-diag] 7039 | error ("builtin function %qs not supported in this compiler " | ^~~~~~~~~~~~~~~~

That would print something like builtin function '__builtin_example' not supported in this compiler

Changing that to "built-in" as suggested only makes this worse. Instead, let's just remove the whole "builtin function" phrase.


PR target/91148
- config/rs6000/rs6000.c (rs6000_invalid_builtin): Remove superfluous "builtin function" phrasing.

gcc/testsuite/
- gcc.target/powerpc/bfp/scalar-cmp-exp-eq-2.c: Adjust.
- gcc.target/powerpc/bfp/scalar-cmp-exp-gt-2.c: Adjust.
- gcc.target/powerpc/bfp/scalar-cmp-exp-lt-2.c: Adjust.
- gcc.target/powerpc/bfp/scalar-cmp-exp-unordered-2.c: Adjust.
- gcc.target/powerpc/bfp/scalar-extract-exp-1.c: Adjust.
- gcc.target/powerpc/bfp/scalar-extract-exp-2.c: Adjust.
- gcc.target/powerpc/bfp/scalar-extract-exp-4.c: Adjust.
- gcc.target/powerpc/bfp/scalar-extract-sig-1.c: Adjust.
- gcc.target/powerpc/bfp/scalar-extract-sig-2.c: Adjust.
- gcc.target/powerpc/bfp/scalar-extract-sig-4.c: Adjust.
- gcc.target/powerpc/bfp/scalar-insert-exp-1.c: Adjust.
- gcc.target/powerpc/bfp/scalar-insert-exp-10.c: Adjust.
- gcc.target/powerpc/bfp/scalar-insert-exp-2.c: Adjust.
- gcc.target/powerpc/bfp/scalar-insert-exp-4.c: Adjust.
- gcc.target/powerpc/bfp/scalar-insert-exp-5.c: Adjust.
- gcc.target/powerpc/bfp/scalar-insert-exp-7.c: Adjust.
- gcc.target/powerpc/bfp/scalar-insert-exp-8.c: Adjust.
- gcc.target/powerpc/bfp/scalar-test-data-class-11.c: Adjust.
- gcc.target/powerpc/bfp/scalar-test-data-class-6.c: Adjust.
- gcc.target/powerpc/bfp/scalar-test-data-class-7.c: Adjust.
- gcc.target/powerpc/bfp/scalar-test-neg-2.c: Adjust.
- gcc.target/powerpc/bfp/scalar-test-neg-3.c: Adjust.
- gcc.target/powerpc/bfp/scalar-test-neg-5.c: Adjust.
- gcc.target/powerpc/bfp/vec-extract-exp-2.c: Adjust.
- gcc.target/powerpc/bfp/vec-extract-exp-3.c: Adjust.
- gcc.target/powerpc/bfp/vec-extract-sig-2.c: Adjust.
- gcc.target/powerpc/bfp/vec-extract-sig-3.c: Adjust.
- gcc.target/powerpc/bfp/vec-insert-exp-2.c: Adjust.
- gcc.target/powerpc/bfp/vec-insert-exp-3.c: Adjust.
- gcc.target/powerpc/bfp/vec-insert-exp-6.c: Adjust.
- gcc.target/powerpc/bfp/vec-insert-exp-7.c: Adjust.
- gcc.target/powerpc/bfp/vec-test-data-class-2.c: Adjust.
- gcc.target/powerpc/bfp/vec-test-data-class-3.c: Adjust.
- gcc.target/powerpc/byte-in-either-range-1.c: Adjust.
- gcc.target/powerpc/byte-in-range-1.c: Adjust.
- gcc.target/powerpc/byte-in-set-1.c: Adjust.
- gcc.target/powerpc/byte-in-set-2.c: Adjust.
- gcc.target/powerpc/cmpb-3.c: Adjust.
- gcc.target/powerpc/crypto-builtin-2.c: Adjust.
- gcc.target/powerpc/dfp/dtstsfi-1.c: Adjust.
- gcc.target/powerpc/dfp/dtstsfi-11.c: Adjust.
- gcc.target/powerpc/dfp/dtstsfi-16.c: Adjust.
- gcc.target/powerpc/dfp/dtstsfi-21.c: Adjust.
- gcc.target/powerpc/dfp/dtstsfi-26.c: Adjust.
- gcc.target/powerpc/dfp/dtstsfi-31.c: Adjust.
- gcc.target/powerpc/dfp/dtstsfi-36.c: Adjust.
- gcc.target/powerpc/dfp/dtstsfi-41.c: Adjust.
- gcc.target/powerpc/dfp/dtstsfi-46.c: Adjust.
- gcc.target/powerpc/dfp/dtstsfi-51.c: Adjust.
- gcc.target/powerpc/dfp/dtstsfi-56.c: Adjust.
- gcc.target/powerpc/dfp/dtstsfi-6.c: Adjust.
- gcc.target/powerpc/dfp/dtstsfi-61.c: Adjust.
- gcc.target/powerpc/dfp/dtstsfi-66.c: Adjust.
- gcc.target/powerpc/dfp/dtstsfi-71.c: Adjust.
- gcc.target/powerpc/dfp/dtstsfi-76.c: Adjust.
- gcc.target/powerpc/vsu/vec-all-nez-7.c: Adjust.
- gcc.target/powerpc/vsu/vec-any-eqz-7.c: Adjust.
- gcc.target/powerpc/vsu/vec-cmpnez-7.c: Adjust.
- gcc.target/powerpc/vsu/vec-cntlz-lsbb-2.c: Adjust.
- gcc.target/powerpc/vsu/vec-cnttz-lsbb-2.c: Adjust.
- gcc.target/powerpc/vsu/vec-xl-len-12.c: Adjust.
- gcc.target/powerpc/vsu/vec-xl-len-13.c: Adjust.
- gcc.target/powerpc/vsu/vec-xlx-7.c: Adjust.
- gcc.target/powerpc/vsu/vec-xrx-7.c: Adjust.
- gcc.target/powerpc/vsu/vec-xst-len-12.c: Adjust.
- gcc.target/powerpc/vsu/vec-xst-len-13.c: Adjust.

eb99301c9d1 rs6000: Shut up -Wformat-diag somewhat
gcc/ChangeLog | 8 ++-
gcc/config/rs6000/rs6000.c | 51 +++++++---------
gcc/testsuite/ChangeLog | 70 ++++++++++++++++++++++
.../gcc.target/powerpc/bfp/scalar-cmp-exp-eq-2.c | 2 +-
.../gcc.target/powerpc/bfp/scalar-cmp-exp-gt-2.c | 2 +-
.../gcc.target/powerpc/bfp/scalar-cmp-exp-lt-2.c | 2 +-
.../powerpc/bfp/scalar-cmp-exp-unordered-2.c | 2 +-
.../gcc.target/powerpc/bfp/scalar-extract-exp-1.c | 2 +-
.../gcc.target/powerpc/bfp/scalar-extract-exp-2.c | 2 +-
.../gcc.target/powerpc/bfp/scalar-extract-exp-4.c | 2 +-
.../gcc.target/powerpc/bfp/scalar-extract-sig-1.c | 2 +-
.../gcc.target/powerpc/bfp/scalar-extract-sig-2.c | 2 +-
.../gcc.target/powerpc/bfp/scalar-extract-sig-4.c | 2 +-
.../gcc.target/powerpc/bfp/scalar-insert-exp-1.c | 2 +-
.../gcc.target/powerpc/bfp/scalar-insert-exp-10.c | 2 +-
.../gcc.target/powerpc/bfp/scalar-insert-exp-2.c | 2 +-
.../gcc.target/powerpc/bfp/scalar-insert-exp-4.c | 2 +-
.../gcc.target/powerpc/bfp/scalar-insert-exp-5.c | 2 +-
.../gcc.target/powerpc/bfp/scalar-insert-exp-7.c | 2 +-
.../gcc.target/powerpc/bfp/scalar-insert-exp-8.c | 2 +-
.../powerpc/bfp/scalar-test-data-class-11.c | 2 +-
.../powerpc/bfp/scalar-test-data-class-6.c | 2 +-
.../powerpc/bfp/scalar-test-data-class-7.c | 2 +-
.../gcc.target/powerpc/bfp/scalar-test-neg-2.c | 2 +-
.../gcc.target/powerpc/bfp/scalar-test-neg-3.c | 2 +-
.../gcc.target/powerpc/bfp/scalar-test-neg-5.c | 2 +-
.../gcc.target/powerpc/bfp/vec-extract-exp-2.c | 2 +-
.../gcc.target/powerpc/bfp/vec-extract-exp-3.c | 2 +-
.../gcc.target/powerpc/bfp/vec-extract-sig-2.c | 2 +-
.../gcc.target/powerpc/bfp/vec-extract-sig-3.c | 2 +-
.../gcc.target/powerpc/bfp/vec-insert-exp-2.c | 2 +-
.../gcc.target/powerpc/bfp/vec-insert-exp-3.c | 2 +-
.../gcc.target/powerpc/bfp/vec-insert-exp-6.c | 2 +-
.../gcc.target/powerpc/bfp/vec-insert-exp-7.c | 2 +-
.../gcc.target/powerpc/bfp/vec-test-data-class-2.c | 2 +-
.../gcc.target/powerpc/bfp/vec-test-data-class-3.c | 2 +-
.../gcc.target/powerpc/byte-in-either-range-1.c | 2 +-
gcc/testsuite/gcc.target/powerpc/byte-in-range-1.c | 2 +-
gcc/testsuite/gcc.target/powerpc/byte-in-set-1.c | 2 +-
gcc/testsuite/gcc.target/powerpc/byte-in-set-2.c | 2 +-
gcc/testsuite/gcc.target/powerpc/cmpb-3.c | 2 +-
.../gcc.target/powerpc/crypto-builtin-2.c | 14 ++---
gcc/testsuite/gcc.target/powerpc/dfp/dtstsfi-1.c | 2 +-
gcc/testsuite/gcc.target/powerpc/dfp/dtstsfi-11.c | 2 +-
gcc/testsuite/gcc.target/powerpc/dfp/dtstsfi-16.c | 2 +-
gcc/testsuite/gcc.target/powerpc/dfp/dtstsfi-21.c | 2 +-
gcc/testsuite/gcc.target/powerpc/dfp/dtstsfi-26.c | 2 +-
gcc/testsuite/gcc.target/powerpc/dfp/dtstsfi-31.c | 2 +-
gcc/testsuite/gcc.target/powerpc/dfp/dtstsfi-36.c | 2 +-
gcc/testsuite/gcc.target/powerpc/dfp/dtstsfi-41.c | 2 +-
gcc/testsuite/gcc.target/powerpc/dfp/dtstsfi-46.c | 2 +-
gcc/testsuite/gcc.target/powerpc/dfp/dtstsfi-51.c | 2 +-
gcc/testsuite/gcc.target/powerpc/dfp/dtstsfi-56.c | 2 +-
gcc/testsuite/gcc.target/powerpc/dfp/dtstsfi-6.c | 2 +-
gcc/testsuite/gcc.target/powerpc/dfp/dtstsfi-61.c | 2 +-
gcc/testsuite/gcc.target/powerpc/dfp/dtstsfi-66.c | 2 +-
gcc/testsuite/gcc.target/powerpc/dfp/dtstsfi-71.c | 2 +-
gcc/testsuite/gcc.target/powerpc/dfp/dtstsfi-76.c | 2 +-
.../gcc.target/powerpc/vsu/vec-all-nez-7.c | 2 +-
.../gcc.target/powerpc/vsu/vec-any-eqz-7.c | 2 +-
.../gcc.target/powerpc/vsu/vec-cmpnez-7.c | 2 +-
.../gcc.target/powerpc/vsu/vec-cntlz-lsbb-2.c | 2 +-
.../gcc.target/powerpc/vsu/vec-cnttz-lsbb-2.c | 2 +-
.../gcc.target/powerpc/vsu/vec-xl-len-12.c | 2 +-
.../gcc.target/powerpc/vsu/vec-xl-len-13.c | 2 +-
gcc/testsuite/gcc.target/powerpc/vsu/vec-xlx-7.c | 2 +-
gcc/testsuite/gcc.target/powerpc/vsu/vec-xrx-7.c | 2 +-
.../gcc.target/powerpc/vsu/vec-xst-len-12.c | 2 +-
.../gcc.target/powerpc/vsu/vec-xst-len-13.c | 2 +-
69 files changed, 170 insertions(+), 103 deletions(-)

Upstream: gcc.gnu.org


  • Share