This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
Other format: | [Raw text] |
Hi, This patch creates a very simple treelang driver. It now installs the driver as gtreelang instead of installing tree1 in the bin directory. This was bootstrapped an regtested on powerpc-linux. I also verified manually that the driver works. I intend to backport this fix to the 4.0 tree soon enough. -- Thanks, Jim http://www.student.cs.uwaterloo.ca/~ja2morri/ http://phython.blogspot.com http://open.nit.ca/wiki/?page=jim
Attachment:
spec.diff
Description: Text document
/* Specific flags and argument handling of the Treelang front-end. Copyright (C) 2005 Free Software Foundation, Inc. This file is part of GCC. GNU CC is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2, or (at your option) any later version. GNU CC is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with GNU CC; see the file COPYING. If not, write to the Free Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ #include "config.h" #include "system.h" #include "gcc.h" #include "coretypes.h" #include "tm.h" const struct spec_function lang_specific_spec_functions[] = {{0,0}}; void lang_specific_driver (int *in_argc, const char *const **in_argv, int *in_added_libraries ATTRIBUTE_UNUSED) { int argc = *in_argc, i; const char *const *argv = *in_argv; for (i = 1; i < argc; ++i) { if (!strcmp (argv[i], "-fversion")) /* Really --version!! */ { printf ("\ GNU Treelang (GCC %s)\n\ Copyright (C) 2005 Free Software Foundation, Inc.\n\ \n\ GNU Treelang comes with NO WARRANTY, to the extent permitted by law.\n\ You may redistribute copies of GNU Treelang\n\ under the terms of the GNU General Public License.\n\ For more information about these matters, see the file named COPYING\n\ ", version_string); exit (0); } } } /* Called before linking. Returns 0 on success and -1 on failure. */ int lang_specific_pre_link (void) /* Not used for Treelang. */ { return 0; } /* Number of extra output files that lang_specific_pre_link may generate. */ int lang_specific_extra_outfiles = 0; /* Not used for Treelang. */
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |