diff options
author | Simon Marlow <marlowsd@gmail.com> | 2011-11-22 11:26:28 +0000 |
---|---|---|
committer | Simon Marlow <marlowsd@gmail.com> | 2011-11-22 11:26:28 +0000 |
commit | d681f8700ad2c034d5b9dacf4e681b8e7279f6ee (patch) | |
tree | c808d7d5e623679e13b67d8e82d46ebbb0130005 /includes/Stg.h | |
parent | a5762b71d1aaf9037d14fc706bb04976a231bf22 (diff) | |
parent | 6247b59e5d31de58ee51273916bc44ac2118240a (diff) | |
download | haskell-d681f8700ad2c034d5b9dacf4e681b8e7279f6ee.tar.gz |
merge
Diffstat (limited to 'includes/Stg.h')
-rw-r--r-- | includes/Stg.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/includes/Stg.h b/includes/Stg.h index cae4a3a4aa..1791795a0a 100644 --- a/includes/Stg.h +++ b/includes/Stg.h @@ -49,7 +49,10 @@ # define _BSD_SOURCE #endif -#if IN_STG_CODE == 0 +#if IN_STG_CODE == 0 || defined(llvm_CC_FLAVOR) +// C compilers that use an LLVM back end (clang or llvm-gcc) do not +// correctly support global register variables so we make sure that +// we do not declare them for these compilers. # define NO_GLOBAL_REG_DECLS /* don't define fixed registers */ #endif |