diff options
author | Joakim Tjernlund <Joakim.Tjernlund@transmode.se> | 2010-11-18 09:32:58 +0100 |
---|---|---|
committer | Dave Korn <davek@gcc.gnu.org> | 2010-11-18 08:32:58 +0000 |
commit | df0aaa66d995c03b120778a9bf6b033f40729257 (patch) | |
tree | 8ccf2c8417036f895ed9b8a9f36ec6d34eda2774 /gcc | |
parent | 0e1a989c9ce9fadd574cef4b059e82bb2922a2a7 (diff) | |
download | gcc-df0aaa66d995c03b120778a9bf6b033f40729257.zip gcc-df0aaa66d995c03b120778a9bf6b033f40729257.tar.gz gcc-df0aaa66d995c03b120778a9bf6b033f40729257.tar.bz2 |
sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Support -fpic as well as -mrelocatable at the same time.
2010-11-17 Joakim Tjernlund <Joakim.Tjernlund@transmode.se>
* config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Support -fpic
as well as -mrelocatable at the same time.
From-SVN: r166897
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/config/rs6000/sysv4.h | 3 |
2 files changed, 7 insertions, 1 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 00a4a4b..6cbcf61 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2010-11-17 Joakim Tjernlund <Joakim.Tjernlund@transmode.se> + + * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Support -fpic + as well as -mrelocatable at the same time. + 2010-11-17 Quentin Neill <quentin.neill.gnu@gmail.com> PR target/46422 diff --git a/gcc/config/rs6000/sysv4.h b/gcc/config/rs6000/sysv4.h index 4fda7fd..e82a1c6 100644 --- a/gcc/config/rs6000/sysv4.h +++ b/gcc/config/rs6000/sysv4.h @@ -223,7 +223,8 @@ do { \ } \ \ else if (TARGET_RELOCATABLE) \ - flag_pic = 2; \ + if (!flag_pic) \ + flag_pic = 2; \ } while (0) #ifndef RS6000_BI_ARCH |