* config/xtensa/xtensa.c (override_options): Set flag_shlib.
authorBob Wilson <bob.wilson@acm.org>
Fri, 11 Jan 2008 22:44:47 +0000 (22:44 +0000)
committerBob Wilson <bwilson@gcc.gnu.org>
Fri, 11 Jan 2008 22:44:47 +0000 (22:44 +0000)
From-SVN: r131478

gcc/ChangeLog
gcc/config/xtensa/xtensa.c

index 7deb6fd..95529f5 100644 (file)
@@ -1,3 +1,7 @@
+2008-01-11  Bob Wilson  <bob.wilson@acm.org>
+       
+       * config/xtensa/xtensa.c (override_options): Set flag_shlib.
+       
 2008-01-11  James E. Wilson  <wilson@specifix.com>
 
        PR target/26015
index 62eadbb..76cd5f4 100644 (file)
@@ -1908,6 +1908,8 @@ override_options (void)
   /* There's no need for -fPIC (as opposed to -fpic) on Xtensa.  */
   if (flag_pic > 1)
     flag_pic = 1;
+  if (flag_pic && !flag_pie)
+    flag_shlib = 1;
 
   /* Hot/cold partitioning does not work on this architecture, because of
      constant pools (the load instruction cannot necessarily reach that far).