ziglang / zig

General-purpose programming language and toolchain for maintaining robust, optimal, and reusable software.
https://ziglang.org
MIT License
33.99k stars 2.49k forks source link

Compilation failure on latest mater for target AVR25 (ATTiny13A MCU) #21487

Open seletskiy opened 1 week ago

seletskiy commented 1 week ago

Zig Version

0.14.0-dev.1632+d83a3f174

Steps to Reproduce and Observed Behavior

Minimal case to repro:

zig build output:

install
└─ install tmp.CsP3FWngBQ
   └─ zig build-exe tmp.CsP3FWngBQ ReleaseSmall avr-freestanding-none failure
error: error: <unknown>:0: out of range branch target (expected an integer in the range -4096 to 4095)

Expected Behavior

Code compiles successfully. Confirmed to work on 0.13.0.

alexrp commented 1 week ago

Haven't looked closely at this yet, but my suspicion would be that this is fixed by https://github.com/llvm/llvm-project/pull/109124.