aboutsummaryrefslogtreecommitdiff
path: root/gas/as.c
diff options
context:
space:
mode:
authorFred Fish <fnf@specifix.com>1995-07-05 08:04:28 +0000
committerFred Fish <fnf@specifix.com>1995-07-05 08:04:28 +0000
commite63c594dd01aa39ff3b6cd2c7ce7ca725c4f210f (patch)
tree2889b3f502445a17ec8a55d8ac6b5ddda06eeae0 /gas/as.c
parenteac6290c7e7d08c683c379a4e1e0610418328208 (diff)
downloadgdb-e63c594dd01aa39ff3b6cd2c7ce7ca725c4f210f.zip
gdb-e63c594dd01aa39ff3b6cd2c7ce7ca725c4f210f.tar.gz
gdb-e63c594dd01aa39ff3b6cd2c7ce7ca725c4f210f.tar.bz2
* as.c (main): Only use sbrk when HAVE_SBRK defined.
* configure.in: Add test for sbrk. * configure: Regenerate using autoconf 2.4.
Diffstat (limited to 'gas/as.c')
-rw-r--r--gas/as.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/gas/as.c b/gas/as.c
index bc8ce44..5a937b3 100644
--- a/gas/as.c
+++ b/gas/as.c
@@ -324,9 +324,12 @@ parse_args (pargc, pargv)
exit (EXIT_SUCCESS);
case OPTION_EMULATION:
- /* Already handled; ignore it this time, except error checking. */
+#ifdef USE_EMULATIONS
if (strcmp (optarg, this_emulation->name))
as_fatal ("multiple emulation names specified");
+#else
+ as_fatal ("emulations not handled in this configuration");
+#endif
break;
case OPTION_DUMPCONFIG:
@@ -537,13 +540,17 @@ main (argc, argv)
if (flag_print_statistics)
{
extern char **environ;
+#ifdef HAVE_SBRK
char *lim = (char *) sbrk (0);
+#endif
long run_time = get_run_time () - start_time;
fprintf (stderr, "%s: total time in assembly: %ld.%06ld\n",
myname, run_time / 1000000, run_time % 1000000);
+#ifdef HAVE_SBRK
fprintf (stderr, "%s: data size %ld\n",
myname, (long) (lim - (char *) &environ));
+#endif
}
/* Use exit instead of return, because under VMS environments they