Skip to content

CBE produces calls to __builtin_stack_restore with C compilers that don't support them #1785

@lattner

Description

@lattner
Bugzilla Link 1413
Resolution FIXED
Resolved on Feb 22, 2010 12:47
Version 2.0
OS All
CC @asl

Extended Description

The CBE is unconditionally turning calls to llvm.stacksave into calls to __builtin_stack_restore. It should
only do this if the C compiler supports these. Worst case, it should emit a header that looks like this:

#if !gcc or gcc is too old
#define __builtin_stack_restore(X) 0
#endif

-Chris

Metadata

Metadata

Assignees

Labels

bugzillaIssues migrated from bugzillacompile-failUse [accepts-invalid] and [rejects-valid] instead

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions