semantics.c (genrtl_finish_function): Don't try to jump to return_label unless it...
authorJason Merrill <jason@redhat.com>
Fri, 22 Dec 2000 14:51:22 +0000 (09:51 -0500)
committerJason Merrill <jason@gcc.gnu.org>
Fri, 22 Dec 2000 14:51:22 +0000 (09:51 -0500)
        * semantics.c (genrtl_finish_function): Don't try to jump to
        return_label unless it exists.

From-SVN: r38461

gcc/cp/ChangeLog
gcc/cp/semantics.c

index 8da2de1b53e2cebf71dd213c6f5c93dc06870882..a67f6bda574e8071ef682eb68aca9b7cffcf64d7 100644 (file)
@@ -1,5 +1,8 @@
 2000-12-22  Jason Merrill  <jason@redhat.com>
 
+       * 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.
index 28bf1ccb684212f80be6b8e7eace7e60e3273761..d2ec8f5f5138dc94081ba8cc50ac442dc482b642 100644 (file)
@@ -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