PR target/44161
* config/i386/cygming.h (SUBTARGET_OVERRIDE_OPTIONS): Handle
flag_pic.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@160070
138bc75d-0d04-0410-961f-
82ee72b054a4
+2010-05-31 Kai Tietz <kai.tietz@onevision.com>
+
+ PR target/44161
+ * config/i386/cygming.h (SUBTARGET_OVERRIDE_OPTIONS): Handle
+ flag_pic.
+
2010-05-31 Eric Botcazou <ebotcazou@adacore.com>
* cgraphunit.c (cgraph_decide_is_function_needed): Really return false
#undef SUBTARGET_OVERRIDE_OPTIONS
#define SUBTARGET_OVERRIDE_OPTIONS \
do { \
- if (flag_pic) \
+ if (TARGET_64BIT && flag_pic != 1) \
+ { \
+ if (flag_pic > 1) \
+ warning (0, \
+ "-fPIC ignored for target (all code is position independent)"\
+ ); \
+ flag_pic = 1; \
+ } \
+ else if (!TARGET_64BIT && flag_pic) \
{ \
warning (0, "-f%s ignored for target (all code is position independent)",\
(flag_pic > 1) ? "PIC" : "pic"); \