llvm / llvm-project

The LLVM Project is a collection of modular and reusable compiler and toolchain technologies.
http://llvm.org
Other
28.3k stars 11.68k forks source link

[stack alignment] clang doesn't align stack base on option -mstack-alignment=n #97268

Open vfdff opened 3 months ago

vfdff commented 3 months ago

test: https://gcc.godbolt.org/z/zTeq868xo

When I specify the n 32/64, their output assembles don't have any change. the clang seems ignore the -mstack-alignment=n without any warning ?

vfdff commented 3 months ago

It works fine for x86 target, https://gcc.godbolt.org/z/9Yf99Eonj so this is a backend feature, related to [IR] make -stack-alignment= into a module attr

llvmbot commented 3 months ago

@llvm/issue-subscribers-backend-aarch64

Author: Allen (vfdff)

test: https://gcc.godbolt.org/z/zTeq868xo When I specify the n 32/64, their output assembles don't have any change. the clang seems ignore the **-mstack-alignment=n** without any warning ?
vfdff commented 2 months ago

maybe related to https://github.com/llvm/llvm-project/issues/59912