Commit ea2666ba by Kai Tietz Committed by Jan Hubicka

i386.c: (legitimize_address): Move dllimported variable check infront of legitimizing...

	* i386.c: (legitimize_address): Move dllimported variable check
	infront of legitimizing pic address of CONST symbols.

From-SVN: r127488
parent 0f547d3d
2007-08-14 Kai Tietz <kai.tietz@onevision.com>
* i386.c: (legitimize_address): Move dllimported variable check
infront of legitimizing pic address of CONST symbols.
2007-08-14 Steve Ellcey <sje@cup.hp.com> 2007-08-14 Steve Ellcey <sje@cup.hp.com>
PR tree-optimization/32941 PR tree-optimization/32941
......
...@@ -7718,9 +7718,6 @@ legitimize_address (rtx x, rtx oldx ATTRIBUTE_UNUSED, enum machine_mode mode) ...@@ -7718,9 +7718,6 @@ legitimize_address (rtx x, rtx oldx ATTRIBUTE_UNUSED, enum machine_mode mode)
return gen_rtx_PLUS (Pmode, t, XEXP (XEXP (x, 0), 1)); return gen_rtx_PLUS (Pmode, t, XEXP (XEXP (x, 0), 1));
} }
if (flag_pic && SYMBOLIC_CONST (x))
return legitimize_pic_address (x, 0);
if (TARGET_DLLIMPORT_DECL_ATTRIBUTES) if (TARGET_DLLIMPORT_DECL_ATTRIBUTES)
{ {
if (GET_CODE (x) == SYMBOL_REF && SYMBOL_REF_DLLIMPORT_P (x)) if (GET_CODE (x) == SYMBOL_REF && SYMBOL_REF_DLLIMPORT_P (x))
...@@ -7735,6 +7732,9 @@ legitimize_address (rtx x, rtx oldx ATTRIBUTE_UNUSED, enum machine_mode mode) ...@@ -7735,6 +7732,9 @@ legitimize_address (rtx x, rtx oldx ATTRIBUTE_UNUSED, enum machine_mode mode)
} }
} }
if (flag_pic && SYMBOLIC_CONST (x))
return legitimize_pic_address (x, 0);
/* Canonicalize shifts by 0, 1, 2, 3 into multiply */ /* Canonicalize shifts by 0, 1, 2, 3 into multiply */
if (GET_CODE (x) == ASHIFT if (GET_CODE (x) == ASHIFT
&& CONST_INT_P (XEXP (x, 1)) && CONST_INT_P (XEXP (x, 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