OSDN Git Service

* integrate.c (function_cannot_inline_p): Don't allow inlining
authorrth <rth@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 26 Oct 1999 19:36:18 +0000 (19:36 +0000)
committerrth <rth@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 26 Oct 1999 19:36:18 +0000 (19:36 +0000)
        if setjmp is used.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@30197 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/ChangeLog
gcc/integrate.c

index bfa6bb9..af854ed 100644 (file)
@@ -1,3 +1,8 @@
+Tue Oct 26 12:35:38 1999  Richard Henderson  <rth@cygnus.com>
+
+       * integrate.c (function_cannot_inline_p): Don't allow inlining
+       if setjmp is used.
+
 Tue Oct 26 14:10:23 1999  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
 
        * c-parse.in (cast_expr): Constify.
index 2bfbecf..16e47ce 100644 (file)
@@ -145,6 +145,9 @@ function_cannot_inline_p (fndecl)
   if (current_function_calls_alloca)
     return N_("function using alloca cannot be inline");
 
+  if (current_function_calls_setjmp)
+    return N_("function using setjmp cannot be inline");
+
   if (current_function_contains_functions)
     return N_("function with nested functions cannot be inline");