aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJason Merrill <jason@redhat.com>2003-04-03 14:03:08 -0500
committerJason Merrill <jason@gcc.gnu.org>2003-04-03 14:03:08 -0500
commit7bf6b23db51c588b9ee2eb6eec0b7ad84e0dc49c (patch)
treee34751779ee320cd6f2ac73ef5181869c5f3c499
parent78d55cc86ecc681c975581dd3e7e20bb5315b83a (diff)
downloadgcc-7bf6b23db51c588b9ee2eb6eec0b7ad84e0dc49c.zip
gcc-7bf6b23db51c588b9ee2eb6eec0b7ad84e0dc49c.tar.gz
gcc-7bf6b23db51c588b9ee2eb6eec0b7ad84e0dc49c.tar.bz2
dwarf2out.c (lookup_filename): Don't check for "<internal>".
* dwarf2out.c (lookup_filename): Don't check for "<internal>". (dwarf2out_source_line): Don't do anything if line==0. From-SVN: r65208
-rw-r--r--gcc/ChangeLog3
-rw-r--r--gcc/dwarf2out.c8
2 files changed, 5 insertions, 6 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 6e155ed..73896b8 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -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.
diff --git a/gcc/dwarf2out.c b/gcc/dwarf2out.c
index dbe8fdf..dcc7d6e 100644
--- a/gcc/dwarf2out.c
+++ b/gcc/dwarf2out.c
@@ -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);