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]

[PATCH] PR opt/8613


Hopefully this will help fix PR opt/8613.
Patch explanation at: http://gcc.gnu.org/ml/gcc-bugs/2003-02/msg00889.html

2003-02-19  Glen Nakamura  <glen at imodulo dot com>

	* builtins.c (expand_builtin): Emit postincrements before expanding
	builtin functions.

diff -Nru3p gcc-3.3.orig/gcc/builtins.c gcc-3.3/gcc/builtins.c
--- gcc-3.3.orig/gcc/builtins.c	2002-12-01 17:51:43.000000000 +0000
+++ gcc-3.3/gcc/builtins.c	2002-12-01 17:51:43.000000000 +0000
@@ -3691,6 +3691,9 @@ expand_builtin (exp, target, subtarget, 
   tree arglist = TREE_OPERAND (exp, 1);
   enum built_in_function fcode = DECL_FUNCTION_CODE (fndecl);
 
+  /* Perform postincrements before expanding builtin functions.  */
+  emit_queue ();
+
   if (DECL_BUILT_IN_CLASS (fndecl) == BUILT_IN_MD)
     return (*targetm.expand_builtin) (exp, target, subtarget, mode, ignore);
 


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