OSDN Git Service

2010-04-30 Tobias Burnus Mburnus@net-b.de>
[pf3gnuchains/gcc-fork.git] / gcc / config / darwin-driver.c
index 2f7e09d..747ca99 100644 (file)
@@ -1,12 +1,12 @@
 /* Additional functions for the GCC driver on Darwin native.
-   Copyright (C) 2006, 2007 Free Software Foundation, Inc.
+   Copyright (C) 2006, 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,
@@ -15,9 +15,8 @@ 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; 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/>.  */
 
 #ifndef CROSS_DIRECTORY_STRUCTURE
 #include "config.h"
@@ -94,7 +93,7 @@ darwin_default_min_version (int * argc_p, char *** argv_p)
        && macosx_deployment_target[0])
       {
        ++*argc_p;
-       *argv_p = xmalloc (sizeof (char *) * *argc_p);
+       *argv_p = XNEWVEC (char *, *argc_p);
        (*argv_p)[0] = argv[0];
        (*argv_p)[1] = concat ("-mmacosx-version-min=",
                               macosx_deployment_target, NULL);
@@ -145,7 +144,7 @@ darwin_default_min_version (int * argc_p, char *** argv_p)
 
   /* Add the new flag.  */
   ++*argc_p;
-  *argv_p = xmalloc (sizeof (char *) * *argc_p);
+  *argv_p = XNEWVEC (char *, *argc_p);
   (*argv_p)[0] = argv[0];
   (*argv_p)[1] = new_flag;
   memcpy (*argv_p + 2, argv + 1, (argc - 1) * sizeof (char *));