From: Jason Merrill Date: Fri, 22 Dec 2000 14:51:22 +0000 (-0500) Subject: semantics.c (genrtl_finish_function): Don't try to jump to return_label unless it... X-Git-Tag: prereleases/libstdc++-2.92~2060 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=e6fe680d2e00451a9b646a23a22dafc625375f76;p=thirdparty%2Fgcc.git 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 --- diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog index 8da2de1b53e2..a67f6bda574e 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 28bf1ccb6842..d2ec8f5f5138 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