Prepare tests for ARMv4.

* lib/tests/io/90-stat.c,
lib/tests/scaffold/76-pointer-arithmetic.c,
lib/tests/scaffold/7k-for-each-elem.c,
lib/tests/scaffold/85-sizeof.c: Prepare tests for ARMv4.
This commit is contained in:
Danny Milosavljevic 2020-06-01 23:54:21 +02:00
parent 52fb6cdbfc
commit fbc249832c
No known key found for this signature in database
GPG key ID: E71A35542C30BAA5
4 changed files with 4 additions and 4 deletions

View file

@ -26,7 +26,7 @@
#include <sys/stat.h> #include <sys/stat.h>
#if __i386__ #if __i386__ || __arm__
#define stat xstat #define stat xstat
struct stat struct stat

View file

@ -56,7 +56,7 @@ main ()
oputs (itoa (foo_size)); oputs (itoa (foo_size));
oputs ("\n"); oputs ("\n");
// FIXME: add *14, *18 // FIXME: add *14, *18
#if __i386__ #if __i386__ || __arm__
int foo_size_14 = 224; int foo_size_14 = 224;
int foo_size_18 = 288; int foo_size_18 = 288;
#elif __x86_64__ #elif __x86_64__

View file

@ -47,7 +47,7 @@ struct section section;
int int
main () main ()
{ {
#if __i386__ #if __i386__ || __arm__
int sym_size = 8; int sym_size = 8;
#elif __GNUC__ && __x86_64__ #elif __GNUC__ && __x86_64__
int sym_size = 16; int sym_size = 16;

View file

@ -34,7 +34,7 @@ struct bar
}; };
}; };
#if __i386__ #if __i386__ || __arm__
#define ptr_size 4 #define ptr_size 4
#define foo_size 20 #define foo_size 20
#define bar_size 12 #define bar_size 12