changeset 72609:f396703cc830

(concat) [__GNUC__]: Declare with `__attribute__((noinline))'.
author Eli Zaretskii <eliz@gnu.org>
date Sat, 02 Sep 2006 13:39:48 +0000
parents e02eb157d04b
children 01fdc3c9ea0e
files src/fns.c
diffstat 1 files changed, 6 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/fns.c	Sat Sep 02 11:35:46 2006 +0000
+++ b/src/fns.c	Sat Sep 02 13:39:48 2006 +0000
@@ -387,7 +387,12 @@
   return i1 < SCHARS (s2) ? Qt : Qnil;
 }
 
-static Lisp_Object concat ();
+#if __GNUC__
+/* "gcc -O3" enables automatic function inlining, which optimizes out
+   the arguments for the invocations of this function, whereas it
+   expects these values on the stack.  */
+static Lisp_Object concat () __attribute__((noinline));
+#endif
 
 /* ARGSUSED */
 Lisp_Object