summaryrefslogtreecommitdiff
path: root/rts
diff options
context:
space:
mode:
authorErik de Castro Lopo <erikd@mega-nerd.com>2016-06-27 19:37:06 +1000
committerErik de Castro Lopo <erikd@mega-nerd.com>2016-06-27 19:57:29 +1000
commitafa6e8309e8e7a069abcf7879791d53cdf22f00a (patch)
treee920e6b1c2dd8e53503415f4e60200d7ffb8311f /rts
parent60c24b26231e1295321f86445b000c7199d73838 (diff)
downloadhaskell-afa6e8309e8e7a069abcf7879791d53cdf22f00a.tar.gz
rts/Linker.c: Rename ONLY_USED_x86_64_HOST_ARCH macro
Summary: Rename it to `USED_IF_x86_64_HOST_ARCH` to make it more like the existing `USED_IF` macros as suggested by Simon Marlow. Test Plan: Build on x86_64 windows Reviewers: Phyx, bgamari, simonmar, austin Subscribers: thomie Differential Revision: https://phabricator.haskell.org/D2365
Diffstat (limited to 'rts')
-rw-r--r--rts/Linker.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/rts/Linker.c b/rts/Linker.c
index af87713c51..f7ac748b20 100644
--- a/rts/Linker.c
+++ b/rts/Linker.c
@@ -329,9 +329,9 @@ static void *lookupSymbolInDLLs ( unsigned char *lbl );
#endif
#if defined(x86_64_HOST_ARCH)
-#define ONLY_USED_x86_64_HOST_ARCH(x) (x)
+#define USED_IF_x86_64_HOST_ARCH /* Nothing */
#else
-#define ONLY_USED_x86_64_HOST_ARCH(x) (x) GNUC3_ATTRIBUTE(__unused__)
+#define USED_IF_x86_64_HOST_ARCH STG_UNUSED
#endif
static char *allocateImageAndTrampolines (
@@ -3073,9 +3073,9 @@ static int verifyCOFFHeader ( COFF_header *hdr, pathchar *filename);
static char *
allocateImageAndTrampolines (
pathchar* arch_name, char* member_name,
- FILE* ONLY_USED_x86_64_HOST_ARCH (f),
+ FILE* f USED_IF_x86_64_HOST_ARCH,
int size,
- int ONLY_USED_x86_64_HOST_ARCH (isThin))
+ int isThin USED_IF_x86_64_HOST_ARCH)
{
char* image;
#if defined(x86_64_HOST_ARCH)