diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 00a4a4b7c1ed..6cbcf61e1422 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2010-11-17 Joakim Tjernlund + + * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Support -fpic + as well as -mrelocatable at the same time. + 2010-11-17 Quentin Neill PR target/46422 diff --git a/gcc/config/rs6000/sysv4.h b/gcc/config/rs6000/sysv4.h index 4fda7fd06e3e..e82a1c6d34e8 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