aboutsummaryrefslogtreecommitdiff
path: root/gcc/config/darwin-c.c
diff options
context:
space:
mode:
authorAndrea Ornstein <andrea.ornstein@st.com>2009-07-13 14:02:03 +0000
committerAndrea Ornstein <andrea.ornstein@st.com>2009-07-13 14:02:03 +0000
commitebe70b1c0c01a4cffc4fddc2220df34baf8aafe4 (patch)
tree717ebaf298254fef30bbaea78a6565d09026f395 /gcc/config/darwin-c.c
parent398faacc86c8b2cea017d0a1d1182f2b2929bcb8 (diff)
merge from trunk rev 132392:145122 1/2
git-svn-id: https://gcc.gnu.org/svn/gcc/branches/st/cli-be@149589 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/config/darwin-c.c')
-rw-r--r--gcc/config/darwin-c.c11
1 files changed, 6 insertions, 5 deletions
diff --git a/gcc/config/darwin-c.c b/gcc/config/darwin-c.c
index 76ef5fa3684..862a1d1f4c0 100644
--- a/gcc/config/darwin-c.c
+++ b/gcc/config/darwin-c.c
@@ -1,5 +1,6 @@
/* Darwin support needed only by C/C++ frontends.
- Copyright (C) 2001, 2003, 2004, 2005, 2007 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.
@@ -26,7 +27,7 @@ along with GCC; see the file COPYING3. If not see
#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"
@@ -179,7 +180,7 @@ darwin_pragma_ms_struct (cpp_reader *pfile ATTRIBUTE_UNUSED)
BAD ("junk at end of '#pragma ms_struct'");
}
-static struct {
+static struct frameworks_in_use {
size_t len;
const char *name;
cpp_dir* dir;
@@ -211,8 +212,8 @@ add_framework (const char *name, size_t len, 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);