From patchwork Sat May 14 13:47:27 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: [Fortran] Follow up patch to the backtrace changes Date: Sat, 14 May 2011 03:47:27 -0000 From: Tobias Burnus X-Patchwork-Id: 95557 Message-Id: <4DCE87EF.5030405@net-b.de> To: gcc patches , gfortran This patch re-adds the option -f(no-)backtrace as Ignored to improve backward compatibility. Additionally, for ERROR STOP, no backtrace is printed any more. Build on x86-64-linux. OK for the trunk? Tobias 2011-05-14 Tobias Burnus * lang.opt (fdump-core): Re-add as ignored option for backward compatibility. 2011-05-14 Tobias Burnus * runtime/stop.c (error_stop_string, error_stop_numeric): Do not backtrace for ERROR STOP. diff --git a/gcc/fortran/lang.opt b/gcc/fortran/lang.opt index a056c5c..1a3d073 100644 --- a/gcc/fortran/lang.opt +++ b/gcc/fortran/lang.opt @@ -366,6 +366,10 @@ fdollar-ok Fortran Allow dollar signs in entity names +fdump-core +Fortran Ignore +Does nothing. Preserved for backward compatibility. + fdump-fortran-original Fortran Display the code tree after parsing diff --git a/libgfortran/runtime/stop.c b/libgfortran/runtime/stop.c index 2efe239..4c3a0f9 100644 --- a/libgfortran/runtime/stop.c +++ b/libgfortran/runtime/stop.c @@ -92,7 +92,7 @@ error_stop_string (const char *string, GFC_INTEGER_4 len) (void) sizeof (w); /* Avoid compiler warning about not using w. */ estr_write ("\n"); - sys_abort (); + exit (1); } @@ -106,8 +106,5 @@ void error_stop_numeric (GFC_INTEGER_4 code) { st_printf ("ERROR STOP %d\n", (int) code); - if (options.backtrace == 1 - || (options.backtrace == -1 && compile_options.backtrace == 1)) - show_backtrace (); exit (code); }