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