[Bug fortran/43851] Add _gfortran_error_stop_numeric
--- Comment #10 from burnus at gcc dot gnu dot org 2010-07-19 13:47 --- (In reply to comment #9) There is one last improvement we can do here. Currently we are using gfc_match_init_expr. This works fine, but the error messages are worded toward initialization expressions and not stop codes. We could generalize the messages in gfc_match_init_expr or come up with a way to either signal a different message for a stop code or create a new function such as gfc_match_stopcode_expr. Is this needed? The standard essentially says that is an initialization expression is required for STOP. (To be more precises: Fortran 2003's term initialization expression has been changed to constant expression in F2008 and STOP takes constant expressions as argument.) -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43851
[Bug fortran/43851] Add _gfortran_error_stop_numeric
--- Comment #11 from jvdelisle at gcc dot gnu dot org 2010-07-20 01:07 --- Not needed. Closing. -- jvdelisle at gcc dot gnu dot org changed: What|Removed |Added Status|ASSIGNED|RESOLVED Resolution||FIXED http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43851
[Bug fortran/43851] Add _gfortran_error_stop_numeric
--- Comment #9 from jvdelisle at gcc dot gnu dot org 2010-06-06 06:10 --- There is one last improvement we can do here. Currently we are using gfc_match_init_expr. This works fine, but the error messages are worded toward initialization expressions and not stop codes. We could generalize the messages in gfc_match_init_expr or come up with a way to either signal a different message for a stop code or create a new function such as gfc_match_stopcode_expr. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43851
[Bug fortran/43851] Add _gfortran_error_stop_numeric
--- Comment #8 from jvdelisle at gcc dot gnu dot org 2010-05-23 00:00 --- Subject: Bug 43851 Author: jvdelisle Date: Sun May 23 00:00:17 2010 New Revision: 159747 URL: http://gcc.gnu.org/viewcvs?root=gccview=revrev=159747 Log: 2010-05-22 Jerry DeLisle jvdeli...@gcc.gnu.org PR fortran/43851 * match.c (gfc_match_stopcode): Use gfc_match_init_expr. Go to cleanup before returning MATCH_ERROR. Add check for scalar. Add check for default integer kind. Modified: trunk/gcc/fortran/ChangeLog trunk/gcc/fortran/match.c -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43851
[Bug fortran/43851] Add _gfortran_error_stop_numeric
--- Comment #5 from burnus at gcc dot gnu dot org 2010-05-20 07:40 --- TODO: Constraint checks are missing and partially incorrect, cf. http://gcc.gnu.org/ml/fortran/2010-05/msg00225.html -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43851
[Bug fortran/43851] Add _gfortran_error_stop_numeric
--- Comment #6 from jvdelisle at gcc dot gnu dot org 2010-05-20 13:33 --- Also have one tweak to do for blank STOP which I will fix shortly and add some test cases. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43851
[Bug fortran/43851] Add _gfortran_error_stop_numeric
--- Comment #7 from jvdelisle at gcc dot gnu dot org 2010-05-20 19:40 --- Subject: Bug 43851 Author: jvdelisle Date: Thu May 20 19:40:30 2010 New Revision: 159638 URL: http://gcc.gnu.org/viewcvs?root=gccview=revrev=159638 Log: 2010-05-20 Jerry DeLisle jvdeli...@gcc.gnu.org PR fortran/43851 * runtime/stop.c (stop_string): Make sure nothing is emitted for blank stop. Modified: trunk/libgfortran/ChangeLog trunk/libgfortran/runtime/stop.c -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43851
[Bug fortran/43851] Add _gfortran_error_stop_numeric
--- Comment #4 from jvdelisle at gcc dot gnu dot org 2010-05-20 04:44 --- Subject: Bug 43851 Author: jvdelisle Date: Thu May 20 04:44:11 2010 New Revision: 159609 URL: http://gcc.gnu.org/viewcvs?root=gccview=revrev=159609 Log: 2010-05-19 Jerry DeLisle jvdeli...@gcc.gnu.org PR fortran/43851 * runtime/stop.c (error_stop_numeric): New function and updated comment. Add declaration for stop_numeric and remove declaration for stop_string. (stop_string): Use for blank STOP. (stop_numeric): Remove use of special -1 stop code. * runtime/pause.c (do_pause): Use stop_string for blank stop. (pause_numeric): Remove use of special -1 pause code. * gfortran.map: Add new symbol to run-time library. * libgfortran.h: Move declaration for stop_string to here to make function visible for do_pause. Remove declaration for stop_numeric. 2010-05-19 Jerry DeLisle jvdeli...@gcc.gnu.org PR fortran/43851 * trans-stmt.c (gfc_trans_stop): Add generation of call to gfortran_error_stop_numeric. Fix up some whitespace. Use stop_string for blank STOP, handling a null expression. (gfc_trans_pause): Use pause_string for blank PAUSE. * trans.h: Add external function declaration for error_stop_numeric. * trans-decl.c (gfc_build_builtin_function_decls): Add the building of the declaration for the library call. Adjust whitespaces. * match.c (gfc_match_stopcode): Remove use of the actual stop code to signal no stop code. Match the expression following the stop and pass that to the translators. Remove the old use of digit matching. Add checks that the stop_code expression is INTEGER or CHARACTER, constant, and if CHARACTER, default character KIND. 2010-05-19 Jerry DeLisle jvdeli...@gcc.gnu.org PR fortran/43851 * gfortran.dg/label_1.f90: Update test. Modified: trunk/gcc/fortran/ChangeLog trunk/gcc/fortran/match.c trunk/gcc/fortran/trans-decl.c trunk/gcc/fortran/trans-stmt.c trunk/gcc/fortran/trans.h trunk/gcc/testsuite/ChangeLog trunk/gcc/testsuite/gfortran.dg/label_1.f90 trunk/libgfortran/ChangeLog trunk/libgfortran/gfortran.map trunk/libgfortran/libgfortran.h trunk/libgfortran/runtime/pause.c trunk/libgfortran/runtime/stop.c -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43851
[Bug fortran/43851] Add _gfortran_error_stop_numeric
--- Comment #3 from jvdelisle at gcc dot gnu dot org 2010-05-13 16:58 --- I have a revised patch that handles default integer and negative error codes. It is testing and I will submit when I get an opportunity. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43851
[Bug fortran/43851] Add _gfortran_error_stop_numeric
--- Comment #2 from jvdelisle at gcc dot gnu dot org 2010-05-08 13:06 --- Working on it. -- jvdelisle at gcc dot gnu dot org changed: What|Removed |Added AssignedTo|unassigned at gcc dot gnu |jvdelisle at gcc dot gnu dot |dot org |org Status|UNCONFIRMED |ASSIGNED Ever Confirmed|0 |1 Last reconfirmed|-00-00 00:00:00 |2010-05-08 13:06:11 date|| http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43851
[Bug fortran/43851] Add _gfortran_error_stop_numeric
--- Comment #1 from burnus at gcc dot gnu dot org 2010-04-22 13:30 --- Additionally, the (ERROR) STOP output should be printed to STDERR and not to STDOUT per: 8.4 STOP and ERROR STOP statements (F2008 FDIS): If any exception (cf. 14 Exceptions and IEEE arithmetic) is signaling on that image, the processor shall issue a warning indicating which exceptions are signaling; this warning shall be on the unit identified by the named constant ERROR_UNIT (13.8.2.8). It is recommended that the stop code is made available by formatted output to the same unit. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43851