diff options
author | Richard Henderson <rth@redhat.com> | 2003-09-21 22:09:32 -0700 |
---|---|---|
committer | Richard Henderson <rth@gcc.gnu.org> | 2003-09-21 22:09:32 -0700 |
commit | f31686a322301454c5ea5b997997aa7c84c57781 (patch) | |
tree | d942bc168b4a8f91e17acf863e1d2091ff773b6c /gcc/dwarfout.c | |
parent | 0f7fcd6a40a237b634e0f93f1206724add7354d3 (diff) | |
download | gcc-f31686a322301454c5ea5b997997aa7c84c57781.zip gcc-f31686a322301454c5ea5b997997aa7c84c57781.tar.gz gcc-f31686a322301454c5ea5b997997aa7c84c57781.tar.bz2 |
Revert DECL_SOURCE_LOCATION -> TREE_LOCUS change.
From-SVN: r71641
Diffstat (limited to 'gcc/dwarfout.c')
-rw-r--r-- | gcc/dwarfout.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/gcc/dwarfout.c b/gcc/dwarfout.c index 0ad9d0f..dfd1f0b 100644 --- a/gcc/dwarfout.c +++ b/gcc/dwarfout.c @@ -3411,10 +3411,10 @@ name_and_src_coords_attributes (tree decl) Fred Fish sez that m68k/svr4 assemblers botch those. */ ASM_OUTPUT_POP_SECTION (asm_out_file); - file_index = lookup_filename (TREE_FILENAME (decl)); + file_index = lookup_filename (DECL_SOURCE_FILE (decl)); ASM_OUTPUT_PUSH_SECTION (asm_out_file, DEBUG_SECTION); - src_coords_attribute (file_index, TREE_LINENO (decl)); + src_coords_attribute (file_index, DECL_SOURCE_LINE (decl)); } #endif /* defined(DWARF_DECL_COORDINATES) */ } @@ -5618,7 +5618,7 @@ dwarfout_file_scope_decl (tree decl, int set_finalizing) /* ??? This code is different than the equivalent code in dwarf2out.c. The dwarf2out.c code is probably more correct. */ - if (!TREE_LOCUS_SET_P (decl) + if (DECL_SOURCE_LINE (decl) == 0 && (type_is_fundamental (TREE_TYPE (decl)) || TREE_CODE (TREE_TYPE (decl)) == LANG_TYPE)) return; |