X-Git-Url: http://git.sourceforge.jp/view?a=blobdiff_plain;f=gcc%2Fcppspec.c;h=344da17a37ed25085c7111a37882b6e5fd002a99;hb=3992540609daf52db67593a2f4d2c95a537b991d;hp=90b721cd36ba2461937834791120faf1902436d4;hpb=0bb0fa6a44492ac27f919f3879419d79c6000b9e;p=pf3gnuchains%2Fgcc-fork.git diff --git a/gcc/cppspec.c b/gcc/cppspec.c index 90b721cd36b..344da17a37e 100644 --- a/gcc/cppspec.c +++ b/gcc/cppspec.c @@ -1,11 +1,11 @@ /* Specific flags and argument handling of the C preprocessor. - Copyright (C) 1999 Free Software Foundation, Inc. + Copyright (C) 1999, 2007 Free Software Foundation, 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) any later +Software Foundation; either version 3, or (at your option) any later version. GCC is distributed in the hope that it will be useful, but WITHOUT ANY @@ -14,9 +14,8 @@ 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 +. */ #include "config.h" #include "system.h" @@ -46,6 +45,7 @@ static const char *const known_suffixes[] = { ".c", ".C", ".S", ".m", ".cc", ".cxx", ".cpp", ".cp", ".c++", + ".sx", NULL }; @@ -172,7 +172,7 @@ lang_specific_driver (int *in_argc, const char *const **in_argv, return; /* One more slot for a terminating null. */ - new_argv = xmalloc ((new_argc + 1) * sizeof(char *)); + new_argv = XNEWVEC (const char *, new_argc + 1); new_argv[0] = argv[0]; j = 1;