Commit e8423af9 by Waldek Hebisch Committed by Andreas Jaeger

tree.c (initializer_zerop): Add test for empty set.

2003-12-15  Waldek Hebisch  <hebisch@math.uni.wroc.pl>

	* tree.c (initializer_zerop): Add test for empty set.
	* integrate.c (function_cannot_inline_p): Forbid inlining
	functions calling `longjmp'.

From-SVN: r74633
parent 374caa50
2003-12-15 Waldek Hebisch <hebisch@math.uni.wroc.pl>
* tree.c (initializer_zerop): Add test for empty set.
* integrate.c (function_cannot_inline_p): Forbid inlining
functions calling `longjmp'.
2003-12-15 Nathan Sidwell <nathan@codesourcery.com> 2003-12-15 Nathan Sidwell <nathan@codesourcery.com>
PR c++/11773 PR c++/11773
...@@ -62,7 +68,7 @@ ...@@ -62,7 +68,7 @@
(ggc_collect_1): Always mark and sweep if a zone has the `dead' (ggc_collect_1): Always mark and sweep if a zone has the `dead'
flag set. flag set.
(ggc_collect): Free dead zones after collecting. (ggc_collect): Free dead zones after collecting.
2003-12-13 Jan Hubicka <jh@suse.cz> 2003-12-13 Jan Hubicka <jh@suse.cz>
* coverage.c (get_coverage_counts): Use inform instead of warning * coverage.c (get_coverage_counts): Use inform instead of warning
......
...@@ -172,6 +172,9 @@ function_cannot_inline_p (tree fndecl) ...@@ -172,6 +172,9 @@ function_cannot_inline_p (tree fndecl)
if (current_function_calls_alloca) if (current_function_calls_alloca)
return N_("function using alloca cannot be inline"); return N_("function using alloca cannot be inline");
if (current_function_calls_longjmp)
return N_("function using longjmp cannot be inline");
if (current_function_calls_setjmp) if (current_function_calls_setjmp)
return N_("function using setjmp cannot be inline"); return N_("function using setjmp cannot be inline");
......
...@@ -5011,6 +5011,11 @@ initializer_zerop (tree init) ...@@ -5011,6 +5011,11 @@ initializer_zerop (tree init)
&& ! REAL_VALUE_MINUS_ZERO (TREE_REAL_CST (TREE_IMAGPART (init)))); && ! REAL_VALUE_MINUS_ZERO (TREE_REAL_CST (TREE_IMAGPART (init))));
case CONSTRUCTOR: case CONSTRUCTOR:
{ {
/* Set is empty if it has no elements. */
if ((TREE_CODE (TREE_TYPE (init)) == SET_TYPE)
&& CONSTRUCTOR_ELTS (init))
return false;
if (AGGREGATE_TYPE_P (TREE_TYPE (init))) if (AGGREGATE_TYPE_P (TREE_TYPE (init)))
{ {
tree aggr_init = CONSTRUCTOR_ELTS (init); tree aggr_init = CONSTRUCTOR_ELTS (init);
......
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