Commit 0207ea82 by Richard Kenner

(compile_file): Call bc_write_file here and pass asm_out_file, not stdout.

(main): Don't call bc_write_file here.
Fix wording on error if -fbytecode specified on unsupported target.

From-SVN: r6786
parent 66bd81d9
...@@ -2392,6 +2392,9 @@ compile_file (name) ...@@ -2392,6 +2392,9 @@ compile_file (name)
lang_finish (); lang_finish ();
if (output_bytecode)
bc_write_file (asm_out_file);
/* Close the dump files. */ /* Close the dump files. */
if (flag_gen_aux_info) if (flag_gen_aux_info)
...@@ -3746,7 +3749,7 @@ You Lose! You must define PREFERRED_DEBUGGING_TYPE! ...@@ -3746,7 +3749,7 @@ You Lose! You must define PREFERRED_DEBUGGING_TYPE!
{ {
#ifndef TARGET_SUPPORTS_BYTECODE #ifndef TARGET_SUPPORTS_BYTECODE
/* Just die with a fatal error if not supported */ /* 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 #else
bc_initialize (); bc_initialize ();
#endif #endif
...@@ -3830,9 +3833,6 @@ You Lose! You must define PREFERRED_DEBUGGING_TYPE! ...@@ -3830,9 +3833,6 @@ You Lose! You must define PREFERRED_DEBUGGING_TYPE!
compile_file (filename); compile_file (filename);
if (output_bytecode)
bc_write_file (stdout);
#ifndef OS2 #ifndef OS2
#ifndef VMS #ifndef VMS
if (flag_print_mem) if (flag_print_mem)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment