This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: PATCH: Missing return_label using g++ CVS under vax ultrix.


I've installed this patch.

2000-12-22  Jason Merrill  <jason@redhat.com>

	* semantics.c (genrtl_finish_function): Don't try to jump to
	return_label unless it exists.

*** semantics.c.~1~	Fri Dec 22 11:24:04 2000
--- semantics.c	Fri Dec 22 11:24:06 2000
*************** genrtl_finish_function (fn)
*** 2606,2612 ****
  
    /* Finish building code that will trigger warnings if users forget
       to make their functions return values.  */
!   emit_jump (return_label);
    if (no_return_label)
      {
        /* We don't need to call `expand_*_return' here because we don't
--- 2606,2613 ----
  
    /* Finish building code that will trigger warnings if users forget
       to make their functions return values.  */
!   if (return_label)
!     emit_jump (return_label);
    if (no_return_label)
      {
        /* We don't need to call `expand_*_return' here because we don't

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]