Go to file
Tobias Schlüter d4fa05b90d re PR fortran/13702 (When preprocessing Fortran files (.F, .F90 and .F95) cpp should emit line numbers.)
PR fortran/13702
(Port from g95)
* gfortran.h (gfc_linebuf): New typedef.
(linebuf): Remove.
(gfc_file): Revamped, use new gfc_linebuf.
(locus): Revamped, use new types.
(gfc_current_file): Remove.
(gfc_current_form, gfc_source_file): New global variables.
* match.c (gfc_match_space, gfc_match_strings): Use
gfc_current_form to find source form.
* module.c (gfc_dump_module): Use gfc_source_file when printing
module header.
* error.c (show_locus, show_loci) Use new data structures to print
locus.
* scanner.c (first_file, first_duplicated_file, gfc_current_file):
Remove.
(file_head, current_file, gfc_current_form, line_head, line_tail,
gfc_current_locus1, gfc_source_file): New global variables.
(gfc_scanner_init1): Set new global variables.
(gfc_scanner_done1): Free new data structures.
(gfc_current_locus): Return pointer to gfc_current_locus1.
(gfc_set_locus): Set gfc_current_locus1.
(gfc_at_eof): Set new variables.
(gfc_at_bol, gfc_at_eol, gfc_advance_line, gfc_next_char): Adapt
to new locus structure.
(gfc_check_include): Remove.
(skip_free_comments, skip_fixed_comments): Use gfc_current_locus1.
(gfc_skip_comments): Use gfc_current_form, find locus with
gfc_current_locus1.
(gfc_next_char): Use gfc_current_form.
(gfc_peek_char, gfc_gobble_whitespace): Use gfc_current_locus1.
(load_line): Use gfc_current_form. Recognize ^Z as EOF. Fix
comment formatting.
(get_file): New function.
(preprocessor_line, include_line): New functions.
(load_file): Move down, rewrite to match new data structures.
(gfc_new_file): Rewrite to match new data structures.
* parse.c (next_statement): Remove code which is now useless. Use
gfc_source_form and gfc_source_file where appropriate.
* trans-decl.c (gfc_get_label_decl): adapt to new data structures
when determining locus of frontend code.
* trans-io.c (set_error_locus): Same.
* trans.c (gfc_get_backend_locus, gfc_set_backend_locus): Likewise.
* lang-specs.h (@f77-cpp-input, @f95-cpp-input): Remove '-P' from
preprocessor flags.
(all): Add missing initializers.

From-SVN: r81888
2004-05-15 19:31:32 +02:00
boehm-gc
config acx.m4: Fix fastcompare support for new-bootstrap. 2004-04-29 07:40:05 +00:00
contrib * gennews: Update for GCC 3.4. 2004-05-15 10:50:58 +01:00
fastjar
gcc re PR fortran/13702 (When preprocessing Fortran files (.F, .F90 and .F95) cpp should emit line numbers.) 2004-05-15 19:31:32 +02:00
include Merge tree-ssa-20020619-branch into mainline. 2004-05-13 02:41:07 -04:00
INSTALL
intl
libada Makefile.in: Put back merge of some targets to avoid code duplication. 2004-04-26 16:52:20 +02:00
libbanshee Merge tree-ssa-20020619-branch into mainline. 2004-05-13 02:41:07 -04:00
libf2c
libffi Bug 15093 2004-04-26 22:41:45 -07:00
libgfortran re PR libfortran/15149 (problem computing Pi) 2004-05-14 12:21:22 +00:00
libiberty gcc.c (DELETE_IF_ORDINARY): New macro default definition. 2004-04-29 15:28:42 +00:00
libjava XGraphics.java (drawImage): Use XOffScreenImage', not XGraphicsConfiguration.XOffScreenImage'. 2004-05-14 22:17:44 +00:00
libmudflap Merge tree-ssa-20020619-branch into mainline. 2004-05-13 02:41:07 -04:00
libobjc archive.c (objc_read_class): Initialize class_name. 2004-05-13 12:01:04 -07:00
libstdc++-v3 std_bitset.h: Trivial formatting fixes. 2004-05-15 11:43:03 +00:00
maintainer-scripts update_web_docs: Also remove old .gz files from subdirectories on the 15th of the month. 2004-05-13 11:30:28 +01:00
zlib
.cvsignore
ABOUT-NLS
ChangeLog MAINTAINERS (Write After Approval): Add myself. 2004-05-13 12:36:36 +02:00
ChangeLog.tree-ssa Merge tree-ssa-20020619-branch into mainline. 2004-05-13 02:41:07 -04:00
compile
config-ml.in
config.guess
config.if
config.rpath
config.sub
configure Merge tree-ssa-20020619-branch into mainline. 2004-05-13 02:41:07 -04:00
configure.in Merge tree-ssa-20020619-branch into mainline. 2004-05-13 02:41:07 -04:00
COPYING
COPYING.LIB
depcomp Merge tree-ssa-20020619-branch into mainline. 2004-05-13 02:41:07 -04:00
install-sh
libtool.m4 Patch from Robert Millan. 2004-04-26 23:14:30 -07:00
ltcf-c.sh Patch from Robert Millan. 2004-04-26 23:14:30 -07:00
ltcf-cxx.sh Patch from Robert Millan. 2004-04-26 23:14:30 -07:00
ltcf-gcj.sh Patch from Robert Millan. 2004-04-26 23:14:30 -07:00
ltconfig Patch from Robert Millan. 2004-04-26 23:14:30 -07:00
ltmain.sh
MAINTAINERS MAINTAINERS (Write After Approval): Add myself. 2004-05-13 12:36:36 +02:00
Makefile.def Merge tree-ssa-20020619-branch into mainline. 2004-05-13 02:41:07 -04:00
Makefile.in Merge tree-ssa-20020619-branch into mainline. 2004-05-13 02:41:07 -04:00
Makefile.tpl Merge tree-ssa-20020619-branch into mainline. 2004-05-13 02:41:07 -04:00
missing
mkdep
mkinstalldirs
move-if-change
README
README.SCO
symlink-tree
ylwrap

This directory contains the GNU Compiler Collection (GCC).

The GNU Compiler Collection is free software.  See the file COPYING
for copying permission.  The manuals, and some of the runtime
libraries, are under different terms; see the individual source files
for details.

The directory INSTALL contains copies of the installation information
as HTML and plain text.  The source of this information is
gcc/doc/install.texi.  The installation information includes details
of what is included in the GCC sources and what files GCC installs.

See the file gcc/doc/gcc.texi (together with other files that it
includes) for usage and porting information.  An online readable
version of the manual is in the files gcc/doc/gcc.info*.

See http://gcc.gnu.org/bugs.html for how to report bugs usefully.