diff options
author | Mark Mitchell <mark@codesourcery.com> | 2001-03-16 06:34:17 +0000 |
---|---|---|
committer | Mark Mitchell <mmitchel@gcc.gnu.org> | 2001-03-16 06:34:17 +0000 |
commit | 110c3568a23b529419ca8d51c17ae4104c84e6d0 (patch) | |
tree | 3062141140229c081f1727a2b883a5bf5e7053c5 | |
parent | b16e8f08b4942c0971cf8f07ce041a882855c5fa (diff) | |
download | gcc-110c3568a23b529419ca8d51c17ae4104c84e6d0.zip gcc-110c3568a23b529419ca8d51c17ae4104c84e6d0.tar.gz gcc-110c3568a23b529419ca8d51c17ae4104c84e6d0.tar.bz2 |
* dwarf2out.c (rtl_for_decl_location): Use DECL_RTL_IF_SET.
From-SVN: r40544
-rw-r--r-- | gcc/ChangeLog | 4 | ||||
-rw-r--r-- | gcc/dwarf2out.c | 2 | ||||
-rw-r--r-- | gcc/testsuite/g++.old-deja/g++.other/debug7.C | 11 |
3 files changed, 16 insertions, 1 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index bbb6c58..dc25aad 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,7 @@ +2001-03-15 Mark Mitchell <mark@codesourcery.com> + + * dwarf2out.c (rtl_for_decl_location): Use DECL_RTL_IF_SET. + 2001-03-15 Richard Henderson <rth@redhat.com> * config/ia64/ia64.h (ASM_OUTPUT_DWARF_OFFSET): New. diff --git a/gcc/dwarf2out.c b/gcc/dwarf2out.c index 6f0ae8a..c5dbcd3 100644 --- a/gcc/dwarf2out.c +++ b/gcc/dwarf2out.c @@ -7983,7 +7983,7 @@ rtl_for_decl_location (decl) gets fixed). */ /* Use DECL_RTL as the "location" unless we find something better. */ - rtl = DECL_RTL (decl); + rtl = DECL_RTL_IF_SET (decl); if (TREE_CODE (decl) == PARM_DECL) { diff --git a/gcc/testsuite/g++.old-deja/g++.other/debug7.C b/gcc/testsuite/g++.old-deja/g++.other/debug7.C new file mode 100644 index 0000000..f79b00a --- /dev/null +++ b/gcc/testsuite/g++.old-deja/g++.other/debug7.C @@ -0,0 +1,11 @@ +// Build don't run: +// Origin: Loren James Rittle <rittle@latour.rsch.comm.mot.com> +// Special g++ Options: -g -O2 + +namespace std { + const int __stl_chunk_size = 7; +}; + +int main () +{ +} |