This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: PATCH to statement-expression handling for c++/27115
- From: Andrew Haley <aph at redhat dot com>
- To: Andreas Schwab <schwab at suse dot de>
- Cc: Jason Merrill <jason at redhat dot com>, "gcc-patches >> GCC Patches" <gcc-patches at gcc dot gnu dot org>
- Date: Tue, 22 Aug 2006 15:18:36 +0100
- Subject: Re: PATCH to statement-expression handling for c++/27115
- References: <44EA1B88.6010708@redhat.com> <jefyfp15ew.fsf@sykes.suse.de>
Andreas Schwab writes:
> Jason Merrill <jason@redhat.com> writes:
>
> > Tested x86_64-pc-linux-gnu, applied to trunk.
>
> Breaks java:
>
> /tmp/cvs/gcc-20060822/Build/gcc/gcj -B/tmp/cvs/gcc-20060822/Build/ia64-suse-linux/libjava/ -B/tmp/cvs/gcc-20060822/Build/gcc/ -funwind-tables -fclasspath= -fbootclasspath=/tmp/cvs/gcc-20060822/Build/ia64-suse-linux/libjava/classpath/lib --encoding=UTF-8 -Wno-deprecated -fbootstrap-classes -g -O2 -fjni -findirect-dispatch -fno-indirect-classes -c @gnu-java-awt-dnd-peer-gtk.list -fPIC -o .libs/gnu-java-awt-dnd-peer-gtk.o
> gnu/java/awt/dnd/peer/gtk/GtkDropTargetContextPeer.java: In class 'gnu.java.awt.dnd.peer.gtk.GtkDropTargetContextPeer':
> gnu/java/awt/dnd/peer/gtk/GtkDropTargetContextPeer.java: In constructor '()':
> gnu/java/awt/dnd/peer/gtk/GtkDropTargetContextPeer.java:0: internal compiler error: Segmentation fault
>
> #0 0x4000000000179051 in voidify_wrapper_expr (wrapper=Cannot access memory at address 0x18
> )
Ack, my bad. Testing this patch.
Andrew.
2006-08-22 Andrew Haley <aph@redhat.com>
* decl.c (java_add_stmt): Give the statement list a type.
Index: decl.c
===================================================================
*** decl.c (revision 116322)
--- decl.c (working copy)
*************** java_add_stmt (tree new_stmt)
*** 2188,2193 ****
--- 2188,2194 ----
i = tsi_last (stmts);
tsi_link_after (&i, new_stmt, TSI_CONTINUE_LINKING);
+ TREE_TYPE (stmts) = void_type_node;
return current_binding_level->stmts = stmts;
}