[ARC] Update merging attributes.
[deliverable/binutils-gdb.git] / gas / listing.c
index 18c6e3ba3aea92564391a57aa63fc6251ab47430..3d294a341d20b55d2b78bd717455c9b252c28b92 100644 (file)
@@ -1,5 +1,5 @@
 /* listing.c - maintain assembly listings
-   Copyright (C) 1991-2017 Free Software Foundation, Inc.
+   Copyright (C) 1991-2018 Free Software Foundation, Inc.
 
    This file is part of GAS, the GNU Assembler.
 
@@ -324,7 +324,13 @@ listing_newline (char *ps)
     }
 #endif
 
-  file = as_where (&line);
+  /* PR 21977 - use the physical file name not the logical one unless high
+     level source files are being included in the listing.  */
+  if (listing & LISTING_HLL)
+    file = as_where (&line);
+  else
+    file = as_where_physical (&line);
+
   if (ps == NULL)
     {
       if (line == last_line
This page took 0.026587 seconds and 4 git commands to generate.