Thread View: gnu.g++.bug
1 messages
1 total messages
Started by Michael Tiemann
Tue, 04 Apr 1989 15:30
fix for stmt.c
Author: 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
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads