re PR target/44161 (__attribute__((__target__)) resets pic flag causing spurious warnings)
2010-05-31 Kai Tietz <kai.tietz@onevision.com> PR target/44161 * config/i386/cygming.h (SUBTARGET_OVERRIDE_OPTIONS): Handle flag_pic. From-SVN: r160070
This commit is contained in:
parent
c5d01958a7
commit
877a19bfb8
@ -1,3 +1,9 @@
|
||||
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
|
||||
|
@ -152,7 +152,15 @@ union tree_node;
|
||||
#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"); \
|
||||
|
Loading…
Reference in New Issue
Block a user