(compile_file): Call bc_write_file here and pass asm_out_file, not stdout.
authorRichard Kenner <kenner@gcc.gnu.org>
Mon, 14 Mar 1994 13:14:17 +0000 (08:14 -0500)
committerRichard Kenner <kenner@gcc.gnu.org>
Mon, 14 Mar 1994 13:14:17 +0000 (08:14 -0500)
(main): Don't call bc_write_file here.
Fix wording on error if -fbytecode specified on unsupported target.

From-SVN: r6786

gcc/toplev.c

index b21f0e31fd6c177481524ec34d62de73ea7ab53d..77c1c39feb83fdb8d34301ca4dd0af77ec0bf8b2 100644 (file)
@@ -2392,6 +2392,9 @@ compile_file (name)
 
   lang_finish ();
 
+  if (output_bytecode)
+    bc_write_file (asm_out_file);
+
   /* Close the dump files.  */
 
   if (flag_gen_aux_info)
@@ -3746,7 +3749,7 @@ You Lose!  You must define PREFERRED_DEBUGGING_TYPE!
     {
 #ifndef TARGET_SUPPORTS_BYTECODE
       /* Just die with a fatal error if not supported */
-      fatal ("-fbytecode can not be used for this target");
+      fatal ("-fbytecode not supporter for this target");
 #else
       bc_initialize ();
 #endif
@@ -3830,9 +3833,6 @@ You Lose!  You must define PREFERRED_DEBUGGING_TYPE!
 
   compile_file (filename);
 
-  if (output_bytecode)
-    bc_write_file (stdout);
-
 #ifndef OS2
 #ifndef VMS
   if (flag_print_mem)