This is an archive of the discontinued LLVM Phabricator instance.

Fix struct __emutls_control to match GCC
ClosedPublic

Authored by hjl.tools on Feb 4 2016, 7:43 AM.

Details

Summary

The type of size and align in struct __emutls_control must be

typedef unsigned int gcc_word __attribute__((mode(word)));

to match GCC. When gcc_word is larger than size_t, which is the case
for x32, the upper extra bits are all zeros. We can use variables of
size_t to operate on size and align.

Diff Detail

Repository
rL LLVM

Event Timeline

hjl.tools updated this revision to Diff 46916.Feb 4 2016, 7:43 AM
hjl.tools retitled this revision from to Fix struct __emutls_control to match GCC.
hjl.tools updated this object.
hjl.tools added reviewers: kcc, chh.
hjl.tools added a subscriber: llvm-commits.
chh accepted this revision.Feb 4 2016, 9:31 AM
chh edited edge metadata.
This revision is now accepted and ready to land.Feb 4 2016, 9:31 AM

Can you check it in for me? Thanks.

This revision was automatically updated to reflect the committed changes.