]> git.ipfire.org Git - thirdparty/gnutls.git/commitdiff
x86-common: increase the size of _gnutls_x86_cpuid_s to match the size of assembly...
authorNikos Mavrogiannopoulos <nmav@gnutls.org>
Sun, 3 Apr 2016 07:46:24 +0000 (09:46 +0200)
committerNikos Mavrogiannopoulos <nmav@gnutls.org>
Sun, 3 Apr 2016 07:47:28 +0000 (09:47 +0200)
This resolves issue on certain platforms (e.g., windows) where ld would simply fail,
instead of allocate the largest size of the variable.

lib/accelerated/x86/x86-common.c

index 6c0e7b66a2bf8b21084986e42731c8096d7d881d..371d025ad9ea141c890f14f52fad2d49603b1f75 100644 (file)
@@ -46,7 +46,7 @@ __attribute__((visibility("hidden")))
 #elif defined(__SUNPRO_C)
 __hidden
 #endif
-unsigned int _gnutls_x86_cpuid_s[3];
+unsigned int _gnutls_x86_cpuid_s[4];
 
 #ifndef bit_PCLMUL
 # define bit_PCLMUL 0x2