nathanchance added subscribers: nickdesaulniers, nathanchance.
nathanchance added a comment.

For what it's worth, this breaks building the Linux kernel's `ARCH=mips 
32r1_defconfig` with clang and GNU as, with thousands of messages along the 
line of:

  /tmp/mmc_ops-d329c3.s: Assembler messages:
  /tmp/mmc_ops-d329c3.s:310: Error: .module is not permitted after generating 
code
  /tmp/mmc_ops-d329c3.s:473: Error: .module is not permitted after generating 
code
  /tmp/mmc_ops-d329c3.s:594: Error: .module is not permitted after generating 
code
  /tmp/mmc_ops-d329c3.s:687: Error: .module is not permitted after generating 
code
  /tmp/mmc_ops-d329c3.s:781: Error: .module is not permitted after generating 
code
  /tmp/mmc_ops-d329c3.s:946: Error: .module is not permitted after generating 
code
  /tmp/mmc_ops-d329c3.s:1023: Error: .module is not permitted after generating 
code
  ...

A simplified reproducer:

  void rcu_normal_store() {}
  void __attribute__ksysfs_init() {}



  $ clang --version | head -1
  ClangBuiltLinux clang version 16.0.0 (https://github.com/llvm/llvm-project 
9739bb81aed490bfcbcbbac6970da8fb7232fd34)
  
  $ clang --target=mips-linux-gnu -fno-integrated-as -c -o /dev/null ksysfs.i
  /tmp/ksysfs-9b0c50.s: Assembler messages:
  /tmp/ksysfs-9b0c50.s:44: Error: .module is not permitted after generating code
  clang-16: error: assembler command failed with exit code 1 (use -v to see 
invocation)



  $ clang --version | head -1
  ClangBuiltLinux clang version 16.0.0 (https://github.com/llvm/llvm-project 
92619956eb27ef08dd24045307593fc3d7f78db0)
  
  $ clang --target=mips-linux-gnu -fno-integrated-as -c -o /dev/null ksysfs.i


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D138179

_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to