diff options
author | Michael Gran <spk121@yahoo.com> | 2023-07-17 14:50:41 -0700 |
---|---|---|
committer | Michael Gran <spk121@yahoo.com> | 2023-07-17 18:30:12 -0700 |
commit | b9a40cdc18eb6f785a0f437da78d336046dfbaa1 (patch) | |
tree | 5ba743a01c168eaf7aa65c44163a7ecc4fb4495f | |
parent | 58723e026a91ace37d9871dd9fb277a4a1e7434e (diff) | |
download | guile-b9a40cdc18eb6f785a0f437da78d336046dfbaa1.tar.gz |
Avoid inline assembly in VM when using Clang
Clang uses a different format for inline assembly. Also, as noted
in the comment, this register usage is likely moot.
* libguile/vm-engine.c (JT_REG)[__GNUC__ && !__clang __]: define to empty
-rw-r--r-- | libguile/vm-engine.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libguile/vm-engine.c b/libguile/vm-engine.c index 510563ce4..c0145ee8a 100644 --- a/libguile/vm-engine.c +++ b/libguile/vm-engine.c @@ -73,7 +73,7 @@ compilation failures. It can be revived if it's useful, but my naive hope is that simply annotating the locals with "register" will be a sufficient hint to the compiler. */ -#ifdef __GNUC__ +#if defined(__GNUC__) && ! defined(__clang__) # if defined __x86_64__ /* GCC 4.6 chooses %rbp for IP_REG and %rbx for SP_REG, which works well. Tell it to keep the jump table in a r12, which is |