This is an archive of the discontinued LLVM Phabricator instance.

[Clang][Darwin] Define __ARM_DWARF_EH__ for WatchABI
ClosedPublic

Authored by beanz on Apr 28 2016, 2:53 PM.

Details

Summary

The Darwin armv7k ABI uses Dwarf EH, so we need to set the OS define correctly. Without this the gcc_personality fails to build.

Diff Detail

Repository
rL LLVM

Event Timeline

beanz updated this revision to Diff 55498.Apr 28 2016, 2:53 PM
beanz retitled this revision from to [Clang][Darwin] Define __ARM_DWARF_EH__ for WatchABI.
beanz updated this object.
beanz added a reviewer: t.p.northover.
beanz added a subscriber: cfe-commits.
t.p.northover edited edge metadata.Apr 28 2016, 3:23 PM

The ARM_DWARF_EH change looks reasonable, but it's probably an idea to put a check into tools/clang/tests/Preprocessor/arm-target-features.c (watch is checked with "ARMV7K").

The rest of the changes look like they're from an unsynchronized branch?

beanz added a subscriber: beanz.Apr 28 2016, 3:38 PM

Yea… Arc seems to have done something odd with my out-of-date checkout.

I’ll make sure that gets cleaned up, and I’ll add a test.

Thanks,
-Chris

beanz updated this revision to Diff 55626.Apr 29 2016, 10:56 AM
beanz edited edge metadata.

Adding a test case, and properly rebasing on trunk.

t.p.northover accepted this revision.Apr 29 2016, 10:57 AM
t.p.northover edited edge metadata.

Looks good. Thanks Chris!

This revision is now accepted and ready to land.Apr 29 2016, 10:57 AM
This revision was automatically updated to reflect the committed changes.