This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: optimization/8750: Cygwin prolog generation erroneously emitting __alloca as regular function call
- From: Danny Smith <danny_r_smith_2001 at yahoo dot co dot nz>
- To: ebotcazou at gcc dot gnu dot org, gcc-patches at gcc dot gnu dot org
- Date: Wed, 19 Feb 2003 08:39:10 +1100 (EST)
- Subject: Re: optimization/8750: Cygwin prolog generation erroneously emitting __alloca as regular function call
Hello
Is this OK for 3_2-branch. Equivalent is in 3.3 and trunk.
Else I'll close the PR now.
Danny
ChangeLog
2003-02-18 Danny Smith <dannysmith@users.sourceforge.net>
PR optimization/8750
* config/i386/i386.c (ix86_expand_prologue): Don't allow
scheduling pass to move insns across __alloca call.
Update copyright.
Index: i386.c
==================================================================
RCS file: /cvs/gcc/gcc/gcc/config/i386/i386.c,v
retrieving revision 1.368.2.19.2.9
diff -c -3 -p -r1.368.2.19.2.9 i386.c
*** i386.c 31 Jan 2003 22:06:28 -0000 1.368.2.19.2.9
--- i386.c 18 Feb 2003 20:34:46 -0000
***************
*** 1,6 ****
/* Subroutines used for code generation on IA-32.
Copyright (C) 1988, 1992, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001,
! 2002 Free Software Foundation, Inc.
This file is part of GNU CC.
--- 1,6 ----
/* Subroutines used for code generation on IA-32.
Copyright (C) 1988, 1992, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001,
! 2002, 2003 Free Software Foundation, Inc.
This file is part of GNU CC.
*************** ix86_expand_prologue ()
*** 4270,4275 ****
--- 4270,4279 ----
CALL_INSN_FUNCTION_USAGE (insn)
= gen_rtx_EXPR_LIST (VOIDmode, gen_rtx_USE (VOIDmode, arg0),
CALL_INSN_FUNCTION_USAGE (insn));
+
+ /* Don't allow scheduling pass to move insns across __alloca
+ call. */
+ emit_insn (gen_blockage ());
}
if (use_mov)
{
--- ebotcazou@gcc.gnu.org wrote: > Synopsis: Cygwin prolog generation
erroneously emitting __alloca as regular
> function call
>
> Responsible-Changed-From-To: unassigned->dannysmith
> Responsible-Changed-By: ebotcazou
> Responsible-Changed-When: Tue Feb 18 13:48:54 2003
> Responsible-Changed-Why:
> Submitter of the fix.
> State-Changed-From-To: open->analyzed
> State-Changed-By: ebotcazou
> State-Changed-When: Tue Feb 18 13:48:54 2003
> State-Changed-Why:
> Do you plan to backport the patch to the 3.2 branch? If no, please close
> the bug.
>
>
http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=8750
http://mobile.yahoo.com.au - Yahoo! Mobile
- Exchange IMs with Messenger friends on your Telstra or Vodafone mobile phone.