OSDN Git Service

2010-11-17 Joakim Tjernlund <Joakim.Tjernlund@transmode.se>
authordavek <davek@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 18 Nov 2010 08:32:58 +0000 (08:32 +0000)
committerdavek <davek@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 18 Nov 2010 08:32:58 +0000 (08:32 +0000)
* config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Support -fpic
as well as -mrelocatable at the same time.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@166897 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/ChangeLog
gcc/config/rs6000/sysv4.h

index 00a4a4b..6cbcf61 100644 (file)
@@ -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
index 4fda7fd..e82a1c6 100644 (file)
@@ -223,7 +223,8 @@ do {                                                                        \
     }                                                                  \
                                                                        \
   else if (TARGET_RELOCATABLE)                                         \
-    flag_pic = 2;                                                      \
+    if (!flag_pic)                                                     \
+      flag_pic = 2;                                                    \
 } while (0)
 
 #ifndef RS6000_BI_ARCH