Article View: gnu.g++.bug
Article #1825fix for stmt.c
From: Michael Tiemann
Date: Tue, 04 Apr 1989 15:30
Date: Tue, 04 Apr 1989 15:30
18 lines
986 bytes
986 bytes
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
Technical Details
Message-ID:
<8904041530.AA05742@yahi.stanford.edu>Path:
arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!YAHI.STANFORD.EDU!tiemannShow Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!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