From: Stan Shebs Date: Thu, 5 Sep 2002 16:25:49 +0000 (+0000) Subject: rs6000.c (rs6000_override_options): Make -fpic and -fPIC equivalent on Darwin. X-Git-Tag: releases/gcc-3.3.0~3013 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=c72bfda72eda6b7243e2a8d51d8b45a81aa5a602;p=thirdparty%2Fgcc.git rs6000.c (rs6000_override_options): Make -fpic and -fPIC equivalent on Darwin. * config/rs6000/rs6000.c (rs6000_override_options): Make -fpic and -fPIC equivalent on Darwin. From-SVN: r56848 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index c26e25411040..7af3c476010b 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2002-09-05 Stan Shebs + + * config/rs6000/rs6000.c (rs6000_override_options): Make -fpic and + -fPIC equivalent on Darwin. + Thu Sep 5 16:27:47 2002 J"orn Rennecke * sh.c (sh_expand_builtin): Return early if encountering an diff --git a/gcc/config/rs6000/rs6000.c b/gcc/config/rs6000/rs6000.c index 95ad0e863974..b05b7a0119d3 100644 --- a/gcc/config/rs6000/rs6000.c +++ b/gcc/config/rs6000/rs6000.c @@ -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) {