OSDN Git Service

gcc/
[pf3gnuchains/gcc-fork.git] / gcc / treelang / spec.c
1 /* Specific flags and argument handling of the Treelang front-end.
2    Copyright (C) 2005 Free Software Foundation, Inc.
3
4 This file is part of GCC.
5
6 GNU CC is free software; you can redistribute it and/or modify
7 it under the terms of the GNU General Public License as published by
8 the Free Software Foundation; either version 2, or (at your option)
9 any later version.
10
11 GNU CC is distributed in the hope that it will be useful,
12 but WITHOUT ANY WARRANTY; without even the implied warranty of
13 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14 GNU General Public License for more details.
15
16 You should have received a copy of the GNU General Public License
17 along with GNU CC; see the file COPYING.  If not, write to
18 the Free Software Foundation, 51 Franklin Street, Fifth Floor,
19 Boston, MA 02110-1301, USA.  */
20
21 #include "config.h"
22 #include "system.h"
23 #include "gcc.h"
24
25 #include "coretypes.h"
26 #include "tm.h"
27
28 const struct spec_function lang_specific_spec_functions[] = {{0,0}};
29
30 void
31 lang_specific_driver (int *in_argc, const char *const **in_argv,
32                       int *in_added_libraries ATTRIBUTE_UNUSED)
33 {
34   int argc = *in_argc, i;
35   const char *const *argv = *in_argv;
36
37   for (i = 1; i < argc; ++i)
38     {
39       if (!strcmp (argv[i], "-fversion"))       /* Really --version!! */
40         {
41           printf ("\
42 GNU Treelang (GCC %s)\n\
43 Copyright (C) 2005 Free Software Foundation, Inc.\n\
44 \n\
45 GNU Treelang comes with NO WARRANTY, to the extent permitted by law.\n\
46 You may redistribute copies of GNU Treelang\n\
47 under the terms of the GNU General Public License.\n\
48 For more information about these matters, see the file named COPYING\n\
49 ", version_string);
50           exit (0);
51         }
52     }
53 }
54
55 /* Called before linking.  Returns 0 on success and -1 on failure.  */
56 int
57 lang_specific_pre_link (void)   /* Not used for Treelang.  */
58 {
59   return 0;
60 }
61
62 /* Number of extra output files that lang_specific_pre_link may generate.  */
63 int lang_specific_extra_outfiles = 0;   /* Not used for Treelang.  */