aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorRichard Kenner <kenner@vlsi1.ultra.nyu.edu>2001-11-18 19:08:43 +0000
committerRichard Kenner <kenner@gcc.gnu.org>2001-11-18 14:08:43 -0500
commit69deb6e055c718a94929ffd3012b149c461bb9a0 (patch)
treec131e82c354b5847949148f9f50e4041bb686ae9 /gcc
parentaa99bd097969b1be33198b73898b4f8a3021a837 (diff)
downloadgcc-69deb6e055c718a94929ffd3012b149c461bb9a0.zip
gcc-69deb6e055c718a94929ffd3012b149c461bb9a0.tar.gz
gcc-69deb6e055c718a94929ffd3012b149c461bb9a0.tar.bz2
* sdbout.c (sdbout_symbol): Avoid warning due to &DECL_RTL.
From-SVN: r47148
Diffstat (limited to 'gcc')
-rw-r--r--gcc/ChangeLog4
-rw-r--r--gcc/sdbout.c6
2 files changed, 7 insertions, 3 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index dd33c36..5ef917e 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,7 @@
+Sun Nov 18 14:13:52 2001 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
+
+ * sdbout.c (sdbout_symbol): Avoid warning due to &DECL_RTL.
+
2001-11-18 Joseph S. Myers <jsm28@cam.ac.uk>
* c-decl.c (c_decode_option): Give deprecation warning for
diff --git a/gcc/sdbout.c b/gcc/sdbout.c
index ab0a0d8..f8bd744 100644
--- a/gcc/sdbout.c
+++ b/gcc/sdbout.c
@@ -796,7 +796,7 @@ sdbout_symbol (decl, local)
particular compilation. */
if (GET_CODE (value) == REG)
{
- regno = REGNO (DECL_RTL (decl));
+ regno = REGNO (value);
if (regno >= FIRST_PSEUDO_REGISTER)
return;
}
@@ -809,8 +809,8 @@ sdbout_symbol (decl, local)
if (REGNO (value) >= FIRST_PSEUDO_REGISTER)
return;
}
- regno = REGNO (alter_subreg (&DECL_RTL (decl)));
- value = DECL_RTL (decl);
+ regno = REGNO (alter_subreg (&value));
+ SET_DECL_RTL (decl, value);
}
/* Don't output anything if an auto variable
gets RTL that is static.