[all-commits] [llvm/llvm-project] a20c21: [clang] Enable GNU __attribute__((init_priority(.....

Zibi Sarbinowski via All-commits all-commits at lists.llvm.org
Fri May 29 11:51:52 PDT 2026


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: a20c21b8bedc0492ea7f78e5bc72b805d47b0520
      https://github.com/llvm/llvm-project/commit/a20c21b8bedc0492ea7f78e5bc72b805d47b0520
  Author: Zibi Sarbinowski <zibi at ca.ibm.com>
  Date:   2026-05-29 (Fri, 29 May 2026)

  Changed paths:
    M clang/include/clang/Basic/Attr.td
    M clang/include/clang/Basic/AttrDocs.td
    M clang/test/SemaCXX/init-priority-attr.cpp

  Log Message:
  -----------
  [clang] Enable GNU __attribute__((init_priority(...))) on z/OS. (#199573)

Enable `init_priority` on z/OS

Motivation
The recent addition of `clang/test/Sema/type-dependent-attrs.cpp` in
https://github.com/llvm/llvm-project/pull/182208 started failing on
z/OS. That test uses `[[gnu::init_priority(2000)]]`, and the failure
exposed that init_priority support was still disabled for z/OS in
`Attr.td`.

What changed

- Enabled init_priority for z/OS in `clang/include/clang/Basic/Attr.td`
- Updated `clang/test/SemaCXX/init-priority-attr.cpp` so z/OS now
expects normal semantic handling for init_priority

This reverts commit 2c7e24c4b6893a93ddb2b2cca91eaf5bf7956965 and
preserve any changes done after this commit.



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list