aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorJason Merrill <jason@redhat.com>2000-12-22 09:51:22 -0500
committerJason Merrill <jason@gcc.gnu.org>2000-12-22 09:51:22 -0500
commite6fe680d2e00451a9b646a23a22dafc625375f76 (patch)
tree413c84bb65c8af5236929e39992ae36770813013 /gcc
parente5214479a779ad44390aec0694c11c5493aaad83 (diff)
downloadgcc-e6fe680d2e00451a9b646a23a22dafc625375f76.zip
gcc-e6fe680d2e00451a9b646a23a22dafc625375f76.tar.gz
gcc-e6fe680d2e00451a9b646a23a22dafc625375f76.tar.bz2
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
Diffstat (limited to 'gcc')
-rw-r--r--gcc/cp/ChangeLog3
-rw-r--r--gcc/cp/semantics.c3
2 files changed, 5 insertions, 1 deletions
diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog
index 8da2de1..a67f6bd 100644
--- a/gcc/cp/ChangeLog
+++ b/gcc/cp/ChangeLog
@@ -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.
diff --git a/gcc/cp/semantics.c b/gcc/cp/semantics.c
index 28bf1cc..d2ec8f5 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