+2003-06-05 Per Bothner <pbothner@apple.com>
+
+ * toplev.c (push_srcloc): Simplify behavior to save current location
+ and set current location to parameters.
+ (pop_srcloc): Simplify semantics.
+ (lang_dependent_init): Remove now-useless initial push_srcloc.
+
2003-05-06 Richard Henderson <rth@redhat.com>
* dwarf2out.c (loc_descriptor_from_tree): Return 0 for
{
struct file_stack *fs;
- if (input_file_stack)
- input_file_stack->location = input_location;
-
fs = (struct file_stack *) xmalloc (sizeof (struct file_stack));
- input_filename = file;
- input_line = line;
fs->location = input_location;
fs->next = input_file_stack;
+ input_filename = file;
+ input_line = line;
input_file_stack = fs;
input_file_stack_tick++;
}
struct file_stack *fs;
fs = input_file_stack;
+ input_location = fs->location;
input_file_stack = fs->next;
free (fs);
input_file_stack_tick++;
-
- if (input_file_stack)
- input_location = input_file_stack->location;
- else
- {
- input_filename = NULL;
- input_line = 0;
- }
}
/* Compile an entire translation unit. Write a file of assembly
init_expr_once ();
expand_dummy_function_end ();
- /* Put an entry on the input file stack for the main input file. */
- push_srcloc (input_filename, 0);
-
/* If dbx symbol table desired, initialize writing it and output the
predefined types. */
timevar_push (TV_SYMOUT);