SOURCES: gcc-pr22171.patch (NEW) - check s_ann for null before use.

pluto pluto at pld-linux.org
Fri Jun 24 15:36:50 CEST 2005


Author: pluto                        Date: Fri Jun 24 13:36:50 2005 GMT
Module: SOURCES                       Tag: HEAD
---- Log message:
- check s_ann for null before use.

---- Files affected:
SOURCES:
   gcc-pr22171.patch (NONE -> 1.1)  (NEW)

---- Diffs:

================================================================
Index: SOURCES/gcc-pr22171.patch
diff -u /dev/null SOURCES/gcc-pr22171.patch:1.1
--- /dev/null	Fri Jun 24 15:36:50 2005
+++ SOURCES/gcc-pr22171.patch	Fri Jun 24 15:36:44 2005
@@ -0,0 +1,11 @@
+--- gcc-4.1-20050624_1105/gcc/tree-ssa-operands.c.orig	2005-06-24 11:01:40.000000000 +0200
++++ gcc-4.1-20050624_1105/gcc/tree-ssa-operands.c	2005-06-24 15:35:28.000000000 +0200
+@@ -1347,7 +1347,7 @@
+ 	
+ 	if (code == COMPONENT_REF)
+ 	  {
+-	    if (TREE_THIS_VOLATILE (TREE_OPERAND (expr, 1)))
++	    if (s_ann && TREE_THIS_VOLATILE (TREE_OPERAND (expr, 1)))
+ 	      s_ann->has_volatile_ops = true; 
+ 	    get_expr_operands (stmt, &TREE_OPERAND (expr, 2), opf_none);
+ 	  }
================================================================



More information about the pld-cvs-commit mailing list