aboutsummaryrefslogtreecommitdiff
path: root/gcc/toplev.c
diff options
context:
space:
mode:
authorZack Weinberg <zackw@stanford.edu>2001-04-20 03:45:51 +0000
committerZack Weinberg <zack@gcc.gnu.org>2001-04-20 03:45:51 +0000
commit4000fada38a6497218c7930152e25a1d9da4e1de (patch)
treeb3f30cbb39e94d8ac3bec7f609c6aa80a6ffb274 /gcc/toplev.c
parentdea8be3e9fea111391e7710c41cff0ce6c8b6b05 (diff)
downloadgcc-4000fada38a6497218c7930152e25a1d9da4e1de.zip
gcc-4000fada38a6497218c7930152e25a1d9da4e1de.tar.gz
gcc-4000fada38a6497218c7930152e25a1d9da4e1de.tar.bz2
toplev.c: Excise all code for the undocumented -dm option.
* toplev.c: Excise all code for the undocumented -dm option. (float_signal): Call signal just once, unconditionally. From-SVN: r41438
Diffstat (limited to 'gcc/toplev.c')
-rw-r--r--gcc/toplev.c29
1 files changed, 3 insertions, 26 deletions
diff --git a/gcc/toplev.c b/gcc/toplev.c
index 9bc3806..20205ec 100644
--- a/gcc/toplev.c
+++ b/gcc/toplev.c
@@ -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)