From 832c1192eba6dd100e2f757e30ea6373f782ff55 Mon Sep 17 00:00:00 2001 From: Uros Bizjak Date: Mon, 1 Jun 2020 22:23:51 +0200 Subject: i386: Add __attribute__ ((gcc_struct)) to struct fenv [PR95418] MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Windows ABI (MinGW) is different than Linux ABI when bitfileds are involved. The following patch adds __attribute__ ((gcc_struct)) to struct fenv in order to match the layout of x87 state image in memory. 2020-06-01 Uroš Bizjak libatomic/ChangeLog: * config/x86/fenv.c (struct fenv): Add __attribute__ ((gcc_struct)). libgcc/ChangeLog: * config/i386/sfp-exceptions.c (struct fenv): Add __attribute__ ((gcc_struct)). libgfortran/ChangeLog: PR libfortran/95418 * config/fpu-387.h (struct fenv): Add __attribute__ ((gcc_struct)). --- libatomic/config/x86/fenv.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libatomic') diff --git a/libatomic/config/x86/fenv.c b/libatomic/config/x86/fenv.c index 88622c6..138a67f 100644 --- a/libatomic/config/x86/fenv.c +++ b/libatomic/config/x86/fenv.c @@ -45,7 +45,7 @@ struct fenv unsigned int __data_offset; unsigned short int __data_selector; unsigned short int __unused5; -}; +} __attribute__ ((gcc_struct)); #ifdef __SSE_MATH__ # define __math_force_eval_div(x, y) \ -- cgit v1.1