Skip to content

Compiling libcore without SSE leads to LLVM ERROR: SSE register return with SSE disabled #26449

Closed
@gz

Description

@gz

May be related to: #26025
At least compilation seems to work for June 17th nightly and earlier.

I tried this (creating libcore library without the use of vector instructions; this is typically done in case one wants to use libcore in kernel level code):

rustc-nightly/src/libcore $ rustc --crate-type=lib --emit=link -O -C soft-float -C target-feature=-mmx,-sse,-sse2,-sse3,-ssse3,-sse4.1,-sse4.2,-3dnow,-3dnowa,-avx,-avx2 -g --emit=obj -C soft-float -C no-vectorize-slp -C no-vectorize-loops --crate-name core lib.rs 
LLVM ERROR: SSE register return with SSE disabled

I expected to see this happen: Successful compilation.

Instead, this happened: LLVM ERROR: SSE register return with SSE disabled

Meta

rustc --version --verbose:
rustc 1.2.0-nightly (2f56839 2015-06-18)
binary: rustc
commit-hash: 2f56839
commit-date: 2015-06-18
host: x86_64-unknown-linux-gnu
release: 1.2.0-nightly

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-LLVMArea: Code generation parts specific to LLVM. Both correctness bugs and optimization-related issues.C-bugCategory: This is a bug.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions