aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorBen Elliston <bje@au.ibm.com>2004-06-17 04:49:59 +0000
committerBen Elliston <bje@gcc.gnu.org>2004-06-17 14:49:59 +1000
commitd96f6b597e22d1667bdf50ec71dd2b0fef9d1a15 (patch)
tree889b5c6029f913c419ffa44e7f0bc7daa4a35d22 /gcc
parentf44272eef7d8d7945fd038db1b1c383ffad24ba7 (diff)
downloadgcc-d96f6b597e22d1667bdf50ec71dd2b0fef9d1a15.zip
gcc-d96f6b597e22d1667bdf50ec71dd2b0fef9d1a15.tar.gz
gcc-d96f6b597e22d1667bdf50ec71dd2b0fef9d1a15.tar.bz2
tree-alias-ander.h: Add standard top-of-file comment.
* tree-alias-ander.h: Add standard top-of-file comment. * tree-alias-common.h: Likewise. * tree-alias-type.h: Likewise. From-SVN: r83285
Diffstat (limited to 'gcc')
-rw-r--r--gcc/ChangeLog6
-rw-r--r--gcc/tree-alias-ander.h26
-rw-r--r--gcc/tree-alias-common.h26
-rw-r--r--gcc/tree-alias-type.h29
4 files changed, 83 insertions, 4 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 4444967..0211e51 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,9 @@
+2004-06-17 Ben Elliston <bje@au.ibm.com>
+
+ * tree-alias-ander.h: Add standard top-of-file comment.
+ * tree-alias-common.h: Likewise.
+ * tree-alias-type.h: Likewise.
+
2004-06-16 Daniel Berlin <dberlin@dberlin.org>
* tree-ssa-pre.c (compute_avail): Value number uses as well.
diff --git a/gcc/tree-alias-ander.h b/gcc/tree-alias-ander.h
index 92e313f..4af8b2c 100644
--- a/gcc/tree-alias-ander.h
+++ b/gcc/tree-alias-ander.h
@@ -1,7 +1,29 @@
+/* Tree based Andersen points-to analysis
+ Copyright (C) 2002, 2003 Free Software Foundation, Inc.
+ Contributed by Daniel Berlin <dberlin@dberlin.org>
+
+This file is part of GCC.
+
+GCC is free software; you can redistribute it and/or modify
+under the terms of the GNU General Public License as published by
+the Free Software Foundation; either version 2 of the License, or
+(at your option) any later version.
+
+GCC is distributed in the hope that it will be useful,
+but WITHOUT ANY WARRANTY; without even the implied warranty of
+MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+GNU General Public License for more details.
+
+You should have received a copy of the GNU General Public License
+along with GCC; if not, write to the Free Software
+Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+*/
+
#ifndef TREE_ALIAS_ANDER
#define TREE_ALIAS_ANDER
-#include "tree-alias-common.h"
+#include "tree-alias-common.h"
extern struct tree_alias_ops *andersen_alias_ops;
-#endif
+
+#endif /* TREE_ALIAS_ANDER */
diff --git a/gcc/tree-alias-common.h b/gcc/tree-alias-common.h
index 45c9e4b..bf3cfcb 100644
--- a/gcc/tree-alias-common.h
+++ b/gcc/tree-alias-common.h
@@ -1,6 +1,29 @@
+/* Tree based points-to analysis
+ Copyright (C) 2002, 2003 Free Software Foundation, Inc.
+ Contributed by Daniel Berlin <dberlin@dberlin.org>
+
+This file is part of GCC.
+
+GCC is free software; you can redistribute it and/or modify
+under the terms of the GNU General Public License as published by
+the Free Software Foundation; either version 2 of the License, or
+(at your option) any later version.
+
+GCC is distributed in the hope that it will be useful,
+but WITHOUT ANY WARRANTY; without even the implied warranty of
+MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+GNU General Public License for more details.
+
+You should have received a copy of the GNU General Public License
+along with GCC; if not, write to the Free Software
+Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+*/
+
#ifndef TREE_ALIAS_COMMON
#define TREE_ALIAS_COMMON
+
#include "tree-alias-type.h"
+
/* Alias analysis function pointers.
Functions implemented by the actual alias analysis algorithms in
order for them to work with the common points-to structure. */
@@ -96,4 +119,5 @@ extern bool ptr_may_alias_var (tree, tree);
extern bool same_points_to_set (tree, tree);
extern bool empty_points_to_set (tree);
extern const char *alias_get_name (tree);
-#endif
+
+#endif /* TREE_ALIAS_COMMON */
diff --git a/gcc/tree-alias-type.h b/gcc/tree-alias-type.h
index 7740e99..5c81af7 100644
--- a/gcc/tree-alias-type.h
+++ b/gcc/tree-alias-type.h
@@ -1,3 +1,24 @@
+/* Tree based linear points-to analysis
+ Copyright (C) 2002, 2003 Free Software Foundation, Inc.
+ Contributed by Daniel Berlin <dberlin@dberlin.org>
+
+This file is part of GCC.
+
+GCC is free software; you can redistribute it and/or modify
+under the terms of the GNU General Public License as published by
+the Free Software Foundation; either version 2 of the License, or
+(at your option) any later version.
+
+GCC is distributed in the hope that it will be useful,
+but WITHOUT ANY WARRANTY; without even the implied warranty of
+MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+GNU General Public License for more details.
+
+You should have received a copy of the GNU General Public License
+along with GCC; if not, write to the Free Software
+Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+*/
+
#ifndef TREE_ALIAS_TYPE_H
#define TREE_ALIAS_TYPE_H
@@ -6,27 +27,32 @@
union alias_var_def;
struct aterm_;
struct aterm_list_a;
+
enum alias_var_kind
{
ATERM_AVAR
};
+
struct alias_var_common GTY (())
{
enum alias_var_kind kind;
unsigned int varnum;
tree decl;
};
+
struct alias_var_aterm GTY (())
{
struct alias_var_common common;
struct aterm_ * GTY((skip (""))) term;
struct aterm_list_a *GTY ((skip (""))) ptset;
};
+
union alias_var_def GTY ((desc ("%0.common.kind")))
{
struct alias_var_common GTY ((tag ("-1"))) common;
struct alias_var_aterm GTY ((tag ("ATERM_AVAR"))) aterm;
};
+
typedef union alias_var_def *alias_var;
#define ALIAS_VAR_KIND(x) ((x)->common.kind)
@@ -38,4 +64,5 @@ union alias_type_def;
typedef union alias_type_def *alias_type;
alias_var alias_var_new_with_aterm (tree, struct aterm_ *);
-#endif
+
+#endif /* TREE_ALIAS_TYPE_H */