rs6000.c (rs6000_override_options): Make -fpic and -fPIC equivalent on Darwin.
authorStan Shebs <shebs@apple.com>
Thu, 5 Sep 2002 16:25:49 +0000 (16:25 +0000)
committerStan Shebs <shebs@gcc.gnu.org>
Thu, 5 Sep 2002 16:25:49 +0000 (16:25 +0000)
        * config/rs6000/rs6000.c (rs6000_override_options): Make -fpic and
        -fPIC equivalent on Darwin.

From-SVN: r56848

gcc/ChangeLog
gcc/config/rs6000/rs6000.c

index c26e25411040a5d95de13b3a69c88cdc487c9756..7af3c476010bda891c9d81e813216c78365530d9 100644 (file)
@@ -1,3 +1,8 @@
+2002-09-05  Stan Shebs  <shebs@apple.com>
+
+       * config/rs6000/rs6000.c (rs6000_override_options): Make -fpic and
+       -fPIC equivalent on Darwin.
+
 Thu Sep  5 16:27:47 2002  J"orn Rennecke <joern.rennecke@superh.com>
 
        * sh.c (sh_expand_builtin): Return early if encountering an
index 95ad0e863974f008b9c97605eb8d5d5a062b281f..b05b7a0119d3fc65aef9e4e00c9c89254ca4dd7a 100644 (file)
@@ -602,6 +602,10 @@ rs6000_override_options (default_cpu)
     }
 #endif
 
+  /* For Darwin, always silently make -fpic and -fPIC identical.  */
+  if (flag_pic == 1 && DEFAULT_ABI == ABI_DARWIN)
+    flag_pic = 2;
+
   /* Set debug flags */
   if (rs6000_debug_name)
     {