Skip to content

Commit 0831d00

Browse files
authoredSep 19, 2024··
Merge pull request #8461 from tautschnig/fix-aarch64-va_list
C library: Apple does not adhere to aarch64 ABI
2 parents 5bd494a + 9c9b52e commit 0831d00

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed
 

‎src/ansi-c/library/stdio.c

+8-8
Original file line numberDiff line numberDiff line change
@@ -1134,7 +1134,7 @@ int vfscanf(FILE *restrict stream, const char *restrict format, va_list arg)
11341134
}
11351135

11361136
(void)*format;
1137-
# if defined(__aarch64__) || defined(_M_ARM64)
1137+
# if(defined(__aarch64__) || defined(_M_ARM64)) && !defined(__APPLE__)
11381138
while((__CPROVER_size_t)__CPROVER_POINTER_OFFSET(arg.__stack) <
11391139
__CPROVER_OBJECT_SIZE(arg.__stack))
11401140
{
@@ -1192,7 +1192,7 @@ __CPROVER_HIDE:;
11921192
}
11931193

11941194
(void)*format;
1195-
#if defined(__aarch64__) || defined(_M_ARM64)
1195+
#if(defined(__aarch64__) || defined(_M_ARM64)) && !defined(__APPLE__)
11961196
while((__CPROVER_size_t)__CPROVER_POINTER_OFFSET(arg.__stack) <
11971197
__CPROVER_OBJECT_SIZE(arg.__stack))
11981198
{
@@ -1250,7 +1250,7 @@ int __stdio_common_vfscanf(
12501250
}
12511251

12521252
(void)*format;
1253-
# if defined(__aarch64__) || defined(_M_ARM64)
1253+
# if(defined(__aarch64__) || defined(_M_ARM64)) && !defined(__APPLE__)
12541254
while((__CPROVER_size_t)__CPROVER_POINTER_OFFSET(args.__stack) <
12551255
__CPROVER_OBJECT_SIZE(args.__stack))
12561256
{
@@ -1338,7 +1338,7 @@ __CPROVER_HIDE:;
13381338
int result = __VERIFIER_nondet_int();
13391339
(void)*s;
13401340
(void)*format;
1341-
# if defined(__aarch64__) || defined(_M_ARM64)
1341+
# if(defined(__aarch64__) || defined(_M_ARM64)) && !defined(__APPLE__)
13421342
while((__CPROVER_size_t)__CPROVER_POINTER_OFFSET(arg.__stack) <
13431343
__CPROVER_OBJECT_SIZE(arg.__stack))
13441344
{
@@ -1382,7 +1382,7 @@ __CPROVER_HIDE:;
13821382
int result = __VERIFIER_nondet_int();
13831383
(void)*s;
13841384
(void)*format;
1385-
#if defined(__aarch64__) || defined(_M_ARM64)
1385+
#if(defined(__aarch64__) || defined(_M_ARM64)) && !defined(__APPLE__)
13861386
while((__CPROVER_size_t)__CPROVER_POINTER_OFFSET(arg.__stack) <
13871387
__CPROVER_OBJECT_SIZE(arg.__stack))
13881388
{
@@ -1432,7 +1432,7 @@ int __stdio_common_vsscanf(
14321432

14331433
(void)*s;
14341434
(void)*format;
1435-
# if defined(__aarch64__) || defined(_M_ARM64)
1435+
# if(defined(__aarch64__) || defined(_M_ARM64)) && !defined(__APPLE__)
14361436
while((__CPROVER_size_t)__CPROVER_POINTER_OFFSET(args.__stack) <
14371437
__CPROVER_OBJECT_SIZE(args.__stack))
14381438
{
@@ -1827,7 +1827,7 @@ int vsnprintf(char *str, size_t size, const char *fmt, va_list ap)
18271827
{
18281828
(void)*fmt;
18291829

1830-
#if defined(__aarch64__) || defined(_M_ARM64)
1830+
#if(defined(__aarch64__) || defined(_M_ARM64)) && !defined(__APPLE__)
18311831
while((__CPROVER_size_t)__CPROVER_POINTER_OFFSET(ap.__stack) <
18321832
__CPROVER_OBJECT_SIZE(ap.__stack))
18331833

@@ -1887,7 +1887,7 @@ int __builtin___vsnprintf_chk(
18871887
(void)bufsize;
18881888
(void)*fmt;
18891889

1890-
#if defined(__aarch64__) || defined(_M_ARM64)
1890+
#if(defined(__aarch64__) || defined(_M_ARM64)) && !defined(__APPLE__)
18911891
while((__CPROVER_size_t)__CPROVER_POINTER_OFFSET(ap.__stack) <
18921892
__CPROVER_OBJECT_SIZE(ap.__stack))
18931893

0 commit comments

Comments
 (0)
Please sign in to comment.