[Bug fortran/25324] Wrong DW_TAG_compile_unit generated when compiling preprocessed fortran code
--- Comment #2 from jakub at gcc dot gnu dot org 2006-01-27 20:02 --- Subject: Bug 25324 Author: jakub Date: Fri Jan 27 20:01:55 2006 New Revision: 110304 URL: http://gcc.gnu.org/viewcvs?root=gccview=revrev=110304 Log: PR fortran/25324 * Make-lang.in (fortran/scanner.o): Depend on toplev.h. * lang.opt (fpreprocessed): New option. * scanner.c: Include toplev.h. (gfc_src_file, gfc_src_preprocessor_lines): New variables. (preprocessor_line): Unescape filename if there were any backslashes. (load_file): If initial and gfc_src_file is not NULL, use it rather than opening the file. If gfc_src_preprocessor_lines has non-NULL elements, pass it to preprocessor_line. (unescape_filename, gfc_read_orig_filename): New functions. * gfortran.h (gfc_option_t): Add flag_preprocessed. (gfc_read_orig_filename): New prototype. * options.c (gfc_init_options): Clear flag_preprocessed. (gfc_post_options): If flag_preprocessed, call gfc_read_orig_filename. (gfc_handle_option): Handle OPT_fpreprocessed. * lang-specs.h: Pass -fpreprocessed to f951 if preprocessing sources. Modified: trunk/gcc/fortran/ChangeLog trunk/gcc/fortran/Make-lang.in trunk/gcc/fortran/gfortran.h trunk/gcc/fortran/lang-specs.h trunk/gcc/fortran/lang.opt trunk/gcc/fortran/options.c trunk/gcc/fortran/scanner.c -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=25324
[Bug fortran/25324] Wrong DW_TAG_compile_unit generated when compiling preprocessed fortran code
--- Comment #3 from jakub at gcc dot gnu dot org 2006-01-27 20:04 --- Subject: Bug 25324 Author: jakub Date: Fri Jan 27 20:03:59 2006 New Revision: 110305 URL: http://gcc.gnu.org/viewcvs?root=gccview=revrev=110305 Log: PR fortran/25324 * Make-lang.in (fortran/scanner.o): Depend on toplev.h. * lang.opt (fpreprocessed): New option. * scanner.c: Include toplev.h. (gfc_src_file, gfc_src_preprocessor_lines): New variables. (preprocessor_line): Unescape filename if there were any backslashes. (load_file): If initial and gfc_src_file is not NULL, use it rather than opening the file. If gfc_src_preprocessor_lines has non-NULL elements, pass it to preprocessor_line. (unescape_filename, gfc_read_orig_filename): New functions. * gfortran.h (gfc_option_t): Add flag_preprocessed. (gfc_read_orig_filename): New prototype. * options.c (gfc_init_options): Clear flag_preprocessed. (gfc_post_options): If flag_preprocessed, call gfc_read_orig_filename. (gfc_handle_option): Handle OPT_fpreprocessed. * lang-specs.h: Pass -fpreprocessed to f951 if preprocessing sources. Modified: branches/gcc-4_1-branch/gcc/fortran/ChangeLog branches/gcc-4_1-branch/gcc/fortran/Make-lang.in branches/gcc-4_1-branch/gcc/fortran/gfortran.h branches/gcc-4_1-branch/gcc/fortran/lang-specs.h branches/gcc-4_1-branch/gcc/fortran/lang.opt branches/gcc-4_1-branch/gcc/fortran/options.c branches/gcc-4_1-branch/gcc/fortran/scanner.c -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=25324
[Bug fortran/25324] Wrong DW_TAG_compile_unit generated when compiling preprocessed fortran code
--- Comment #4 from pinskia at gcc dot gnu dot org 2006-01-27 23:10 --- Fixed in 4.1.0. -- pinskia at gcc dot gnu dot org changed: What|Removed |Added Status|ASSIGNED|RESOLVED Resolution||FIXED Target Milestone|--- |4.1.0 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=25324
[Bug fortran/25324] Wrong DW_TAG_compile_unit generated when compiling preprocessed fortran code
-- jakub at gcc dot gnu dot org changed: What|Removed |Added AssignedTo|unassigned at gcc dot gnu |jakub at gcc dot gnu dot org |dot org | URL||http://gcc.gnu.org/ml/gcc- ||patches/2005- ||12/msg01957.html Status|NEW |ASSIGNED Last reconfirmed|2005-12-09 14:17:28 |2005-12-31 19:34:30 date|| http://gcc.gnu.org/bugzilla/show_bug.cgi?id=25324
[Bug fortran/25324] Wrong DW_TAG_compile_unit generated when compiling preprocessed fortran code
--- Comment #1 from pinskia at gcc dot gnu dot org 2005-12-09 14:17 --- .ascii /tmp/ccN3iGJ2.f\0 # DW_AT_name .ascii /tmp/ccyIGO76.f\0 # DW_AT_name Confirmed. This is a front-end issue. I thought I had saw a dup of this bug but I cannot find it. -- pinskia at gcc dot gnu dot org changed: What|Removed |Added Status|UNCONFIRMED |NEW Component|debug |fortran Ever Confirmed|0 |1 Keywords||wrong-debug Last reconfirmed|-00-00 00:00:00 |2005-12-09 14:17:28 date|| http://gcc.gnu.org/bugzilla/show_bug.cgi?id=25324