Patchwork powerpc: Support -fpic too with mrelocatable

login
register
mail settings
Submitter Joakim Tjernlund
Date Oct. 27, 2010, 6:44 a.m.
Message ID <1288161860-8643-1-git-send-email-Joakim.Tjernlund@transmode.se>
Download mbox | patch
Permalink /patch/69328/
State New
Headers show

Comments

Joakim Tjernlund - Oct. 27, 2010, 6:44 a.m.
Signed-off-by: Joakim Tjernlund <Joakim.Tjernlund@transmode.se>
---
 sysv4.h |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

Patch

diff --git a/gcc/config/rs6000/sysv4.h b/gcc/config/rs6000/sysv4.h
index 8da8410..e4b8280 100644
--- a/gcc/config/rs6000/sysv4.h
+++ b/gcc/config/rs6000/sysv4.h
@@ -227,7 +227,8 @@  do {									\
     }									\
 									\
   else if (TARGET_RELOCATABLE)						\
-    flag_pic = 2;							\
+    if (!flag_pic)							\
+      flag_pic = 2;							\
 } while (0)
 
 #ifndef RS6000_BI_ARCH