[clang] [clang-tools-extra] FunctionDecl::getFunctionTypeLoc: ignore function type attributes (PR #118420)

LLVM Continuous Integration via cfe-commits cfe-commits at lists.llvm.org
Sat Apr 19 05:14:13 PDT 2025


llvm-ci wrote:

LLVM Buildbot has detected a new failure on builder `ppc64le-lld-multistage-test` running on `ppc64le-lld-multistage-test` while building `clang-tools-extra,clang` at step 7 "test-build-stage1-unified-tree-check-all".

Full details are available at: https://lab.llvm.org/buildbot/#/builders/168/builds/11058

<details>
<summary>Here is the relevant piece of the build log for the reference</summary>

```
Step 7 (test-build-stage1-unified-tree-check-all) failure: test (failure)
******************** TEST 'Clang-Unit :: AST/./ASTTests/54/1844' FAILED ********************
Script(shard):
--
GTEST_OUTPUT=json:/home/buildbots/llvm-external-buildbots/workers/ppc64le-lld-multistage-test/ppc64le-lld-multistage-test/build/stage1/tools/clang/unittests/AST/./ASTTests-Clang-Unit-2338714-54-1844.json GTEST_SHUFFLE=0 GTEST_TOTAL_SHARDS=1844 GTEST_SHARD_INDEX=54 /home/buildbots/llvm-external-buildbots/workers/ppc64le-lld-multistage-test/ppc64le-lld-multistage-test/build/stage1/tools/clang/unittests/AST/./ASTTests
--

Script:
--
/home/buildbots/llvm-external-buildbots/workers/ppc64le-lld-multistage-test/ppc64le-lld-multistage-test/build/stage1/tools/clang/unittests/AST/./ASTTests --gtest_filter=Attr.AnnotateType
--
input.cc:16:20: warning: 'preserve_most' calling convention is not supported for this target [-Wignored-attributes]
   16 |     __attribute__((preserve_most)) int f_cc_preserve_most();
      |                    ^
input.cc:19:5: warning: 'preserve_most' calling convention is not supported for this target [-Wignored-attributes]
   19 |     PRESERVE_MOST int f_macro_attribue();
      |     ^
input.cc:18:42: note: expanded from macro 'PRESERVE_MOST'
   18 |     #define PRESERVE_MOST __attribute__((preserve_most))
      |                                          ^
input.cc:21:25: warning: 'preserve_most' calling convention is not supported for this target [-Wignored-attributes]
   21 |     int (__attribute__((preserve_most)) f_paren_attribute)();
      |                         ^
input.cc:24:7: warning: 'preserve_most' calling convention is not supported for this target [-Wignored-attributes]
   24 |       PRESERVE_MOST
      |       ^
input.cc:18:42: note: expanded from macro 'PRESERVE_MOST'
   18 |     #define PRESERVE_MOST __attribute__((preserve_most))
      |                                          ^
/home/buildbots/llvm-external-buildbots/workers/ppc64le-lld-multistage-test/ppc64le-lld-multistage-test/llvm-project/clang/unittests/AST/AttrTest.cpp:186: Failure
Value of: FT->getCallConv() == CC_PreserveMost
  Actual: false
Expected: true

O: f_macro_attribue
O: f_paren_attribute
O: f_w_paren_and_attr

/home/buildbots/llvm-external-buildbots/workers/ppc64le-lld-multistage-test/ppc64le-lld-multistage-test/llvm-project/clang/unittests/AST/AttrTest.cpp:186
Value of: FT->getCallConv() == CC_PreserveMost
  Actual: false
Expected: true



********************

Step 13 (test-build-stage2-unified-tree-check-all) failure: test (failure)
******************** TEST 'Clang-Unit :: AST/./ASTTests/54/1844' FAILED ********************
Script(shard):
--
GTEST_OUTPUT=json:/home/buildbots/llvm-external-buildbots/workers/ppc64le-lld-multistage-test/ppc64le-lld-multistage-test/build/stage2/tools/clang/unittests/AST/./ASTTests-Clang-Unit-1682478-54-1844.json GTEST_SHUFFLE=0 GTEST_TOTAL_SHARDS=1844 GTEST_SHARD_INDEX=54 /home/buildbots/llvm-external-buildbots/workers/ppc64le-lld-multistage-test/ppc64le-lld-multistage-test/build/stage2/tools/clang/unittests/AST/./ASTTests
--

Script:
--
/home/buildbots/llvm-external-buildbots/workers/ppc64le-lld-multistage-test/ppc64le-lld-multistage-test/build/stage2/tools/clang/unittests/AST/./ASTTests --gtest_filter=Attr.AnnotateType
--
input.cc:16:20: warning: 'preserve_most' calling convention is not supported for this target [-Wignored-attributes]
   16 |     __attribute__((preserve_most)) int f_cc_preserve_most();
      |                    ^
input.cc:19:5: warning: 'preserve_most' calling convention is not supported for this target [-Wignored-attributes]
   19 |     PRESERVE_MOST int f_macro_attribue();
      |     ^
input.cc:18:42: note: expanded from macro 'PRESERVE_MOST'
   18 |     #define PRESERVE_MOST __attribute__((preserve_most))
      |                                          ^
input.cc:21:25: warning: 'preserve_most' calling convention is not supported for this target [-Wignored-attributes]
   21 |     int (__attribute__((preserve_most)) f_paren_attribute)();
      |                         ^
input.cc:24:7: warning: 'preserve_most' calling convention is not supported for this target [-Wignored-attributes]
   24 |       PRESERVE_MOST
      |       ^
input.cc:18:42: note: expanded from macro 'PRESERVE_MOST'
   18 |     #define PRESERVE_MOST __attribute__((preserve_most))
      |                                          ^
/home/buildbots/llvm-external-buildbots/workers/ppc64le-lld-multistage-test/ppc64le-lld-multistage-test/llvm-project/clang/unittests/AST/AttrTest.cpp:186: Failure
Value of: FT->getCallConv() == CC_PreserveMost
  Actual: false
Expected: true

O: f_macro_attribue
O: f_paren_attribute
O: f_w_paren_and_attr

/home/buildbots/llvm-external-buildbots/workers/ppc64le-lld-multistage-test/ppc64le-lld-multistage-test/llvm-project/clang/unittests/AST/AttrTest.cpp:186
Value of: FT->getCallConv() == CC_PreserveMost
  Actual: false
Expected: true



********************


```

</details>

https://github.com/llvm/llvm-project/pull/118420


More information about the cfe-commits mailing list