From d1d617880cbc2a399e9b98302cf11b45dd2cbcbe Mon Sep 17 00:00:00 2001 From: Mark Mitchell Date: Thu, 15 Mar 2001 09:58:59 +0000 Subject: [PATCH] * varasm.c (assemble_variable): Use DECL_RTL_SET_P. From-SVN: r40495 --- gcc/ChangeLog | 4 ++++ gcc/java/ChangeLog | 3 ++- gcc/varasm.c | 2 +- 3 files changed, 7 insertions(+), 2 deletions(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 3161f0a9224..ef29b846d80 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,7 @@ +2001-03-15 Mark Mitchell + + * varasm.c (assemble_variable): Use DECL_RTL_SET_P. + 2001-03-15 Neil Booth * cpp.texi: Update documentation for -include and -imacros. diff --git a/gcc/java/ChangeLog b/gcc/java/ChangeLog index e0fd390ccbd..35831c7fa2d 100644 --- a/gcc/java/ChangeLog +++ b/gcc/java/ChangeLog @@ -1,6 +1,7 @@ 2001-03-14 Mark Mitchell - * 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. diff --git a/gcc/varasm.c b/gcc/varasm.c index b5d5dfa87fd..b9cc6dfea31 100644 --- a/gcc/varasm.c +++ b/gcc/varasm.c @@ -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. */ -- 2.30.2