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:
parent
52fb6cdbfc
commit
fbc249832c
|
@ -26,7 +26,7 @@
|
|||
#include <sys/stat.h>
|
||||
|
||||
|
||||
#if __i386__
|
||||
#if __i386__ || __arm__
|
||||
#define stat xstat
|
||||
|
||||
struct stat
|
||||
|
|
|
@ -56,7 +56,7 @@ main ()
|
|||
oputs (itoa (foo_size));
|
||||
oputs ("\n");
|
||||
// FIXME: add *14, *18
|
||||
#if __i386__
|
||||
#if __i386__ || __arm__
|
||||
int foo_size_14 = 224;
|
||||
int foo_size_18 = 288;
|
||||
#elif __x86_64__
|
||||
|
|
|
@ -47,7 +47,7 @@ struct section section;
|
|||
int
|
||||
main ()
|
||||
{
|
||||
#if __i386__
|
||||
#if __i386__ || __arm__
|
||||
int sym_size = 8;
|
||||
#elif __GNUC__ && __x86_64__
|
||||
int sym_size = 16;
|
||||
|
|
|
@ -34,7 +34,7 @@ struct bar
|
|||
};
|
||||
};
|
||||
|
||||
#if __i386__
|
||||
#if __i386__ || __arm__
|
||||
#define ptr_size 4
|
||||
#define foo_size 20
|
||||
#define bar_size 12
|
||||
|
|
Loading…
Reference in a new issue