Skip to content
This repository was archived by the owner on Nov 6, 2022. It is now read-only.

Actually fix RWLock representation for UnsafeCell niche fix #9

Merged
merged 2 commits into from
Feb 3, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions libunwind/src/UnwindRustSgx.h
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,9 @@

// We have to use RWLock from rust repo, it is defined in:
// src/libstd/sys/sgx/rwlock.rs.
// rwlock.rs has compile time check to ensure sizeof(RWLock) = 128.
// rwlock.rs has compile time check to ensure sizeof(RWLock) = 144.
typedef struct {
unsigned char opaque[128];
unsigned char opaque[144];
} RWLock;

// The below is obtained by printing initialized bytes
Expand Down
2 changes: 2 additions & 0 deletions libunwind/src/UnwindRustSgxSnprintf.c
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,9 @@
#pragma GCC diagnostic ignored "-Wfloat-conversion"
#pragma GCC diagnostic ignored "-Wsign-conversion"
#pragma GCC diagnostic ignored "-Wstrict-overflow"
#if __GNUC__ >= 7
#pragma GCC diagnostic ignored "-Wimplicit-fallthrough"
#endif

/**************************************************************
* Original:
Expand Down