Skip to content

Commit

Permalink
powerpc: remove GCC version check for UPD_CONSTR
Browse files Browse the repository at this point in the history
Now that GCC 5.1 is the minimum supported version, we can drop this
workaround for older versions of GCC. This adversely affected clang,
too.

Cc: Michael Ellerman <[email protected]>
Cc: Benjamin Herrenschmidt <[email protected]>
Cc: Paul Mackerras <[email protected]>
Cc: Segher Boessenkool <[email protected]>
Cc: Christophe Leroy <[email protected]>
Cc: [email protected]
Signed-off-by: Nick Desaulniers <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
  • Loading branch information
nickdesaulniers authored and torvalds committed Sep 13, 2021
1 parent d207589 commit 6563139
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions arch/powerpc/include/asm/asm-const.h
Original file line number Diff line number Diff line change
Expand Up @@ -12,16 +12,6 @@
# define ASM_CONST(x) __ASM_CONST(x)
#endif

/*
* Inline assembly memory constraint
*
* GCC 4.9 doesn't properly handle pre update memory constraint "m<>"
*
*/
#if defined(GCC_VERSION) && GCC_VERSION < 50000
#define UPD_CONSTR ""
#else
#define UPD_CONSTR "<>"
#endif

#endif /* _ASM_POWERPC_ASM_CONST_H */

0 comments on commit 6563139

Please sign in to comment.