<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Issue</th>
<td>
<a href=https://github.com/llvm/llvm-project/issues/108262>108262</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>
CLANG19: out of range pc-relative fixup value on arm32
</td>
</tr>
<tr>
<th>Labels</th>
<td>
new issue
</td>
</tr>
<tr>
<th>Assignees</th>
<td>
</td>
</tr>
<tr>
<th>Reporter</th>
<td>
kraj
</td>
</tr>
</table>
<pre>
This is seen with clang-19, does not happen with clang-18, attached program when compiled with -O2 exhibits the problem, other -O<n> options are ok.
```
In file included from /mnt/b/yoe/master/build/tmp/work/cortexa15t2hf-neon-yoe-linux-gnueabi/libjxl/0.10.3/git/lib/jxl/enc_ar_control_field.cc:1: │
│In file included from <built-in>:452: │
│<command line>:4:9: warning: redefining builtin macro [-Wbuiltin-macro-redefined] │
│ 4 | #define __DATE__ "redacted" │
│ | ^ │
│<command line>:5:9: warning: redefining builtin macro [-Wbuiltin-macro-redefined] │
│ 5 | #define __TIMESTAMP__ "redacted" │
│ | ^ │
│<command line>:6:9: warning: redefining builtin macro [-Wbuiltin-macro-redefined] │
│ 6 | #define __TIME__ "redacted" │
│ | ^ │
│error: out of range pc-relative fixup value │
│3 warnings and 1 error generated. │
[pc-relative.zip](https://github.com/user-attachments/files/16967902/pc-relative.zip)
```
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJzsV91u4zYTfZrxzUCGNJQU6UIXjhN9WODbboEG6KVBiWOJCUUKFJWfPn0h2dsW6SbY7QJNd9sDw_QMh-Sc8SHAkdOkO8tcQXYJ2dVGzqF3vrrz8nbTOPVU3fR6Qj3hxGzxQYceWyNtFyUl0B6V4wmtC9jLcXwWUCwBMgTZ9qxw9K7zcsCHni22bhi1YXWKjz4Q8mOvGx0mDD0vsY3hYVnvQs8eow8g9hbENboxaGcnlJ7R3W0hvoJ4d_7O4_NnNd9ZPGrDqG1rZsUKj94NCFQPNgDVDVD95Hix5RTYL65ZGwVUh2EEqh-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