Skip to content

Clang fails to add uwtable to some functions #19587

Closed
@llvmbot

Description

@llvmbot
Bugzilla Link 19213
Version unspecified
OS All
Reporter LLVM Bugzilla Contributor
CC @dwblaikie,@DougGregor

Extended Description

When compiling

int f1();
int i = f1();

clang fails to add uwtable to _GLOBAL__I_a. This means that when building without exceptions, we don't add an entry for it in .eh_table, which violates the ABI.

GCC produces one:

	.type	_GLOBAL__sub_I_i, @function
_GLOBAL__sub_I_i:
.LFB1:
	.cfi_startproc
....

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugzillaIssues migrated from bugzillac++clang:frontendLanguage frontend issues, e.g. anything involving "Sema"

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions