Commit 461422d5 by Michael Meissner

Fix -fpic problems; fix typo in cygwin

From-SVN: r13093
parent 4f3397ae
...@@ -49,7 +49,7 @@ Boston, MA 02111-1307, USA. */ ...@@ -49,7 +49,7 @@ Boston, MA 02111-1307, USA. */
#define LINK_SPEC "%{v:-V}" #define LINK_SPEC "%{v:-V}"
#undef STARTFILE_SPEC #undef STARTFILE_SPEC
#define STARTFILE_SPEC "crti%O%s %{!:crt0%O%s}" #define STARTFILE_SPEC "crti%O%s crt0%O%s"
#undef ENDFILE_SPEC #undef ENDFILE_SPEC
#define ENDFILE_SPEC "crtn%O%s" #define ENDFILE_SPEC "crtn%O%s"
......
...@@ -1767,6 +1767,7 @@ typedef struct rs6000_args ...@@ -1767,6 +1767,7 @@ typedef struct rs6000_args
#define LEGITIMATE_SMALL_DATA_P(MODE, X) \ #define LEGITIMATE_SMALL_DATA_P(MODE, X) \
((DEFAULT_ABI == ABI_V4 || DEFAULT_ABI == ABI_SOLARIS) \ ((DEFAULT_ABI == ABI_V4 || DEFAULT_ABI == ABI_SOLARIS) \
&& !flag_pic && !TARGET_RELOCATABLE \
&& (GET_CODE (X) == SYMBOL_REF || GET_CODE (X) == CONST) \ && (GET_CODE (X) == SYMBOL_REF || GET_CODE (X) == CONST) \
&& small_data_operand (X, MODE)) && small_data_operand (X, MODE))
...@@ -1803,6 +1804,7 @@ typedef struct rs6000_args ...@@ -1803,6 +1804,7 @@ typedef struct rs6000_args
#define LEGITIMATE_LO_SUM_ADDRESS_P(MODE, X) \ #define LEGITIMATE_LO_SUM_ADDRESS_P(MODE, X) \
(TARGET_ELF \ (TARGET_ELF \
&& !flag_pic && !TARGET_RELOCATABLE \
&& (MODE) != DImode \ && (MODE) != DImode \
&& (MODE) != TImode \ && (MODE) != TImode \
&& (TARGET_HARD_FLOAT || (MODE) != DFmode) \ && (TARGET_HARD_FLOAT || (MODE) != DFmode) \
...@@ -1881,6 +1883,7 @@ typedef struct rs6000_args ...@@ -1881,6 +1883,7 @@ typedef struct rs6000_args
goto WIN; \ goto WIN; \
} \ } \
else if (TARGET_ELF && TARGET_32BIT && TARGET_NO_TOC \ else if (TARGET_ELF && TARGET_32BIT && TARGET_NO_TOC \
&& !flag_pic \
&& GET_CODE (X) != CONST_INT \ && GET_CODE (X) != CONST_INT \
&& GET_CODE (X) != CONST_DOUBLE && CONSTANT_P (X) \ && GET_CODE (X) != CONST_DOUBLE && CONSTANT_P (X) \
&& (TARGET_HARD_FLOAT || (MODE) != DFmode) \ && (TARGET_HARD_FLOAT || (MODE) != DFmode) \
......
...@@ -5084,6 +5084,7 @@ ...@@ -5084,6 +5084,7 @@
} }
if (TARGET_ELF && TARGET_NO_TOC && !TARGET_64BIT if (TARGET_ELF && TARGET_NO_TOC && !TARGET_64BIT
&& !flag_pic
&& CONSTANT_P (operands[1]) && CONSTANT_P (operands[1])
&& GET_CODE (operands[1]) != HIGH && GET_CODE (operands[1]) != HIGH
&& GET_CODE (operands[1]) != CONST_INT) && GET_CODE (operands[1]) != CONST_INT)
......
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