summaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authordnovillo <dnovillo@138bc75d-0d04-0410-961f-82ee72b054a4>2009-01-09 21:11:25 +0000
committerdnovillo <dnovillo@138bc75d-0d04-0410-961f-82ee72b054a4>2009-01-09 21:11:25 +0000
commit51e52fe30494ed386cc6610ffad5dc54c69a9893 (patch)
treef925f21e1aa995dd66b9aa4bb1bcb0677dc17518 /gcc
parente1e05028fdd539c8f713c43f0d6b78cf5a8585a4 (diff)
downloadgcc-51e52fe30494ed386cc6610ffad5dc54c69a9893.tar.gz
* gimple.h (struct gimple_statement_base)<uid>: Document
the restrictions on its use. (gimple_uid): Tidy. (gimple_set_uid): Tidy. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@143233 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc')
-rw-r--r--gcc/ChangeLog7
-rw-r--r--gcc/gimple.h8
2 files changed, 12 insertions, 3 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 0f0331a5bf0..2fade47ba20 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,10 @@
+2009-01-09 Diego Novillo <dnovillo@google.com>
+
+ * gimple.h (struct gimple_statement_base)<uid>: Document
+ the restrictions on its use.
+ (gimple_uid): Tidy.
+ (gimple_set_uid): Tidy.
+
2009-01-09 Jakub Jelinek <jakub@redhat.com>
* config/i386/i386.c (ix86_expand_movmem, ix86_expand_setmem): Add
diff --git a/gcc/gimple.h b/gcc/gimple.h
index 8f8e49b61b3..7760e247aa9 100644
--- a/gcc/gimple.h
+++ b/gcc/gimple.h
@@ -297,7 +297,9 @@ struct gimple_statement_base GTY(())
in there. */
unsigned int subcode : 16;
- /* UID of this statement. */
+ /* UID of this statement. This is used by passes that want to
+ assign IDs to statements. It must be assigned and used by each
+ pass. By default it should be assumed to contain garbage. */
unsigned uid;
/* [ WORD 2 ]
@@ -1204,7 +1206,7 @@ gimple_plf (gimple stmt, enum plf_mask plf)
}
-/* Set the uid of statement */
+/* Set the UID of statement. */
static inline void
gimple_set_uid (gimple g, unsigned uid)
@@ -1213,7 +1215,7 @@ gimple_set_uid (gimple g, unsigned uid)
}
-/* Return the uid of statement */
+/* Return the UID of statement. */
static inline unsigned
gimple_uid (const_gimple g)