This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[committed] Add pr59927 testcase


Hi!

On Tue, Feb 11, 2014 at 01:13:09AM +0000, rth at gcc dot gnu.org wrote:
> --- Comment #9 from Richard Henderson <rth at gcc dot gnu.org> ---
> Author: rth
> Date: Tue Feb 11 01:12:38 2014
> New Revision: 207677
> 
> URL: http://gcc.gnu.org/viewcvs?rev=207677&root=gcc&view=rev
> Log:
> PR target/59927
> 
>         * calls.c (expand_call): Don't double-push for reg_parm_stack_space.
>         * config/i386/i386.c (init_cumulative_args): Remove sorry for 64-bit
>         ms-abi vs -mno-accumulate-outgoing-args.
>         (ix86_expand_prologue): Unconditionally call ix86_eax_live_at_start_p.
>         * config/i386/i386.h (ACCUMULATE_OUTGOING_ARGS): Fix comment with
>         respect to ms-abi.
> 
> Modified:
>     trunk/gcc/ChangeLog
>     trunk/gcc/calls.c
>     trunk/gcc/config/i386/i386.c
>     trunk/gcc/config/i386/i386.h

I've committed following testcase for a PR Richard has fixed:

2014-02-11  Jakub Jelinek  <jakub@redhat.com>

	PR target/59927
	* gcc.target/i386/pr59927.c: New test.

--- gcc/testsuite/gcc.target/i386/pr59927.c.jj	2014-02-11 10:04:10.430559305 +0100
+++ gcc/testsuite/gcc.target/i386/pr59927.c	2014-02-11 10:03:54.000000000 +0100
@@ -0,0 +1,17 @@
+/* PR target/59927 */
+/* { dg-do compile } */
+/* { dg-options "-O2 -g" } */
+
+extern void baz (int) __attribute__ ((__ms_abi__));
+
+void
+foo (void (__attribute__ ((ms_abi)) *fn) (int))
+{
+  fn (0);
+}
+
+void
+bar (void)
+{
+  baz (0);
+}

	Jakub


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]