diff options
author | amylaar <amylaar@138bc75d-0d04-0410-961f-82ee72b054a4> | 2003-06-04 17:19:36 +0000 |
---|---|---|
committer | amylaar <amylaar@138bc75d-0d04-0410-961f-82ee72b054a4> | 2003-06-04 17:19:36 +0000 |
commit | 6d042e212bb6bf42ce74d06793794d2e4f75c5bf (patch) | |
tree | 9c6eef08bd0e2573f12d93a729188a118acda416 /gcc/dwarf2out.c | |
parent | ff93ddc0aac16870d6c1bd01deb90047e5c85e14 (diff) | |
download | gcc-6d042e212bb6bf42ce74d06793794d2e4f75c5bf.tar.gz |
* c-decl.c (c_init_decl_processing): Clear input_file_name
while building common nodes.
* dwarf2out.c (gen_compile_unit_die, dwarf2out_finish):
Don't add working directory for strings like <built-in> .
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@67452 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/dwarf2out.c')
-rw-r--r-- | gcc/dwarf2out.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/gcc/dwarf2out.c b/gcc/dwarf2out.c index 3d908e47325..e64932941ac 100644 --- a/gcc/dwarf2out.c +++ b/gcc/dwarf2out.c @@ -11493,7 +11493,8 @@ gen_compile_unit_die (filename) if (filename) { add_name_attribute (die, filename); - if (filename[0] != DIR_SEPARATOR) + /* Don't add cwd for <built-in>. */ + if (filename[0] != DIR_SEPARATOR && filename[0] != '<') add_comp_dir_attribute (die); } @@ -13084,7 +13085,9 @@ dwarf2out_finish (filename) { size_t i; for (i = 1; i < VARRAY_ACTIVE_SIZE (file_table); i++) - if (VARRAY_CHAR_PTR (file_table, i)[0] != DIR_SEPARATOR) + if (VARRAY_CHAR_PTR (file_table, i)[0] != DIR_SEPARATOR + /* Don't add cwd for <built-in>. */ + && VARRAY_CHAR_PTR (file_table, i)[0] != '<') { add_comp_dir_attribute (comp_unit_die); break; |