OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-old/] [gcc-4.2.2/] [gcc/] [treelang/] [spec.c] - Blame information for rev 819

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 38 julius
/* Specific flags and argument handling of the Treelang front-end.
2
   Copyright (C) 2005, 2006, 2007 Free Software Foundation, Inc.
3
 
4
This file is part of GCC.
5
 
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)
9
any later version.
10
 
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.
15
 
16
You should have received a copy of the GNU General Public License
17
along with GCC; see the file COPYING3.  If not see
18
<http://www.gnu.org/licenses/>.  */
19
 
20
#include "config.h"
21
#include "system.h"
22
#include "gcc.h"
23
 
24
#include "coretypes.h"
25
#include "tm.h"
26
 
27
void
28
lang_specific_driver (int *in_argc, const char *const **in_argv,
29
                      int *in_added_libraries ATTRIBUTE_UNUSED)
30
{
31
  int argc = *in_argc, i;
32
  const char *const *argv = *in_argv;
33
 
34
  for (i = 1; i < argc; ++i)
35
    {
36
      if (!strcmp (argv[i], "-fversion"))       /* Really --version!! */
37
        {
38
          printf ("\
39
GNU Treelang (GCC %s)\n\
40
Copyright (C) 2006 Free Software Foundation, Inc.\n\
41
\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\
46
", version_string);
47
          exit (0);
48
        }
49
    }
50
}
51
 
52
/* Called before linking.  Returns 0 on success and -1 on failure.  */
53
int
54
lang_specific_pre_link (void)   /* Not used for Treelang.  */
55
{
56
  return 0;
57
}
58
 
59
/* Number of extra output files that lang_specific_pre_link may generate.  */
60
int lang_specific_extra_outfiles = 0;    /* Not used for Treelang.  */

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.