crypto: drbg - use pragmas for disabling optimization
authorStephan Mueller <smueller@chronox.de>
Tue, 9 Jun 2015 02:08:49 +0000 (04:08 +0200)
committerHerbert Xu <herbert@gondor.apana.org.au>
Tue, 9 Jun 2015 14:26:00 +0000 (22:26 +0800)
commitfbb145bc0a1c03b90a96cca99dc07c33aaad2318
tree27e29447feac622abe0553ab12e695d94b0f48f6
parent70c3c8a96a85d333b3ff1f24df84c0e179261a8a
crypto: drbg - use pragmas for disabling optimization

Replace the global -O0 compiler flag from the Makefile with GCC
pragmas to mark only the functions required to be compiled without
optimizations.

This patch also adds a comment describing the rationale for the
functions chosen to be compiled without optimizations.

Signed-off-by: Stephan Mueller <smueller@chronox.de>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
crypto/Makefile
crypto/jitterentropy.c