diff options
author | Paul Burton <paul.burton@mips.com> | 2018-11-07 23:05:07 +0000 |
---|---|---|
committer | Paul Burton <paul.burton@mips.com> | 2018-11-07 16:25:30 -0800 |
commit | 57810ecb581aec8008ad579013c0755c7acaf490 (patch) | |
tree | 42514557ab6e1118e0256e79b357122401a7ffee /arch/mips/include/asm/compiler.h | |
parent | 52d6d05575c3ad812ad92e558ef12b334de3cfaa (diff) | |
download | lwn-57810ecb581aec8008ad579013c0755c7acaf490.tar.gz lwn-57810ecb581aec8008ad579013c0755c7acaf490.zip |
MIPS: Remove GCC_IMM_ASM & GCC_REG_ACCUM macros
asm/compiler.h defined GCC_IMM_ASM & GCC_REG_ACCUM macros, both of which
are defined differently for GCC pre-3.4 or GCC 3.4 & higher. We only
support building with GCC 4.6 & higher since commit cafa0010cd51 ("Raise
the minimum required gcc version to 4.6"), which makes the pre-3.4
definition dead code.
Rather than leave the macro definitions around, inline the GCC 3.4 &
higher definitions into the single file that uses them & remove the
macros entirely.
Signed-off-by: Paul Burton <paul.burton@mips.com>
Patchwork: https://patchwork.linux-mips.org/patch/21000/
Cc: linux-mips@linux-mips.org
Diffstat (limited to 'arch/mips/include/asm/compiler.h')
-rw-r--r-- | arch/mips/include/asm/compiler.h | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/arch/mips/include/asm/compiler.h b/arch/mips/include/asm/compiler.h index cc2eb1b06050..9196fca4335d 100644 --- a/arch/mips/include/asm/compiler.h +++ b/arch/mips/include/asm/compiler.h @@ -43,14 +43,6 @@ #undef barrier_before_unreachable #define barrier_before_unreachable() asm volatile(".insn") -#if __GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 4) -#define GCC_IMM_ASM() "n" -#define GCC_REG_ACCUM "$0" -#else -#define GCC_IMM_ASM() "rn" -#define GCC_REG_ACCUM "accum" -#endif - #ifdef CONFIG_CPU_MIPSR6 /* All MIPS R6 toolchains support the ZC constrain */ #define GCC_OFF_SMALL_ASM() "ZC" |