1
Fork 0

codegen: allow the dso_local attribute

The attribute is injected into most items when static relocation is
enabled in a target.
This commit is contained in:
Pietro Albini 2023-05-23 15:26:31 +02:00
parent 5fdeae610d
commit dc1ed9ddd7
No known key found for this signature in database
GPG key ID: CD76B35F7734769E
9 changed files with 50 additions and 50 deletions

View file

@ -31,4 +31,4 @@ pub fn box_uninitialized2() -> Box<MaybeUninit<[usize; 1024 * 1024]>> {
// Hide the LLVM 15+ `allocalign` attribute in the declaration of __rust_alloc
// from the CHECK-NOT above. We don't check the attributes here because we can't rely
// on all of them being set until LLVM 15.
// CHECK: declare noalias{{.*}} @__rust_alloc(i{{[0-9]+}} noundef, i{{[0-9]+.*}} noundef)
// CHECK: declare {{(dso_local )?}}noalias{{.*}} @__rust_alloc(i{{[0-9]+}} noundef, i{{[0-9]+.*}} noundef)