Commit e9339a68 by Jason Merrill Committed by Jason Merrill

re PR c++/52248 (timevar ICE)

	PR c++/52248
	* decl.c (define_label): Use timevar_cond_start/stop.

From-SVN: r184329
parent 6acc8d53
2012-02-16 Jason Merrill <jason@redhat.com>
PR c++/52248
* decl.c (define_label): Use timevar_cond_start/stop.
2012-02-16 Fabien Chêne <fabien@gcc.gnu.org> 2012-02-16 Fabien Chêne <fabien@gcc.gnu.org>
PR c++/52126 PR c++/52126
......
...@@ -2947,9 +2947,9 @@ tree ...@@ -2947,9 +2947,9 @@ tree
define_label (location_t location, tree name) define_label (location_t location, tree name)
{ {
tree ret; tree ret;
timevar_start (TV_NAME_LOOKUP); bool running = timevar_cond_start (TV_NAME_LOOKUP);
ret = define_label_1 (location, name); ret = define_label_1 (location, name);
timevar_stop (TV_NAME_LOOKUP); timevar_cond_stop (TV_NAME_LOOKUP, running);
return ret; return ret;
} }
......
2012-02-16 Jason Merrill <jason@redhat.com>
PR c++/52248
* g++.dg/ext/timevar1.C: New.
2012-02-16 Fabien Chêne <fabien@gcc.gnu.org> 2012-02-16 Fabien Chêne <fabien@gcc.gnu.org>
PR c++/52126 PR c++/52126
......
// PR c++/52248
// { dg-options "-ftime-report" }
// { dg-prune-output "wall" }
// { dg-prune-output "times" }
// { dg-prune-output "TOTAL" }
// { dg-prune-output "checks" }
void
foo ()
{
goto lab; // { dg-error "not defined" }
}
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