Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!YAHI.STANFORD.EDU!tiemann From: tiemann@YAHI.STANFORD.EDU (Michael Tiemann) Newsgroups: gnu.g++.bug Subject: fix for stmt.c Message-ID: <8904041530.AA05742@yahi.stanford.edu> Date: 4 Apr 89 15:30:41 GMT Sender: daemon@tut.cis.ohio-state.edu Reply-To: tiemann@lurch.stanford.edu Distribution: gnu Organization: GNUs Not Usenet Lines: 18 In expand return, the following test must be added. Otherwise, a void return (i.e., `return;') will attempt to move a void register into a void register, causing an abort in emit_move_insn. yahi% diff -c2 stmt.c~ stmt.c *** stmt.c~ Thu Mar 23 09:02:23 1989 --- stmt.c Tue Apr 4 08:24:03 1989 *************** *** 1471,1474 **** --- 1471,1475 ---- if (cleanups && retval_rhs != NULL_TREE + && TREE_TYPE (retval_rhs) != void_type_node && GET_CODE (DECL_RTL (DECL_RESULT (this_function))) == REG) { yahi% Michael