gas/
[deliverable/binutils-gdb.git] / gas / listing.c
index 929ec98dbf73f0305a6a5f29e9f9832301d49727..6d28f316c32e0d8a30df1e6c637fc8b01e8c9ee9 100644 (file)
@@ -90,6 +90,7 @@
                         on a line.  */
 
 #include "as.h"
+#include "filenames.h"
 #include "obstack.h"
 #include "safe-ctype.h"
 #include "input-file.h"
@@ -257,7 +258,7 @@ file_info (const char *file_name)
 
   while (p != (file_info_type *) NULL)
     {
-      if (strcmp (p->filename, file_name) == 0)
+      if (filename_cmp (p->filename, file_name) == 0)
        return p;
       p = p->next;
     }
@@ -318,7 +319,7 @@ listing_newline (char *ps)
   if (ps == NULL)
     {
       if (line == last_line
-         && !(last_file && file && strcmp (file, last_file)))
+         && !(last_file && file && filename_cmp (file, last_file)))
        return;
 
       new_i = (list_info_type *) xmalloc (sizeof (list_info_type));
@@ -1075,17 +1076,22 @@ print_source (file_info_type *  current_file,
 static int
 debugging_pseudo (list_info_type *list, const char *line)
 {
+#ifdef OBJ_ELF
   static int in_debug;
   int was_debug;
+#endif
 
   if (list->debugging)
     {
+#ifdef OBJ_ELF
       in_debug = 1;
+#endif
       return 1;
     }
-
+#ifdef OBJ_ELF
   was_debug = in_debug;
   in_debug = 0;
+#endif
 
   while (ISSPACE (*line))
     line++;
This page took 0.023841 seconds and 4 git commands to generate.