2004-08-18 David Daney <ddaney@avtrex.com>
[official-gcc.git] / gcc / tree-alias-type.c
blob20bcbf733fd1bf9137857f3164452959d4a58185
1 /* Tree based linear points-to analysis
2 Copyright (C) 2002, 2003 Free Software Foundation, Inc.
3 Contributed by Daniel Berlin <dberlin@dberlin.org>
5 This file is part of GCC.
7 GCC is free software; you can redistribute it and/or modify
8 under the terms of the GNU General Public License as published by
9 the Free Software Foundation; either version 2 of the License, or
10 (at your option) any later version.
12 GCC is distributed in the hope that it will be useful,
13 but WITHOUT ANY WARRANTY; without even the implied warranty of
14 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 GNU General Public License for more details.
17 You should have received a copy of the GNU General Public License
18 along with GCC; if not, write to the Free Software
19 Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
22 #include "config.h"
23 #include "system.h"
24 #include "coretypes.h"
25 #include "tm.h"
26 #include "ggc.h"
27 #include "tree-alias-type.h"
29 alias_var
30 alias_var_new_with_aterm (tree decl, struct aterm_ *term)
32 alias_var ret = ggc_alloc (sizeof (struct alias_var_aterm));
33 ALIAS_VAR_KIND (ret) = ATERM_AVAR;
34 ALIAS_VAR_DECL (ret) = decl;
35 ALIAS_VAR_ATERM (ret) = term;
36 return ret;