diff options
author | YamaArashi <shadow962@live.com> | 2016-02-13 14:04:10 -0800 |
---|---|---|
committer | YamaArashi <shadow962@live.com> | 2016-02-13 14:04:10 -0800 |
commit | 47d5ab74c312567d17cd5df362d73d36f53eb0c2 (patch) | |
tree | 8d5fab1cade86a10154b874da6786121e35caa8d /gcc/toplev.c | |
parent | 87926b4bcc3046ac85fabda09178e9bf50dd8381 (diff) |
rely on configure less
Diffstat (limited to 'gcc/toplev.c')
-rwxr-xr-x | gcc/toplev.c | 34 |
1 files changed, 0 insertions, 34 deletions
diff --git a/gcc/toplev.c b/gcc/toplev.c index d8e54cd..472df7c 100755 --- a/gcc/toplev.c +++ b/gcc/toplev.c @@ -4250,7 +4250,6 @@ main (argc, argv) { register int i; char *filename = 0; - int flag_print_mem = 0; int version_flag = 0; char *p; @@ -4267,18 +4266,6 @@ main (argc, argv) --p; progname = p; -#if defined (RLIMIT_STACK) && defined (HAVE_GETRLIMIT) && defined (HAVE_SETRLIMIT) - /* Get rid of any avoidable limit on stack size. */ - { - struct rlimit rlim; - - /* Set the stack limit huge so that alloca does not fail. */ - getrlimit (RLIMIT_STACK, &rlim); - rlim.rlim_cur = rlim.rlim_max; - setrlimit (RLIMIT_STACK, &rlim); - } -#endif - signal (SIGFPE, float_signal); #ifdef SIGPIPE @@ -4490,9 +4477,6 @@ main (argc, argv) case 'L': loop_dump = 1; break; - case 'm': - flag_print_mem = 1; - break; #ifdef MACHINE_DEPENDENT_REORG case 'M': mach_dep_reorg_dump = 1; @@ -4916,24 +4900,6 @@ main (argc, argv) compile_file (filename); -#if !defined(OS2) && (!defined(_WIN32) || defined (__CYGWIN__)) - if (flag_print_mem) - { - char *lim = (char *) sbrk (0); - - fprintf (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 && (! _WIN32 || CYGWIN) */ - if (errorcount) exit (FATAL_EXIT_CODE); if (sorrycount) |