+2018-11-11 Uros Bizjak <ubizjak@gmail.com>
+
+ PR target/87928
+ * config/i386/i386.h (STACK_BOUNDARY): Use TARGET_64BIT_MS_ABI
+ instead of (TARGET_64BIT && ix86_abi == MS_ABI).
+ * config/i386/darwin.h (STACK_BOUNDARY): Ditto.
+ * config/i386/cygming.h (STACK_BOUNDARY): Remove.
+
2018-11-11 Xianmiao Qu <xianmiao_qu@c-sky.com>
* config/csky/csky-linux-elf.h (CC1_SPEC): Support -profile.
bytes in one go. */
#define CHECK_STACK_LIMIT 4000
-#undef STACK_BOUNDARY
-#define STACK_BOUNDARY (TARGET_64BIT && ix86_abi == MS_ABI ? 128 : BITS_PER_WORD)
-
/* By default, target has a 80387, uses IEEE compatible arithmetic,
returns float values in the 387 and needs stack probes.
We also align doubles to 64-bits for MSVC default compatibility. */
or dynamic loader. */
#undef STACK_BOUNDARY
#define STACK_BOUNDARY \
- ((profile_flag || (TARGET_64BIT && ix86_abi == MS_ABI)) \
- ? 128 : BITS_PER_WORD)
+ ((profile_flag || TARGET_64BIT_MS_ABI) ? 128 : BITS_PER_WORD)
#undef MAIN_STACK_BOUNDARY
#define MAIN_STACK_BOUNDARY 128
#define PARM_BOUNDARY BITS_PER_WORD
/* Boundary (in *bits*) on which stack pointer should be aligned. */
-#define STACK_BOUNDARY \
- (TARGET_64BIT && ix86_abi == MS_ABI ? 128 : BITS_PER_WORD)
+#define STACK_BOUNDARY (TARGET_64BIT_MS_ABI ? 128 : BITS_PER_WORD)
/* Stack boundary of the main function guaranteed by OS. */
#define MAIN_STACK_BOUNDARY (TARGET_64BIT ? 128 : 32)
+2018-11-11 Uros Bizjak <ubizjak@gmail.com>
+
+ PR target/87928
+ * gcc.target/i386/pr87928.c: New test.
+
2018-11-09 Martin Sebor <msebor@redhat.com>
PR testsuite/87965
--- /dev/null
+/* { dg-do compile { target lp64 } } */
+/* { dg-options "-O1 -mstackrealign -mabi=ms" } */
+
+struct foo
+{
+ int a;
+ int b;
+ int c;
+ int d;
+};
+
+__attribute__ ((sysv_abi))
+struct foo bar (void)
+{
+ struct foo retval;
+
+ retval.a = 1;
+ retval.b = 2;
+ retval.c = 3;
+ retval.d = 4;
+
+ return retval;
+}