From e6fe680d2e00451a9b646a23a22dafc625375f76 Mon Sep 17 00:00:00 2001 From: Jason Merrill Date: Fri, 22 Dec 2000 09:51:22 -0500 Subject: [PATCH] semantics.c (genrtl_finish_function): Don't try to jump to return_label unless it exists. * semantics.c (genrtl_finish_function): Don't try to jump to return_label unless it exists. From-SVN: r38461 --- gcc/cp/ChangeLog | 3 +++ gcc/cp/semantics.c | 3 ++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog index 8da2de1b53e..a67f6bda574 100644 --- a/gcc/cp/ChangeLog +++ b/gcc/cp/ChangeLog @@ -1,5 +1,8 @@ 2000-12-22 Jason Merrill + * semantics.c (genrtl_finish_function): Don't try to jump to + return_label unless it exists. + In partial ordering for a call, ignore parms for which we don't have a real argument. * call.c (joust): Pass len to more_specialized. diff --git a/gcc/cp/semantics.c b/gcc/cp/semantics.c index 28bf1ccb684..d2ec8f5f513 100644 --- a/gcc/cp/semantics.c +++ b/gcc/cp/semantics.c @@ -2606,7 +2606,8 @@ genrtl_finish_function (fn) /* Finish building code that will trigger warnings if users forget to make their functions return values. */ - emit_jump (return_label); + if (return_label) + emit_jump (return_label); if (no_return_label) { /* We don't need to call `expand_*_return' here because we don't -- 2.30.2