Handle MODIFY_EXPR in loc_descriptor_from_tree

Andreas Schwab schwab@suse.de
Sun Jun 22 17:43:00 GMT 2003


PR9905 containes a second case where glibc causes gcc 3.4 to abort in
loc_descriptor_from_tree.  Tested on ppc-linux.

Andreas.

2003-06-22  Andreas Schwab  <schwab@suse.de>

	PR debug/9905
	* dwarf2out.c (loc_descriptor_from_tree): Handle MODIFY_EXPR by
	recursing through second argument.

--- gcc/dwarf2out.c.~1.432.~	2003-06-17 20:51:18.000000000 +0200
+++ gcc/dwarf2out.c	2003-06-22 14:40:34.000000000 +0200
@@ -9032,6 +9032,9 @@ loc_descriptor_from_tree (loc, addressp)
       }
       break;
 
+    case MODIFY_EXPR:
+      return loc_descriptor_from_tree (TREE_OPERAND (loc, 1), addressp);
+
     default:
       /* Leave front-end specific codes as simply unknown.  This comes
 	 up, for instance, with the C STMT_EXPR.  */



More information about the Gcc-patches mailing list