Skip to content

Commit

Permalink
Bug 1606119 - Fix PPC HW Crypto build failure r=jcj
Browse files Browse the repository at this point in the history
All Altivec *_be() functions are supported from gcc version 8.x not 5.x
so modify gcc version check that at the moment cause build failure due
to missing Altivec *_be() functions.

--HG--
extra : amend_source : 217aa37aba9f07e4fd72e8dfd7a9fa49b31fca93
  • Loading branch information
giuliobenetti committed Jan 2, 2020
1 parent c3e84d8 commit e4d2e93
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/freebl/gcm.h
Expand Up @@ -41,11 +41,11 @@
#endif

/*
* PPC CRYPTO requires at least gcc 5 or clang. The LE check is purely
* PPC CRYPTO requires at least gcc 8 or clang. The LE check is purely
* because it's only been tested on LE. If you're interested in BE,
* please send a patch.
*/
#if (defined(__clang__) || (defined(__GNUC__) && __GNUC__ >= 5)) && \
#if (defined(__clang__) || (defined(__GNUC__) && __GNUC__ >= 8)) && \
defined(IS_LITTLE_ENDIAN)
#define USE_PPC_CRYPTO
#endif
Expand Down

0 comments on commit e4d2e93

Please sign in to comment.