OSDN Git Service

gcc:
authordfranke <dfranke@138bc75d-0d04-0410-961f-82ee72b054a4>
Sun, 25 May 2008 22:37:41 +0000 (22:37 +0000)
committerdfranke <dfranke@138bc75d-0d04-0410-961f-82ee72b054a4>
Sun, 25 May 2008 22:37:41 +0000 (22:37 +0000)
commit2ecc6bc5131880ba6c464152d56fb1a301cc2d4f
tree9d6609dea095d4ea5b2bebb6f1ba50daa94929f5
parenteba15a754cd9bb1181e8ae6bec719f799f77e8ff
gcc:
2008-05-26  Daniel Franke  <franke.daniel@gmail.com>

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  <franke.daniel@gmail.com>

* Makefile.in: Adjusted dependencies on c-incpath.o.

gcc/fortran:
2008-05-26  Daniel Franke  <franke.daniel@gmail.com>

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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@135882 138bc75d-0d04-0410-961f-82ee72b054a4
22 files changed:
gcc/ChangeLog
gcc/Makefile.in
gcc/c-common.h
gcc/c-cppbuiltin.c
gcc/c-opts.c
gcc/c.opt
gcc/cp/ChangeLog
gcc/cp/Make-lang.in
gcc/fix-header.c
gcc/fortran/ChangeLog
gcc/fortran/Make-lang.in
gcc/fortran/cpp.c [new file with mode: 0644]
gcc/fortran/cpp.h [new file with mode: 0644]
gcc/fortran/f95-lang.c
gcc/fortran/gfortran.texi
gcc/fortran/invoke.texi
gcc/fortran/lang-specs.h
gcc/fortran/lang.opt
gcc/fortran/options.c
gcc/fortran/scanner.c
gcc/incpath.c [moved from gcc/c-incpath.c with 99% similarity]
gcc/incpath.h [moved from gcc/c-incpath.h with 100% similarity]