diff options
author | Richard Kenner <kenner@gcc.gnu.org> | 1993-10-28 18:43:31 -0400 |
---|---|---|
committer | Richard Kenner <kenner@gcc.gnu.org> | 1993-10-28 18:43:31 -0400 |
commit | 0b31e2797e1f60f05437c450d0716e2310635b3b (patch) | |
tree | 34ab55cb0eb43da273b06a5e05dc215fa001d40b /gcc | |
parent | 669054c144a18cccfdc945ae5ab3d09c3c55e7a3 (diff) | |
download | gcc-0b31e2797e1f60f05437c450d0716e2310635b3b.zip gcc-0b31e2797e1f60f05437c450d0716e2310635b3b.tar.gz gcc-0b31e2797e1f60f05437c450d0716e2310635b3b.tar.bz2 |
(ENCODE_SECTION_INFO): Use DECL_RTL for DECLs.
From-SVN: r5925
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/config/arm/arm.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/gcc/config/arm/arm.h b/gcc/config/arm/arm.h index 8255624..63077c4 100644 --- a/gcc/config/arm/arm.h +++ b/gcc/config/arm/arm.h @@ -921,7 +921,11 @@ enum reg_class { \ if (TREE_CONSTANT (decl) \ && (!flag_writable_strings || TREE_CODE (decl) != STRING_CST)) \ - SYMBOL_REF_FLAG (XEXP (TREE_CST_RTL (decl), 0)) = 1; \ + { \ + rtx rtl = (TREE_CODE_CLASS (TREE_CODE (decl)) != 'd' \ + ? TREE_CST_RTL (decl) : DECL_RTL (decl)); \ + SYMBOL_REF_FLAG (XEXP (rtl, 0)) = 1; \ + } \ } /* The macros REG_OK_FOR..._P assume that the arg is a REG rtx |