Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(12)

Unified Diff: src/IceDefs.h

Issue 883983002: Add -pedantic to Makefile.standalone to match production. (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Patch Set: Created 5 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Makefile.standalone ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/IceDefs.h
diff --git a/src/IceDefs.h b/src/IceDefs.h
index 55e09acb8681ba438b6cf6ad214a5f101b62c0c3..2f945f82513d5d00793922dd4594e3de2964466a 100644
--- a/src/IceDefs.h
+++ b/src/IceDefs.h
@@ -129,8 +129,14 @@ typedef uint32_t TimerIdT;
enum { MaxCacheLineSize = 64 };
// Use ICE_CACHELINE_BOUNDARY to force the next field in a declaration
// list to be aligned to the next cache line.
+#define TOKENPASTE(x, y) x##y
+#define TOKENPASTE2(x, y) TOKENPASTE(x, y)
#define ICE_CACHELINE_BOUNDARY \
- alignas(MaxCacheLineSize) struct {}
+ void TOKENPASTE2(FakeUsage, __LINE__)() { \
+ (void) TOKENPASTE2(Boundary, __LINE__); \
+ } \
+ alignas(MaxCacheLineSize) struct TOKENPASTE2(FakeType, __LINE__) { \
+ } TOKENPASTE2(Boundary, __LINE__)
JF 2015/01/28 01:28:45 You don't need the fake usage as long as you insta
Jim Stichnoth 2015/01/28 03:26:37 Done.
JF 2015/01/28 07:14:45 Richard makes a good point that you can wrap each
Jim Stichnoth 2015/01/28 15:39:18 Yeah, that is pretty nice and clear. Except is th
// PNaCl is ILP32, so theoretically we should only need 32-bit offsets.
typedef int32_t RelocOffsetT;
« no previous file with comments | « Makefile.standalone ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698