toplev.c: Excise all code for the undocumented -dm option.
authorZack Weinberg <zackw@stanford.edu>
Fri, 20 Apr 2001 03:45:51 +0000 (03:45 +0000)
committerZack Weinberg <zack@gcc.gnu.org>
Fri, 20 Apr 2001 03:45:51 +0000 (03:45 +0000)
* toplev.c: Excise all code for the undocumented -dm option.
(float_signal): Call signal just once, unconditionally.

From-SVN: r41438

gcc/ChangeLog
gcc/toplev.c

index 5af147e..fdb66e0 100644 (file)
@@ -1,3 +1,8 @@
+2001-04-19  Zack Weinberg  <zackw@stanford.edu>
+
+       * toplev.c: Excise all code for the undocumented -dm option.
+       (float_signal): Call signal just once, unconditionally.
+
 2001-04-19  Geoff Keating  <geoffk@redhat.com>
 
        * fold-const.c (fold): Use first_rtl_op rather than
index 9bc3806..20205ec 100644 (file)
@@ -335,7 +335,6 @@ static void close_dump_file PARAMS ((enum dump_file_index,
 
 int rtl_dump_and_exit;
 int flag_print_asm_name;
-static int flag_print_mem;
 static int version_flag;
 static char *filename;
 enum graph_dump_types graph_dump_format;
@@ -1648,11 +1647,10 @@ float_signal (signo)
 {
   if (float_handled == 0)
     crash_signal (signo);
-#if defined (USG) || defined (hpux)
-  /* Re-enable the signal catcher.  */
-  signal (SIGFPE, float_signal);
-#endif
   float_handled = 0;
+
+  /* On System-V derived systems, we must reinstall the signal handler.
+     This is harmless on BSD-derived systems.  */
   signal (SIGFPE, float_signal);
   longjmp (float_handler, 1);
 }
@@ -4027,9 +4025,6 @@ decode_d_option (arg)
       case 'A':
        flag_debug_asm = 1;
        break;
-      case 'm':
-       flag_print_mem = 1;
-       break;
       case 'p':
        flag_print_asm_name = 1;
        break;
@@ -4940,24 +4935,6 @@ toplev_main (argc, argv)
 
   compile_file (filename);
 
-#if !defined(OS2) && !defined(VMS) && (!defined(_WIN32) || defined (__CYGWIN__)) && !defined(__INTERIX)
-  if (flag_print_mem)
-    {
-      char *lim = (char *) sbrk (0);
-
-      fnotice (stderr, "Data size %ld.\n", (long) (lim - (char *) &environ));
-      fflush (stderr);
-
-#ifndef __MSDOS__
-#ifdef USG
-      system ("ps -l 1>&2");
-#else /* not USG  */
-      system ("ps v");
-#endif /* not USG  */
-#endif
-    }
-#endif /* ! OS2 && ! VMS && (! _WIN32 || CYGWIN) && ! __INTERIX  */
-
   if (errorcount)
     return (FATAL_EXIT_CODE);
   if (sorrycount)