Commit cf69bfbf by Per Bothner Committed by Alexandre Petit-Bianco

re GNATS gcj/110 (don't exclude private methods from method table when optimizing)

Tue Dec 14 14:20:16 1999  Per Bothner  <per@bothner.com>

	* class.c (make_class_data): flag_keep_inline_functions to keep
	private methods in the method array.

(This is a fix to the Java PR #110:
  http://sourceware.cygnus.com/ml/java-prs/1999-q4/msg00179.html)

From-SVN: r30930
parent 6979065c
Tue Dec 14 14:20:16 1999 Per Bothner <per@bothner.com>
* class.c (make_class_data): flag_keep_inline_functions to keep
private methods in the method array.
1999-12-15 Anthony Green <green@cygnus.com> 1999-12-15 Anthony Green <green@cygnus.com>
* check-init.c (check_init): Take into account both types of * check-init.c (check_init): Take into account both types of
......
...@@ -1216,6 +1216,7 @@ make_class_data (type) ...@@ -1216,6 +1216,7 @@ make_class_data (type)
{ {
tree init; tree init;
if (METHOD_PRIVATE (method) if (METHOD_PRIVATE (method)
&& ! flag_keep_inline_functions
&& (flag_inline_functions || optimize)) && (flag_inline_functions || optimize))
continue; continue;
init = make_method_value (method); init = make_method_value (method);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment