]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
* config/xtensa/xtensa.c (override_options): Set flag_shlib.
authorBob Wilson <bob.wilson@acm.org>
Fri, 11 Jan 2008 23:22:54 +0000 (23:22 +0000)
committerBob Wilson <bwilson@gcc.gnu.org>
Fri, 11 Jan 2008 23:22:54 +0000 (23:22 +0000)
From-SVN: r131479

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

index b77162672a0eaa80ee814785d4aef6b7c4765a58..a0d2cc3b697e21afa20ad47bbdb48f05be4809a2 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-09  Richard Guenther  <rguenther@suse.de>
 
        PR middle-end/34679
index efec76ddc24d879e7d421ea7afae44e793e19745..ee91eafc47d90681e9a2c3224c55d2de26f0ab76 100644 (file)
@@ -1579,6 +1579,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).