This is the mail archive of the gcc-patches@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]
Other format: [Raw text]

Re: PATCH to statement-expression handling for c++/27115


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;
  }


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