Commit bfc6c67e by Mark Mitchell Committed by Mark Mitchell

winnt.c (i386_pe_mark_dllimport): Revert previous changes.

	* config/i386/winnt.c (i386_pe_mark_dllimport): Revert previous
	changes.

From-SVN: r65920
parent 4f0baa73
2003-04-21 Mark Mitchell <mark@codesourcery.com>
* config/i386/winnt.c (i386_pe_mark_dllimport): Revert previous
changes.
2003-04-21 Aldy Hernandez <aldyh@redhat.com> 2003-04-21 Aldy Hernandez <aldyh@redhat.com>
* config/rs6000/rs6000.c (rs6000_override_options): No SPE means * config/rs6000/rs6000.c (rs6000_override_options): No SPE means
......
...@@ -273,8 +273,7 @@ i386_pe_mark_dllimport (decl) ...@@ -273,8 +273,7 @@ i386_pe_mark_dllimport (decl)
const char *oldname; const char *oldname;
char *newname; char *newname;
tree idp; tree idp;
rtx rtlname; rtx rtlname, newrtl;
rtx new_symbol;
rtlname = XEXP (DECL_RTL (decl), 0); rtlname = XEXP (DECL_RTL (decl), 0);
if (GET_CODE (rtlname) == SYMBOL_REF) if (GET_CODE (rtlname) == SYMBOL_REF)
...@@ -336,11 +335,10 @@ i386_pe_mark_dllimport (decl) ...@@ -336,11 +335,10 @@ i386_pe_mark_dllimport (decl)
identical. */ identical. */
idp = get_identifier (newname); idp = get_identifier (newname);
new_symbol = gen_rtx_SYMBOL_REF (Pmode, IDENTIFIER_POINTER (idp)); newrtl = gen_rtx (MEM, Pmode,
XEXP (DECL_RTL (decl), 0) gen_rtx (SYMBOL_REF, Pmode,
= ((GET_CODE (XEXP (DECL_RTL (decl), 0)) == MEM) IDENTIFIER_POINTER (idp)));
? gen_rtx (MEM, Pmode, new_symbol) XEXP (DECL_RTL (decl), 0) = newrtl;
: new_symbol);
/* Can't treat a pointer to this as a constant address */ /* Can't treat a pointer to this as a constant address */
DECL_NON_ADDR_CONST_P (decl) = 1; DECL_NON_ADDR_CONST_P (decl) = 1;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment