<table border="1" cellspacing="0" cellpadding="8">
    <tr>
        <th>Issue</th>
        <td>
            <a href=https://github.com/llvm/llvm-project/issues/55913>55913</a>
        </td>
    </tr>

    <tr>
        <th>Summary</th>
        <td>
            Crash in clang v14.0.1 targeting ARM Cortex-M55: "clang: error: clang frontend command failed due to signal"
        </td>
    </tr>

    <tr>
      <th>Labels</th>
      <td>
            new issue
      </td>
    </tr>

    <tr>
      <th>Assignees</th>
      <td>
      </td>
    </tr>

    <tr>
      <th>Reporter</th>
      <td>
          Rick-Brewin
      </td>
    </tr>
</table>

<pre>
    I've run into an LLVM/clang v14.0.1 crash issue - also reproduced using 14.0.4.
clang emits this message: "clang: error: clang frontend command failed due to signal"
Building on Windows in an msys shell.
A colleague thinks this may be fixed in clang v14.0.5 (not yet released), but that was testing on Ubuntu.

Crash details:

$ /c/llvm/bin/clang -Os --target=arm-none-eabi -mcpu=cortex-m55 -mthumb -mfloat-abi=hard -fuse-ld=lld -ffunction-sections -fdata-sections -save-temps bug-minimal.c
PLEASE submit a bug report to https://github.com/llvm/llvm-project/issues/ and include the crash backtrace, preprocessed source, and associated run script.
Stack dump:
0.      Program arguments: c:\\llvm\\bin\\clang.exe -cc1 -triple thumbv8.1m.main-none-unknown-eabihf -S -save-temps=cwd -disable-free -clear-ast-before-backend -disable-llvm-verifier -discard-value-names -main-file-name bug-minimal.c -mrelocation-model static -mframe-pointer=all -fmath-errno -ffp-contract=on -fno-rounding-math -fno-verbose-asm -mconstructor-aliases -nostdsysteminc -target-cpu cortex-m55 -Wunaligned-access -target-feature -crc -target-feature -dotprod -target-feature +dsp -target-feature +mve -target-feature +mve.fp -target-feature +ras -target-feature -fp16fml -target-feature -bf16 -target-feature -sb -target-feature -i8mm -target-feature +lob -target-feature -cdecp0 -target-feature -cdecp1 -target-feature -cdecp2 -target-feature -cdecp3 -target-feature -cdecp4 -target-feature -cdecp5 -target-feature -cdecp6 -target-feature -cdecp7 -target-feature -pacbti -target-feature -hwdiv-arm -target-feature +hwdiv -target-feature +vfp2 -target-feature +vfp2sp -target-feature -vfp3 -target-feature +vfp3d16 -target-feature +vfp3d16sp -target-feature -vfp3sp -target-feature +fp16 -target-feature -vfp4 -target-feature +vfp4d16 -target-feature +vfp4d16sp -target-feature -vfp4sp -target-feature -fp-armv8 -target-feature +fp-armv8d16 -target-feature +fp-armv8d16sp -target-feature -fp-armv8sp -target-feature +fullfp16 -target-feature +fp64 -target-feature -d32 -target-feature -neon -target-feature -crypto -target-feature -sha2 -target-feature -aes -target-feature +strict-align -target-abi aapcs -mfloat-abi hard -fallow-half-arguments-and-returns -mllvm -treat-scalable-fixed-error-as-warning -debugger-tuning=gdb -ffunction-sections -fdata-sections -fcoverage-compilation-dir=c:\\delta -resource-dir c:\\llvm\\lib\\clang\\14.0.1 -Os -fdebug-compilation-dir=c:\\delta -ferror-limit 19 -fmessage-length=114 -fno-signed-char -fgnuc-version=4.2.1 -fcolor-diagnostics -vectorize-loops -vectorize-slp -faddrsig -o bug-minimal.s -x ir bug-minimal.bc
1.      Optimizer
 #0 0x00007ff6247997e9 (c:\llvm\bin\clang.exe+0x197e9)
 #1 0x00007ff624d463c6 (c:\llvm\bin\clang.exe+0x5c63c6)
 #2 0x00007ff624cb8107 (c:\llvm\bin\clang.exe+0x538107)
 #3 0x00007ff62596374a (c:\llvm\bin\clang.exe+0x11e374a)
 #4 0x00007ff6265d79e1 (c:\llvm\bin\clang.exe+0x1e579e1)
 #5 0x00007ff6265def59 (c:\llvm\bin\clang.exe+0x1e5ef59)
 #6 0x00007ff6265eef46 (c:\llvm\bin\clang.exe+0x1e6ef46)
 #7 0x00007ff6265efac7 (c:\llvm\bin\clang.exe+0x1e6fac7)
 #8 0x00007ff6265f032c (c:\llvm\bin\clang.exe+0x1e7032c)
 #9 0x00007ff6265ec529 (c:\llvm\bin\clang.exe+0x1e6c529)
#10 0x00007ff6265eaaf9 (c:\llvm\bin\clang.exe+0x1e6aaf9)
#11 0x00007ff6265ea485 (c:\llvm\bin\clang.exe+0x1e6a485)
#12 0x00007ff6271624e1 (c:\llvm\bin\clang.exe+0x29e24e1)
#13 0x00007ff625e0f713 (c:\llvm\bin\clang.exe+0x168f713)
#14 0x00007ff6249cd0a1 (c:\llvm\bin\clang.exe+0x24d0a1)
#15 0x00007ff625e0e401 (c:\llvm\bin\clang.exe+0x168e401)
#16 0x00007ff6249cceb1 (c:\llvm\bin\clang.exe+0x24ceb1)
#17 0x00007ff625e0e94c (c:\llvm\bin\clang.exe+0x168e94c)
#18 0x00007ff6266c74ee (c:\llvm\bin\clang.exe+0x1f474ee)
#19 0x00007ff6266bd055 (c:\llvm\bin\clang.exe+0x1f3d055)
#20 0x00007ff6286aa0a5 (c:\llvm\bin\clang.exe+0x3f2a0a5)
#21 0x00007ff626c3d122 (c:\llvm\bin\clang.exe+0x24bd122)
#22 0x00007ff626c07ddd (c:\llvm\bin\clang.exe+0x2487ddd)
#23 0x00007ff626c9e30e (c:\llvm\bin\clang.exe+0x251e30e)
#24 0x00007ff624786e25 (c:\llvm\bin\clang.exe+0x6e25)
#25 0x00007ff624784344 (c:\llvm\bin\clang.exe+0x4344)
#26 0x00007ff6247840ec (c:\llvm\bin\clang.exe+0x40ec)
#27 0x00007ff6286f5178 (c:\llvm\bin\clang.exe+0x3f75178)
#28 0x00007ffa70e27034 (C:\WINDOWS\System32\KERNEL32.DLL+0x17034)
#29 0x00007ffa727e2651 (C:\WINDOWS\SYSTEM32\ntdll.dll+0x52651)
clang: error: clang frontend command failed due to signal (use -v to see invocation)
clang version 14.0.1
Target: arm-none-unknown-eabi
Thread model: posix
InstalledDir: c:\llvm\bin
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJytWNtu4zgS_RrnhaChu-yHPKSTDNDY9PSgM7ONeaR4sblNkYJIOen5-q2SvI5pywNhd4MkkopHp4p1I8XGiZ_3n1dZfZCkHyzRNjjCLHl5-eeXVfYLN8zuyCEt1sk6Jbxnfk-094MklDDjHell1zsxcCnI4DVgR2ixXiVPq-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