[prev in list] [next in list] [prev in thread] [next in thread] 

List:       gcrypt-devel
Subject:    [PATCH] Always include <config.h> in cipher assembly codes
From:       "H.J. Lu via Gcrypt-devel" <gcrypt-devel () gnupg ! org>
Date:       2021-04-27 16:29:28
Message-ID: 20210427162928.849963-1-hjl.tools () gmail ! com
[Download RAW message or body]

* cipher/poly1305-s390x.S: Always include <config.h>.

When Intel CET is enabled, we need to include <cet.h> in assembly codes
to mark Intel CET support even if it is empty.  We should always include
<config.h> in cipher assembly codes so that they will be marked for
Intel CET support when compiling for x86-64 and i686.

Signed-off-by: H.J. Lu <hjl.tools@gmail.com>
---
 cipher/poly1305-s390x.S | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/cipher/poly1305-s390x.S b/cipher/poly1305-s390x.S
index 844245f6..28bed560 100644
--- a/cipher/poly1305-s390x.S
+++ b/cipher/poly1305-s390x.S
@@ -18,8 +18,8 @@
  * License along with this program; if not, see <http://www.gnu.org/licenses/>.
  */
 
-#if defined (__s390x__) && __GNUC__ >= 4 && __ARCH__ >= 9
 #include <config.h>
+#if defined (__s390x__) && __GNUC__ >= 4 && __ARCH__ >= 9
 #if defined(HAVE_GCC_INLINE_ASM_S390X)
 
 #include "asm-poly1305-s390x.h"
-- 
2.31.1


_______________________________________________
Gcrypt-devel mailing list
Gcrypt-devel@gnupg.org
http://lists.gnupg.org/mailman/listinfo/gcrypt-devel
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic