diff options
author | Kevin O'Connor <kevin@koconnor.net> | 2017-05-09 15:48:36 -0400 |
---|---|---|
committer | Kevin O'Connor <kevin@koconnor.net> | 2017-05-15 14:02:59 -0400 |
commit | 142b92b883b3d7bb3712634fa9c6c004c179c8ff (patch) | |
tree | 104e86204e24c22c622fc8ccef6d8cfc9fd62827 /src/command.h | |
parent | c292006421fccc001b3cb74dffa82b72c2eb46a0 (diff) | |
download | kutter-142b92b883b3d7bb3712634fa9c6c004c179c8ff.tar.gz kutter-142b92b883b3d7bb3712634fa9c6c004c179c8ff.tar.xz kutter-142b92b883b3d7bb3712634fa9c6c004c179c8ff.zip |
command: Use "i" instead of "m" constraint in _DECL_REQUEST_ID
On some architectures, gcc will allocate a register for inline
assembler with an "m" constraint. Use "i" to avoid that.
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
Diffstat (limited to 'src/command.h')
-rw-r--r-- | src/command.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/command.h b/src/command.h index c6d8a69c..180031e5 100644 --- a/src/command.h +++ b/src/command.h @@ -73,7 +73,7 @@ extern const uint32_t command_identify_size; #define _DECL_REQUEST_ID(REQUEST, ID_SECTION) ({ \ static char __PASTE(_DECLS_, __LINE__)[] \ __section(".compile_time_request") = REQUEST; \ - asm volatile("" : : "m"(__PASTE(_DECLS_, __LINE__))); \ + asm volatile("" : : "i"(__PASTE(_DECLS_, __LINE__))); \ static char __PASTE(_DECLI_, __LINE__) \ __section(".compile_time_request." ID_SECTION); \ (size_t)&__PASTE(_DECLI_, __LINE__); }) |