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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-old/] [gcc-4.2.2/] [gcc/] [treelang/] [spec.c] - Diff between revs 154 and 816

Only display areas with differences | Details | Blame | View Log

Rev 154 Rev 816
/* Specific flags and argument handling of the Treelang front-end.
/* Specific flags and argument handling of the Treelang front-end.
   Copyright (C) 2005, 2006, 2007 Free Software Foundation, Inc.
   Copyright (C) 2005, 2006, 2007 Free Software Foundation, Inc.
 
 
This file is part of GCC.
This file is part of GCC.
 
 
GCC is free software; you can redistribute it and/or modify
GCC is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 3, or (at your option)
the Free Software Foundation; either version 3, or (at your option)
any later version.
any later version.
 
 
GCC is distributed in the hope that it will be useful,
GCC is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.
GNU General Public License for more details.
 
 
You should have received a copy of the GNU General Public License
You should have received a copy of the GNU General Public License
along with GCC; see the file COPYING3.  If not see
along with GCC; see the file COPYING3.  If not see
<http://www.gnu.org/licenses/>.  */
<http://www.gnu.org/licenses/>.  */
 
 
#include "config.h"
#include "config.h"
#include "system.h"
#include "system.h"
#include "gcc.h"
#include "gcc.h"
 
 
#include "coretypes.h"
#include "coretypes.h"
#include "tm.h"
#include "tm.h"
 
 
void
void
lang_specific_driver (int *in_argc, const char *const **in_argv,
lang_specific_driver (int *in_argc, const char *const **in_argv,
                      int *in_added_libraries ATTRIBUTE_UNUSED)
                      int *in_added_libraries ATTRIBUTE_UNUSED)
{
{
  int argc = *in_argc, i;
  int argc = *in_argc, i;
  const char *const *argv = *in_argv;
  const char *const *argv = *in_argv;
 
 
  for (i = 1; i < argc; ++i)
  for (i = 1; i < argc; ++i)
    {
    {
      if (!strcmp (argv[i], "-fversion"))       /* Really --version!! */
      if (!strcmp (argv[i], "-fversion"))       /* Really --version!! */
        {
        {
          printf ("\
          printf ("\
GNU Treelang (GCC %s)\n\
GNU Treelang (GCC %s)\n\
Copyright (C) 2006 Free Software Foundation, Inc.\n\
Copyright (C) 2006 Free Software Foundation, Inc.\n\
\n\
\n\
GNU Treelang comes with NO WARRANTY, to the extent permitted by law.\n\
GNU Treelang comes with NO WARRANTY, to the extent permitted by law.\n\
You may redistribute copies of GNU Treelang\n\
You may redistribute copies of GNU Treelang\n\
under the terms of the GNU General Public License.\n\
under the terms of the GNU General Public License.\n\
For more information about these matters, see the file named COPYING\n\
For more information about these matters, see the file named COPYING\n\
", version_string);
", version_string);
          exit (0);
          exit (0);
        }
        }
    }
    }
}
}
 
 
/* Called before linking.  Returns 0 on success and -1 on failure.  */
/* Called before linking.  Returns 0 on success and -1 on failure.  */
int
int
lang_specific_pre_link (void)   /* Not used for Treelang.  */
lang_specific_pre_link (void)   /* Not used for Treelang.  */
{
{
  return 0;
  return 0;
}
}
 
 
/* Number of extra output files that lang_specific_pre_link may generate.  */
/* Number of extra output files that lang_specific_pre_link may generate.  */
int lang_specific_extra_outfiles = 0;    /* Not used for Treelang.  */
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.