Skip to content

Crash while building compiler-rt/lib/builtins/atomic.c for ARM #33367

@llvmbot

Description

@llvmbot
Bugzilla Link 34020
Resolution FIXED
Resolved on Aug 23, 2017 14:31
Version 5.0
OS Linux
Blocks #33196
Attachments Preprocessed source, Command line options
Reporter LLVM Bugzilla Contributor
CC @rovka,@eastig,@Theodor,@zmodem,@RKSimon,@rengolin,@TNorthover

Extended Description

This file compiled successfully with LLVM 4.0, but now crashes when compiled with 5.0 and trunk. The errors reported are:

fatal error: error in backend: Cannot select: t7: i32,ch = AtomicSwap<Volatile LDST4[%21]> t4:1, t6, t4
t6: i32,ch = CopyFromReg t0, Register:i32 %vreg1
t5: i32 = Register %vreg1
t4: i32,ch = load<LD4%.atomictmp2> t0, FrameIndex:i32<7>, undef:i32
t1: i32 = FrameIndex<7>
t3: i32 = undef
In function: __atomic_exchange_c
clang-6.0: error: clang frontend command failed with exit code 70 (use -v to see invocation)
clang version 6.0.0 (trunk) (llvm/trunk 309605)
Target: arm-none--eabi
Thread model: single
InstalledDir: /scratch/cmoore/virgin-llvm-upstream-trunk/install-stage2/bin
clang-6.0: note: diagnostic msg: PLEASE submit a bug report to http://llvm.org/bugs/ and include the crash backtrace, preprocessed s ource, and associated run script.
clang-6.0: note: diagnostic msg:


PLEASE ATTACH THE FOLLOWING FILES TO THE BUG REPORT:
Preprocessed source(s) and associated run script(s) are located at:
clang-6.0: note: diagnostic msg: /tmp/atomic-d9e982.c
clang-6.0: note: diagnostic msg: /tmp/atomic-d9e982.sh
clang-6.0: note: diagnostic msg:

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions