[PATCH] D102377: [AIX] Do NOT emit avaiable externally symbols

Jinsong Ji via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed May 12 21:02:11 PDT 2021


jsji updated this revision to Diff 345031.
jsji added a comment.

XFAIL the tests with comments.


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D102377

Files:
  llvm/test/CodeGen/Generic/externally_available.ll


Index: llvm/test/CodeGen/Generic/externally_available.ll
===================================================================
--- llvm/test/CodeGen/Generic/externally_available.ll
+++ llvm/test/CodeGen/Generic/externally_available.ll
@@ -1,5 +1,11 @@
 ; RUN: llc -verify-machine-dom-info < %s | not grep test_
 
+; XFAIL: aix
+; AIX system assembler default print error for undefined reference .
+; so AIX chose to emit the available externally symbols into .s,
+; so that users won't run into errors in situations like:
+; clang -target powerpc-ibm-aix -xc -<<<$'extern inline __attribute__((__gnu_inline__)) void foo() {}\nvoid bar() { foo(); }' -O -Xclang -disable-llvm-passes
+
 ; test_function should not be emitted to the .s file.
 define available_externally i32 @test_function() {
   ret i32 4


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D102377.345031.patch
Type: text/x-patch
Size: 801 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20210513/e5c52f31/attachment.bin>


More information about the llvm-commits mailing list