dwarf2out.c (lookup_filename): Don't check for "<internal>".
authorJason Merrill <jason@redhat.com>
Thu, 3 Apr 2003 19:03:08 +0000 (14:03 -0500)
committerJason Merrill <jason@gcc.gnu.org>
Thu, 3 Apr 2003 19:03:08 +0000 (14:03 -0500)
        * dwarf2out.c (lookup_filename): Don't check for "<internal>".
        (dwarf2out_source_line): Don't do anything if line==0.

From-SVN: r65208

gcc/ChangeLog
gcc/dwarf2out.c

index 6e155ede022006b3de980d6315d4d402ce0efac9..73896b853d5be7b199bdc10f46a31a92d9db08e5 100644 (file)
@@ -1,5 +1,8 @@
 2003-04-03  Jason Merrill  <jason@redhat.com>
 
+       * dwarf2out.c (lookup_filename): Don't check for "<internal>".
+       (dwarf2out_source_line): Don't do anything if line==0.
+
        * stor-layout.c (do_type_align): New fn, split out from...
        (layout_decl): ...here.  Do all alignment calculations for 
        FIELD_DECLs here.
index dbe8fdf7eb0eed8f5ce1791478685271eb65d563..dcc7d6e3709ce8fc5a5ef073ad50e0764a7287c0 100644 (file)
@@ -12451,11 +12451,6 @@ lookup_filename (file_name)
   size_t i, n;
   char *save_file_name;
 
-  /* ??? Why isn't DECL_SOURCE_FILE left null instead.  */
-  if (strcmp (file_name, "<internal>") == 0
-      || strcmp (file_name, "<built-in>") == 0)
-    return 0;
-
   /* Check to see if the file name that was searched on the previous
      call matches this file name.  If so, return the index.  */
   if (file_table_last_lookup_index != 0)
@@ -12528,7 +12523,8 @@ dwarf2out_source_line (line, filename)
      unsigned int line;
      const char *filename;
 {
-  if (debug_info_level >= DINFO_LEVEL_NORMAL)
+  if (debug_info_level >= DINFO_LEVEL_NORMAL
+      && line != 0)
     {
       function_section (current_function_decl);