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/fortran/lang.opt | 83 ++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 83 insertions(+) (limited to 'gcc/fortran/lang.opt') diff --git a/gcc/fortran/lang.opt b/gcc/fortran/lang.opt index a376192..f0f6c6a 100644 --- a/gcc/fortran/lang.opt +++ b/gcc/fortran/lang.opt @@ -25,6 +25,29 @@ Language Fortran +A +Fortran Joined Separate +; Documented in C + +C +Fortran +; Documented in C + +CC +Fortran +; Documented in C + +D +Fortran Joined Separate +; Documented in C + +E +Fortran Undocumented + +H +Fortran +; Documented in C + I Fortran Joined Separate -I Add a directory for INCLUDE and MODULE searching @@ -33,6 +56,14 @@ J Fortran Joined Separate -J Put MODULE files in 'directory' +P +Fortran +; Documented in C + +U +Fortran Joined Separate +; Documented in C + Wall Fortran ; Documented in C @@ -81,6 +112,18 @@ Wunderflow Fortran Warning Warn about underflow of numerical constant expressions +cpp +Fortran Joined Separate Negative(nocpp) +Enable preprocessing + +nocpp +Fortran Negative(cpp) +Disable preprocessing + +d +Fortran Joined +-d[DIMNU] Dump details about macro names and definitions during preprocessing + fall-intrinsics Fortran RejectNegative All intrinsics procedures are available regardless of selected standard @@ -289,6 +332,38 @@ funderscoring Fortran Append underscores to externally visible names +fworking-directory +Fortran +; Documented in C + +imultilib +Fortran Joined Separate +; Documented in C + +iprefix +Fortran Joined Separate +; Documented in C + +iquote +Fortran Joined Separate +; Documented in C + +isysroot +Fortran Joined Separate +; Documented in C + +isystem +Fortran Joined Separate +; Documented in C + +nostdinc +Fortran +; Documented in C + +o +Fortran Joined Separate +; Documented in common.opt + static-libgfortran Fortran Statically link the GNU Fortran helper library (libgfortran) @@ -313,4 +388,12 @@ std=legacy Fortran Accept extensions to support legacy code +undef +Fortran +; Documented in C + +v +Fortran +; Documented in C + ; This comment is to ensure we retain the blank line above. -- cgit v1.1