OSDN Git Service

* semantics.c (genrtl_finish_function): Don't try to jump to
authorjason <jason@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 22 Dec 2000 14:51:22 +0000 (14:51 +0000)
committerjason <jason@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 22 Dec 2000 14:51:22 +0000 (14:51 +0000)
        return_label unless it exists.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@38461 138bc75d-0d04-0410-961f-82ee72b054a4

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

index 8da2de1..a67f6bd 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 28bf1cc..d2ec8f5 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