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]

[patch] tree.h: Expand a comment to phi_arg_d.


Hi,

Attached is a patch to expand a comment to phi_arg_d.

AFAICT, imm_use must be the first element because
phi_arg_index_from_use does some pointer arithmetic with it.  Is that
right?

OK to apply?

Kazu Hirata

2005-04-26  Kazu Hirata  <kazu@cs.umass.edu>

	* tree.h (phi_arg_d): Expand a comment in phi_arg_d.

Index: tree.h
===================================================================
RCS file: /cvs/gcc/gcc/gcc/tree.h,v
retrieving revision 1.721
diff -u -d -p -r1.721 tree.h
--- tree.h	26 Apr 2005 22:49:27 -0000	1.721
+++ tree.h	26 Apr 2005 23:34:57 -0000
@@ -1424,7 +1424,9 @@ struct edge_def;
 
 struct phi_arg_d GTY(())
 {
-  struct ssa_imm_use_d imm_use;	/* imm_use MUST be first element in struct.  */
+  /* imm_use MUST be the first element in struct because we do some
+     pointer arithmetic with it.  See phi_arg_index_from_use.  */
+  struct ssa_imm_use_d imm_use;
   tree def;
   bool nonzero;
 };


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