PATCH for integrate.c error message
Mark Mitchell
mark@codesourcery.com
Sun Sep 5 09:42:00 GMT 1999
Richard asked me to integrate the following patch from the GC branch,
which is not related to GC.
--
Mark Mitchell mark@codesourcery.com
CodeSourcery, LLC http://www.codesourcery.com
Sun Sep 5 09:31:56 1999 Richard Henderson <rth@cygnus.com>
Bernd Schmidt <bernds@cygnus.co.uk>
* integrate.c (function_cannot_inline_p): Do not inline
functions with forced labels.
Index: integrate.c
===================================================================
RCS file: /egcs/carton/cvsfiles/egcs/gcc/integrate.c,v
retrieving revision 1.62
diff -c -p -r1.62 integrate.c
*** integrate.c 1999/09/04 13:09:54 1.62
--- integrate.c 1999/09/05 16:41:02
*************** function_cannot_inline_p (fndecl)
*** 148,153 ****
--- 148,156 ----
if (current_function_contains_functions)
return N_("function with nested functions cannot be inline");
+ if (forced_labels)
+ return N_("function with label addresses used in initializers cannot inline");
+
if (current_function_cannot_inline)
return current_function_cannot_inline;
More information about the Gcc-patches
mailing list