[PATCH] D133800: [Clang 15.0.1] Downgrade implicit int and implicit function declaration to warning only

Nikita Popov via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Wed Sep 14 02:53:28 PDT 2022


nikic added a comment.

I tested this patch as well and saw the same failures as @mgorny. Here's the additional patch I had to apply to make this pass:

  diff --git a/clang/test/CodeGen/PowerPC/builtins-ppc-p8vector.c b/clang/test/CodeGen/PowerPC/builtins-ppc-p8vector.c
  index af3d5c7d066b..3c55e63d1bc8 100644
  --- a/clang/test/CodeGen/PowerPC/builtins-ppc-p8vector.c
  +++ b/clang/test/CodeGen/PowerPC/builtins-ppc-p8vector.c
  @@ -143,7 +143,7 @@ void test1() {
     res_vui = vec_mergee(vui, vui);
   // CHECK: @llvm.ppc.altivec.vperm
   // CHECK-LE: @llvm.ppc.altivec.vperm
  -// CHECK-PPC: error: call to undeclared function 'vec_mergee'
  +// CHECK-PPC: warning: call to undeclared function 'vec_mergee'
   
     res_vbll = vec_mergee(vbll, vbll);
   // CHECK: @llvm.ppc.altivec.vperm
  @@ -177,7 +177,7 @@ void test1() {
     res_vui = vec_mergeo(vui, vui);
   // CHECK: @llvm.ppc.altivec.vperm
   // CHECK-LE: @llvm.ppc.altivec.vperm
  -// CHECK-PPC: error: call to undeclared function 'vec_mergeo'
  +// CHECK-PPC: warning: call to undeclared function 'vec_mergeo'
   
     /* vec_cmpeq */
     res_vbll = vec_cmpeq(vbll, vbll);
  diff --git a/clang/test/CodeGen/builtins-arm-msvc-compat-only.c b/clang/test/CodeGen/builtins-arm-msvc-compat-only.c
  index 42cc9d70a142..c2b021b31174 100644
  --- a/clang/test/CodeGen/builtins-arm-msvc-compat-only.c
  +++ b/clang/test/CodeGen/builtins-arm-msvc-compat-only.c
  @@ -1,6 +1,6 @@
   // RUN: %clang_cc1 -triple thumbv7-windows -fms-extensions -emit-llvm -o - %s \
   // RUN:     | FileCheck %s -check-prefix CHECK-MSVC
  -// RUN: not %clang_cc1 -triple armv7-eabi -emit-llvm %s -o /dev/null 2>&1 \
  +// RUN: %clang_cc1 -triple armv7-eabi -emit-llvm %s -o /dev/null 2>&1 \
   // RUN:     | FileCheck %s -check-prefix CHECK-EABI
   // REQUIRES: arm-registered-target
   
  @@ -9,7 +9,7 @@ void emit() {
   }
   
   // CHECK-MSVC: call void asm sideeffect ".inst.n 0xDEFE", ""()
  -// CHECK-EABI: error: call to undeclared function '__emit'
  +// CHECK-EABI: warning: call to undeclared function '__emit'
   
   void emit_truncated() {
     __emit(0x11110000); // movs r0, r0
  diff --git a/clang/test/CodeGen/neon-crypto.c b/clang/test/CodeGen/neon-crypto.c
  index 916886574416..1b29b1a53096 100644
  --- a/clang/test/CodeGen/neon-crypto.c
  +++ b/clang/test/CodeGen/neon-crypto.c
  @@ -14,7 +14,7 @@
   
   uint8x16_t test_vaeseq_u8(uint8x16_t data, uint8x16_t key) {
     // CHECK-LABEL: @test_vaeseq_u8
  -  // CHECK-NO-CRYPTO: error: call to undeclared function 'vaeseq_u8'
  +  // CHECK-NO-CRYPTO: warning: call to undeclared function 'vaeseq_u8'
     return vaeseq_u8(data, key);
     // CHECK: call <16 x i8> @llvm.{{arm.neon|aarch64.crypto}}.aese(<16 x i8> %data, <16 x i8> %key)
   }


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D133800/new/

https://reviews.llvm.org/D133800



More information about the cfe-commits mailing list