cygming.h (SUBTARGET_OVERRIDE_OPTIONS): Do not warn.
authorPaolo Bonzini <bonzini@gnu.org>
Sun, 6 Sep 2015 14:05:00 +0000 (14:05 +0000)
committerPaolo Bonzini <bonzini@gcc.gnu.org>
Sun, 6 Sep 2015 14:05:00 +0000 (14:05 +0000)
gcc:
* config/i386/cygming.h (SUBTARGET_OVERRIDE_OPTIONS): Do
not warn.

From-SVN: r227512

gcc/ChangeLog
gcc/config/i386/cygming.h

index 43154ea912d73067b06654dc2645941805688aa8..9e59992468d87f9acc4a2d4c0529a60f5e9b02c0 100644 (file)
@@ -1,3 +1,8 @@
+2015-09-04  Paolo Bonzini  <bonzini@gnu.org>
+
+       * config/i386/cygming.h (SUBTARGET_OVERRIDE_OPTIONS): Do
+       not warn.
+
 2015-09-04  Jakub Jelinek  <jakub@redhat.com>
 
        PR middle-end/67452
index fda59fb3c06b59acd2e08745ea4923e3820cba2e..71506ecbcd047cece6a8887ca51ead6705f2668e 100644 (file)
@@ -198,20 +198,7 @@ along with GCC; see the file COPYING3.  If not see
 #undef  SUBTARGET_OVERRIDE_OPTIONS
 #define SUBTARGET_OVERRIDE_OPTIONS                                     \
 do {                                                                   \
-  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");                         \
-      flag_pic = 0;                                                    \
-    }                                                                  \
+  flag_pic = TARGET_64BIT ? 1 : 0;                                      \
 } while (0)
 
 /* Define this macro if references to a symbol must be treated