[clang] [llvm] [SystemZ] Do not extend integer arguments in z/OS XPLINK64 ABI (PR #206833)

Kai Nacke via cfe-commits cfe-commits at lists.llvm.org
Wed Jul 22 13:51:56 PDT 2026


================

----------------
redstar wrote:

This fix is wrong. The ADA pointer is needed in this case to get the reference to the ED symbol.
The proper fix is to change in `SystemZAsmPrinter::emitEndOfAsmFile()` the condition to call `emitADA()` from
```
        if (!GV->hasInitializer())
```
to
```
        if (!GV->hasInitializer() || GV->hasCommonLinkage())
```
There may also be a change to `emitSymbolAttribute()` necessary in the same `if` part, I have not checked this.

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


More information about the cfe-commits mailing list