enhanced the __int128_t check with extra check against va_arg
This commit is contained in:
		
							
								
								
									
										8
									
								
								configure
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										8
									
								
								configure
									
									
									
									
										vendored
									
									
								
							@ -20395,16 +20395,18 @@ fi
 | 
			
		||||
 | 
			
		||||
if test ${ac_cv_sizeof___int128_t} -gt 0
 | 
			
		||||
then
 | 
			
		||||
	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking __int128_t with %" >&5
 | 
			
		||||
$as_echo_n "checking __int128_t with %... " >&6; }
 | 
			
		||||
	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking __int128_t with % and va_arg" >&5
 | 
			
		||||
$as_echo_n "checking __int128_t with % and va_arg... " >&6; }
 | 
			
		||||
	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 | 
			
		||||
/* end confdefs.h.  */
 | 
			
		||||
 | 
			
		||||
#include <stdarg.h>
 | 
			
		||||
int
 | 
			
		||||
main ()
 | 
			
		||||
{
 | 
			
		||||
 | 
			
		||||
			volatile __int128_t x, base;
 | 
			
		||||
			va_list ap;
 | 
			
		||||
			va_list (ap, __int128_t);
 | 
			
		||||
			x = (__int128_t)&base;
 | 
			
		||||
			base = (__int128_t)&x;
 | 
			
		||||
			x = x % base;
 | 
			
		||||
 | 
			
		||||
		Reference in New Issue
	
	Block a user