aboutsummaryrefslogtreecommitdiff
path: root/libgfortran
diff options
context:
space:
mode:
authorUros Bizjak <ubizjak@gmail.com>2020-06-01 22:23:51 +0200
committerUros Bizjak <ubizjak@gmail.com>2020-06-01 22:29:20 +0200
commit832c1192eba6dd100e2f757e30ea6373f782ff55 (patch)
tree6ee3bf871a48de7e3054ec6dbd5e50d2b23ec97c /libgfortran
parent88f48e2967ead9be262483618238efa9c7c842ec (diff)
downloadgcc-832c1192eba6dd100e2f757e30ea6373f782ff55.zip
gcc-832c1192eba6dd100e2f757e30ea6373f782ff55.tar.gz
gcc-832c1192eba6dd100e2f757e30ea6373f782ff55.tar.bz2
i386: Add __attribute__ ((gcc_struct)) to struct fenv [PR95418]
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 <ubizjak@gmail.com> 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)).
Diffstat (limited to 'libgfortran')
-rw-r--r--libgfortran/config/fpu-387.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/libgfortran/config/fpu-387.h b/libgfortran/config/fpu-387.h
index 8b5e758..7ff5acd 100644
--- a/libgfortran/config/fpu-387.h
+++ b/libgfortran/config/fpu-387.h
@@ -85,7 +85,7 @@ struct fenv
unsigned short int __data_selector;
unsigned short int __unused5;
unsigned int __mxcsr;
-};
+} __attribute__ ((gcc_struct));
/* Check we can actually store the FPU state in the allocated size. */
_Static_assert (sizeof(struct fenv) <= (size_t) GFC_FPE_STATE_BUFFER_SIZE,