diff options
author | Geert Uytterhoeven <geert@linux-m68k.org> | 2018-02-01 05:22:00 -0500 |
---|---|---|
committer | Herbert Xu <herbert@gondor.apana.org.au> | 2018-02-08 06:38:12 -0500 |
commit | ba916b6a0339ed6cc6441ad83c097ab795dbdbc5 (patch) | |
tree | 46f1cd6f09288766fa60487a09069224b98e7ce4 /crypto/sha3_generic.c | |
parent | d9afaaa4ff7af8b87d4a205e48cb8a6f666d7f01 (diff) |
crypto: sha3-generic - Use __optimize to support old compilers
With gcc-4.1.2:
crypto/sha3_generic.c:39: warning: ‘__optimize__’ attribute directive ignored
Use the newly introduced __optimize macro to fix this.
Fixes: 83dee2ce1ae791c3 ("crypto: sha3-generic - rewrite KECCAK transform to help the compiler optimize")
Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org>
Acked-by: Ard Biesheuvel <ard.biesheuvel@linaro.org>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'crypto/sha3_generic.c')
-rw-r--r-- | crypto/sha3_generic.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crypto/sha3_generic.c b/crypto/sha3_generic.c index 951c4eb70262..ded148783303 100644 --- a/crypto/sha3_generic.c +++ b/crypto/sha3_generic.c | |||
@@ -152,7 +152,7 @@ static SHA3_INLINE void keccakf_round(u64 st[25]) | |||
152 | st[24] ^= bc[ 4]; | 152 | st[24] ^= bc[ 4]; |
153 | } | 153 | } |
154 | 154 | ||
155 | static void __attribute__((__optimize__("O3"))) keccakf(u64 st[25]) | 155 | static void __optimize("O3") keccakf(u64 st[25]) |
156 | { | 156 | { |
157 | int round; | 157 | int round; |
158 | 158 | ||