+Mon Apr 26 01:02:34 1999 Nathan Sidwell <nathan@acm.org>
+
+ * toplev.c (report_error_function): Reorder file stack and
+ function name printing. Ignore FILE parameter.
+
Mon Apr 26 00:58:54 1999 Jerry Quinn <jquinn@nortelnetworks.com>
* pa/pa-hpux.h, pa/pa-hpux10.h, pa/pa-hpux9.h, pa/pa-osf.h, pa.h,
default_print_error_function;
/* Prints out, if necessary, the name of the current function
- that caused an error. Called from all error and warning functions. */
+ that caused an error. Called from all error and warning functions.
+ We ignore the FILE parameter, as it cannot be relied upon. */
void
report_error_function (file)
- const char *file;
+ const char *file ATTRIBUTE_UNUSED;
{
struct file_stack *p;
need_error_newline = 0;
}
- (*print_error_function) (file);
-
if (input_file_stack && input_file_stack->next != 0
- && input_file_stack_tick != last_error_tick
- && file == input_filename)
+ && input_file_stack_tick != last_error_tick)
{
for (p = input_file_stack->next; p; p = p->next)
notice ((p == input_file_stack->next
fprintf (stderr, ":\n");
last_error_tick = input_file_stack_tick;
}
+
+ (*print_error_function) (input_filename);
}
\f
/* Print a message. */