Summary: | [4.1 only] F95 and F2003 differ on list-directed output for 0.0 | ||
---|---|---|---|
Product: | gcc | Reporter: | Francois-Xavier Coudert <fxcoudert> |
Component: | libfortran | Assignee: | Francois-Xavier Coudert <fxcoudert> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | gcc-bugs |
Priority: | P3 | Keywords: | patch |
Version: | 4.2.0 | ||
Target Milestone: | 4.1.0 | ||
URL: | http://gcc.gnu.org/ml/fortran/2006-02/msg00110.html | ||
Host: | Target: | ||
Build: | Known to work: | ||
Known to fail: | Last reconfirmed: | 2006-01-29 22:06:15 | |
Bug Depends on: | |||
Bug Blocks: | 20585 |
Description
Francois-Xavier Coudert
2005-12-15 09:13:18 UTC
Confirmed. I will start on this. Sorry to interfere, Jerry, but I had some time and decided to write that patch. If you already had a patch for this, I'd be interested in knowing the approach you chose. (In reply to comment #3) > Sorry to interfere, Jerry, but I had some time and decided to write that patch. > If you already had a patch for this, I'd be interested in knowing the approach > you chose. > Not a problem, I only had a first look at this and calculate G format caught my attention, that was as far as I got. I was going to have to study the -std flag stuff to see where to go there. Glad to see you in action! Subject: Bug 25425 Author: fxcoudert Date: Wed Feb 8 20:54:14 2006 New Revision: 110769 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=110769 Log: PR libfortran/25425 * trans-decl.c (gfc_generate_function_code): Add new argument, pedantic, to set_std call. * libgfortran.h: Add pedantic field to compile_options struct. * io/write.c (calculate_G_format): Depending on the standard, choose E or F format for list-directed output of 0.0. * runtime/error.c (notify_std): Make warning and error dependent on pedanticity. * runtime/compile_options.c (set_std): Use new pedantic argument. Modified: trunk/gcc/fortran/ChangeLog trunk/gcc/fortran/trans-decl.c trunk/libgfortran/ChangeLog trunk/libgfortran/io/write.c trunk/libgfortran/libgfortran.h trunk/libgfortran/runtime/compile_options.c trunk/libgfortran/runtime/error.c Subject: Bug 25425 Author: fxcoudert Date: Tue Feb 14 14:50:40 2006 New Revision: 110973 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=110973 Log: PR libfortran/25425 * trans-decl.c (gfc_generate_function_code): Add new argument, pedantic, to set_std call. * libgfortran.h: Add pedantic field to compile_options struct. * io/write.c (calculate_G_format): Depending on the standard, choose E or F format for list-directed output of 0.0. * runtime/error.c (notify_std): Make warning and error dependent on pedanticity. * runtime/compile_options.c (set_std): Use new pedantic argument. Modified: branches/gcc-4_1-branch/gcc/fortran/ChangeLog branches/gcc-4_1-branch/gcc/fortran/trans-decl.c branches/gcc-4_1-branch/libgfortran/ChangeLog branches/gcc-4_1-branch/libgfortran/io/write.c branches/gcc-4_1-branch/libgfortran/libgfortran.h branches/gcc-4_1-branch/libgfortran/runtime/compile_options.c branches/gcc-4_1-branch/libgfortran/runtime/error.c Fixed on 4.2 and 4.1. |