Skip to content

error: illegal "f" output constraint; fatal error: error in backend: Access past stack top! (also: Cannot pop empty stack!) #15014

Open
@llvmbot

Description

Bugzilla Link 14642
Version trunk
OS FreeBSD
Attachments preprocessed source (boring...), run script (boring...)
Reporter LLVM Bugzilla Contributor
CC @rengolin

Extended Description

  1. source code (file name: f.c):
void f(void)
{
	float x;
	__asm__ (
		""
		: "=f" (x)
	);
}
  1. command line:
clang -c f.c
  1. output:
f.c:5:3: error: illegal "f" output constraint
                ""
                ^
fatal error: error in backend: Access past stack top!
clang: error: clang frontend command failed with exit code 70 (use -v to see invocation)
clang version 3.3 (trunk 170425)
Target: i386-unknown-freebsd10.0
Thread model: posix

Metadata

Assignees

No one assigned

    Labels

    backend:X86bugzillaIssues migrated from bugzillaclangClang issues not falling into any other category

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions