diff options
author | Florian Weimer <fweimer@redhat.com> | 2018-10-26 09:19:40 +0200 |
---|---|---|
committer | Florian Weimer <fweimer@redhat.com> | 2018-10-26 09:19:40 +0200 |
commit | aff9b377121f9cfabe5d45f3226acf99c73928a7 (patch) | |
tree | 3ada3f31456ac21bbff5d28f650377f08bdf9ed5 /sysdeps | |
parent | 69d1e73d99c6ad3f65fc16b6325d6ae289950d03 (diff) | |
download | glibc-aff9b377121f9cfabe5d45f3226acf99c73928a7.tar.gz glibc-aff9b377121f9cfabe5d45f3226acf99c73928a7.tar.xz glibc-aff9b377121f9cfabe5d45f3226acf99c73928a7.zip |
conform: XFAIL siginfo_t si_band test on sparc64
We can use long int on sparcv9, but on sparc64, we must match the int type used by the kernel (and not long int, as in POSIX). (cherry picked from commit 7c5e34d7f1b8f8f5acd94c2b885ae13b85414dcd)
Diffstat (limited to 'sysdeps')
-rw-r--r-- | sysdeps/unix/sysv/linux/sparc/bits/siginfo-arch.h | 7 | ||||
-rw-r--r-- | sysdeps/unix/sysv/linux/sparc/sparc64/Makefile | 5 |
2 files changed, 11 insertions, 1 deletions
diff --git a/sysdeps/unix/sysv/linux/sparc/bits/siginfo-arch.h b/sysdeps/unix/sysv/linux/sparc/bits/siginfo-arch.h index 9f79715ebe..4dd35237f6 100644 --- a/sysdeps/unix/sysv/linux/sparc/bits/siginfo-arch.h +++ b/sysdeps/unix/sysv/linux/sparc/bits/siginfo-arch.h @@ -2,7 +2,12 @@ #ifndef _BITS_SIGINFO_ARCH_H #define _BITS_SIGINFO_ARCH_H 1 -#define __SI_BAND_TYPE int +/* The kernel uses int instead of long int (as in POSIX). In 32-bit + mode, we can still use long int, but in 64-bit mode, we need to + deviate from POSIX. */ +#if __WORDSIZE == 64 +# define __SI_BAND_TYPE int +#endif #define __SI_SIGFAULT_ADDL \ int _si_trapno; diff --git a/sysdeps/unix/sysv/linux/sparc/sparc64/Makefile b/sysdeps/unix/sysv/linux/sparc/sparc64/Makefile index 715af3df7b..218c246f16 100644 --- a/sysdeps/unix/sysv/linux/sparc/sparc64/Makefile +++ b/sysdeps/unix/sysv/linux/sparc/sparc64/Makefile @@ -7,3 +7,8 @@ LD += -melf64_sparc ifeq ($(subdir),stdlib) sysdep_routines += __start_context endif + +ifeq ($(subdir),conform) +# For bug 23821 (incorrect type of si_band). +conformtest-xfail-conds += sparc64-linux +endif |