From 670637ee80cf6a86884d3ac1317992e991482a1e Mon Sep 17 00:00:00 2001 From: Daniel Franke Date: Sun, 25 May 2008 18:37:41 -0400 Subject: re PR fortran/18428 (No preprocessing option -cpp for gfortran) gcc: 2008-05-26 Daniel Franke PR fortran/18428 * c.opt: Removed undocumented option '-lang-fortran'. * c-common.h: Removed global variable 'lang_fortran'. * c-opts.c (c_common_handle_option): Removed code to handle option '-lang-fortran'. Updated includes. * c-cppbuiltin.c (c_cpp_builtins): Removed conditional definition of '__GFORTRAN__'. (define__GNUC__): Reimplemented to use BASEVER and cpp_define_formatted. (builtin_define_with_value_n): Removed. * c-incpath.h: Renamed to ... * incpath.h: ... this. * c-incpath.c: Renamed to ... * incpath.c: ... this. Updated includes. * fix-header.c: Updated includes. * Makefile.in: Replaced c-incpath.[ch] by incpath.[ch]. (c-cppbuiltin.o): Added dependency on and definition of BASEVER. (OBJ-archive): Added cppdefault.o, incpath.o and prefix.o. gcc/cp: 2008-05-26 Daniel Franke * Makefile.in: Adjusted dependencies on c-incpath.o. gcc/fortran: 2008-05-26 Daniel Franke PR fortran/18428 * lang.opt (A, C, CC, D, E, H, P, U, cpp, d, fworking-directory, imultilib, iprefix, iquote, isysroot, isystem, nocpp, nostdinc, o, undef, v): New options. * options.c (gfc_init_options): Also initialize preprocessor options. (gfc_post_options): Also handle post-initialization of preprocessor options. (gfc_handle_option): Check if option is a preprocessor option. If yes, let gfc_cpp_handle_option() handle the option. * lang-specs.h: Reorganized to handle new options. * scanner.c (gfc_new_file): Read temporary file instead of input source if preprocessing is enabled. * f95-lang.c (gfc_init): Initialize preprocessor. (gfc_finish): Clean up preprocessor. * cpp.c: New. * cpp.h: New. * Make-lang.in: Added new objects and dependencies. * gfortran.texi: Updated section "Preprocessing and conditional compilation". * invoke.texi: Added new section "Preprocessing Options", listed and documented the preprocessing options handled by gfortran. From-SVN: r135882 --- gcc/c-incpath.h | 33 --------------------------------- 1 file changed, 33 deletions(-) delete mode 100644 gcc/c-incpath.h (limited to 'gcc/c-incpath.h') diff --git a/gcc/c-incpath.h b/gcc/c-incpath.h deleted file mode 100644 index d19b928..0000000 --- a/gcc/c-incpath.h +++ /dev/null @@ -1,33 +0,0 @@ -/* Set up combined include path for the preprocessor. - Copyright (C) 2003, 2004, 2005, 2006, 2007 Free Software Foundation, Inc. - - This program 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 3, or (at your option) any - later version. - - This program 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 this program; see the file COPYING3. If not see - . */ - -extern void split_quote_chain (void); -extern void add_path (char *, int, int, bool); -extern void register_include_chains (cpp_reader *, const char *, - const char *, const char *, - int, int, int); -extern void add_cpp_dir_path (struct cpp_dir *, int); - -struct target_c_incpath_s { - /* Do extra includes processing. STDINC is false iff -nostdinc was given. */ - void (*extra_pre_includes) (const char *, const char *, int); - void (*extra_includes) (const char *, const char *, int); -}; - -extern struct target_c_incpath_s target_c_incpath; - -enum { QUOTE = 0, BRACKET, SYSTEM, AFTER }; -- cgit v1.1