summaryrefslogtreecommitdiff
path: root/gcc/config/i386/winnt.c
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/config/i386/winnt.c')
-rw-r--r--gcc/config/i386/winnt.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/gcc/config/i386/winnt.c b/gcc/config/i386/winnt.c
index 0751c7f888e..98e57922057 100644
--- a/gcc/config/i386/winnt.c
+++ b/gcc/config/i386/winnt.c
@@ -273,7 +273,7 @@ i386_pe_mark_dllimport (decl)
const char *oldname;
char *newname;
tree idp;
- rtx rtlname, newrtl;
+ rtx rtlname;
rtlname = XEXP (DECL_RTL (decl), 0);
if (GET_CODE (rtlname) == SYMBOL_REF)
@@ -335,10 +335,8 @@ i386_pe_mark_dllimport (decl)
identical. */
idp = get_identifier (newname);
- newrtl = gen_rtx (MEM, Pmode,
- gen_rtx (SYMBOL_REF, Pmode,
- IDENTIFIER_POINTER (idp)));
- XEXP (DECL_RTL (decl), 0) = newrtl;
+ XEXP (DECL_RTL (decl), 0)
+ = gen_rtx_SYMBOL_REF (Pmode, IDENTIFIER_POINTER (idp));
/* Can't treat a pointer to this as a constant address */
DECL_NON_ADDR_CONST_P (decl) = 1;