From: Richard Kenner Date: Tue, 21 Feb 1995 10:36:34 +0000 (-0500) Subject: (compile_file): Initialize input_file_stack before calling lang_init, X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=187366548bbfd52a2f3ba6999d439a6388fa535d;p=gcc.git (compile_file): Initialize input_file_stack before calling lang_init, not after. From-SVN: r8975 --- diff --git a/gcc/toplev.c b/gcc/toplev.c index 8d4a8c42119..04405c35c79 100644 --- a/gcc/toplev.c +++ b/gcc/toplev.c @@ -2204,6 +2204,12 @@ compile_file (name) input_filename = name; + /* Put an entry on the input file stack for the main input file. */ + input_file_stack + = (struct file_stack *) xmalloc (sizeof (struct file_stack)); + input_file_stack->next = 0; + input_file_stack->name = input_filename; + /* Perform language-specific initialization. This may set main_input_filename. */ lang_init (); @@ -2213,12 +2219,6 @@ compile_file (name) if (main_input_filename == 0) main_input_filename = name; - /* Put an entry on the input file stack for the main input file. */ - input_file_stack - = (struct file_stack *) xmalloc (sizeof (struct file_stack)); - input_file_stack->next = 0; - input_file_stack->name = input_filename; - if (!output_bytecode) { ASM_FILE_START (asm_out_file);