summaryrefslogtreecommitdiffstats
path: root/gcc/varasm.c
diff options
context:
space:
mode:
authormmitchel <mmitchel@138bc75d-0d04-0410-961f-82ee72b054a4>2001-03-15 09:58:59 +0000
committermmitchel <mmitchel@138bc75d-0d04-0410-961f-82ee72b054a4>2001-03-15 09:58:59 +0000
commit15150de6bd6a40d4ac0cc15743190d74d685ea79 (patch)
tree9bee500d3aec64c58ea54781b72811cb6e7a775f /gcc/varasm.c
parent961889a6e33d417e2f37a5e5611dffec694d4331 (diff)
downloadppe42-gcc-15150de6bd6a40d4ac0cc15743190d74d685ea79.tar.gz
ppe42-gcc-15150de6bd6a40d4ac0cc15743190d74d685ea79.zip
* varasm.c (assemble_variable): Use DECL_RTL_SET_P.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@40495 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/varasm.c')
-rw-r--r--gcc/varasm.c2
1 files changed, 1 insertions, 1 deletions
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. */
OpenPOWER on IntegriCloud