* varasm.c (assemble_variable): Use DECL_RTL_SET_P.
authorMark Mitchell <mark@codesourcery.com>
Thu, 15 Mar 2001 09:58:59 +0000 (09:58 +0000)
committerMark Mitchell <mmitchel@gcc.gnu.org>
Thu, 15 Mar 2001 09:58:59 +0000 (09:58 +0000)
From-SVN: r40495

gcc/ChangeLog
gcc/java/ChangeLog
gcc/varasm.c

index 3161f0a9224d7de9d13ad656038769617536a800..ef29b846d80678748efc532a689701a4e46b0baa 100644 (file)
@@ -1,3 +1,7 @@
+2001-03-15  Mark Mitchell  <mark@codesourcery.com>
+
+       * varasm.c (assemble_variable): Use DECL_RTL_SET_P.
+
 2001-03-15  Neil Booth  <neil@daikokuya.demon.co.uk>
 
        * cpp.texi: Update documentation for -include and -imacros.
index e0fd390ccbd04896d4e1505494a231126565cf9d..35831c7fa2d94874509779fbd98f18e00b8b357a 100644 (file)
@@ -1,6 +1,7 @@
 2001-03-14  Mark Mitchell  <mark@codesourcery.com>
 
-       * class.c (build_static_field_ref): Likewise.
+       * class.c (build_static_field_ref): Use COPY_DECL_RTL,
+       DECL_RTL_SET_P, etc.
        (make_method_value): Likewise.
        (get_dispatch_table): Likewise.
 
index b5d5dfa87fde6b680932f863435460aabc64aaa0..b9cc6dfea31c224c09011c5e7ac9bd1f068ed942 100644 (file)
@@ -1245,7 +1245,7 @@ assemble_variable (decl, top_level, at_end, dont_output_data)
 
   last_assemble_variable_decl = 0;
 
-  if (GET_CODE (DECL_RTL (decl)) == REG)
+  if (DECL_RTL_SET_P (decl) && GET_CODE (DECL_RTL (decl)) == REG)
     {
       /* Do output symbol info for global register variables, but do nothing
         else for them.  */