From: ktietz Date: Mon, 31 May 2010 14:06:41 +0000 (+0000) Subject: 2010-05-31 Kai Tietz X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=82fb736a4701f9edce4b21cc906c0efb5a606562;p=thirdparty%2Fgcc.git 2010-05-31 Kai Tietz 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 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index c1b62ce5fde5..21e45300f0cd 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,9 @@ +2010-05-31 Kai Tietz + + PR target/44161 + * config/i386/cygming.h (SUBTARGET_OVERRIDE_OPTIONS): Handle + flag_pic. + 2010-05-31 Eric Botcazou * cgraphunit.c (cgraph_decide_is_function_needed): Really return false diff --git a/gcc/config/i386/cygming.h b/gcc/config/i386/cygming.h index 71a5d8d99c96..999cb6e497f9 100644 --- a/gcc/config/i386/cygming.h +++ b/gcc/config/i386/cygming.h @@ -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"); \