1 /* Specific flags and argument handling of the Treelang front-end.
2 Copyright (C) 2005, 2006, 2007 Free Software Foundation, Inc.
4 This file is part of GCC.
6 GCC 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 3, or (at your option)
11 GCC 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.
16 You should have received a copy of the GNU General Public License
17 along with GNU CC; see the file COPYING3. If not see
18 <http://www.gnu.org/licenses/>. */
24 #include "coretypes.h"
28 lang_specific_driver (int *in_argc
, const char *const **in_argv
,
29 int *in_added_libraries ATTRIBUTE_UNUSED
)
31 int argc
= *in_argc
, i
;
32 const char *const *argv
= *in_argv
;
34 for (i
= 1; i
< argc
; ++i
)
36 if (!strcmp (argv
[i
], "-fversion")) /* Really --version!! */
39 GNU Treelang (GCC %s)\n\
40 Copyright (C) 2006 Free Software Foundation, Inc.\n\
42 GNU Treelang comes with NO WARRANTY, to the extent permitted by law.\n\
43 You may redistribute copies of GNU Treelang\n\
44 under the terms of the GNU General Public License.\n\
45 For more information about these matters, see the file named COPYING\n\
52 /* Called before linking. Returns 0 on success and -1 on failure. */
54 lang_specific_pre_link (void) /* Not used for Treelang. */
59 /* Number of extra output files that lang_specific_pre_link may generate. */
60 int lang_specific_extra_outfiles
= 0; /* Not used for Treelang. */