/* Darwin support needed only by C/C++ frontends.
- Copyright (C) 2001, 2003, 2004, 2005 Free Software Foundation, Inc.
+ Copyright (C) 2001, 2003, 2004, 2005, 2007, 2008
+ Free Software Foundation, Inc.
Contributed by Apple Computer Inc.
This file is part of GCC.
GCC is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
-the Free Software Foundation; either version 2, or (at your option)
+the Free Software Foundation; either version 3, or (at your option)
any later version.
GCC is distributed in the hope that it will be useful,
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
-along with GCC; see the file COPYING. If not, write to
-the Free Software Foundation, 51 Franklin Street, Fifth Floor,
-Boston, MA 02110-1301, USA. */
+along with GCC; see the file COPYING3. If not see
+<http://www.gnu.org/licenses/>. */
#include "config.h"
#include "system.h"
#include "tree.h"
#include "c-pragma.h"
#include "c-tree.h"
-#include "c-incpath.h"
+#include "incpath.h"
#include "c-common.h"
#include "toplev.h"
#include "flags.h"
tree local = lookup_name (decl);
if (local && (TREE_CODE (local) == PARM_DECL
|| TREE_CODE (local) == VAR_DECL))
- TREE_USED (local) = 1;
+ {
+ TREE_USED (local) = 1;
+ DECL_READ_P (local) = 1;
+ }
tok = pragma_lex (&x);
if (tok != CPP_COMMA)
break;
BAD ("junk at end of '#pragma ms_struct'");
}
-static struct {
+static struct frameworks_in_use {
size_t len;
const char *name;
cpp_dir* dir;
{
max_frameworks = i*2;
max_frameworks += i == 0;
- frameworks_in_use = xrealloc (frameworks_in_use,
- max_frameworks*sizeof(*frameworks_in_use));
+ frameworks_in_use = XRESIZEVEC (struct frameworks_in_use,
+ frameworks_in_use, max_frameworks);
}
dir_name = XNEWVEC (char, len + 1);
memcpy (dir_name, name, len);