aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorBob Wilson <bob.wilson@acm.org>2008-01-11 22:44:47 +0000
committerBob Wilson <bwilson@gcc.gnu.org>2008-01-11 22:44:47 +0000
commit166b25dc4fe4b6207122dff5353db10d9a682a1b (patch)
treea3fd8cecee10380071180412bfa22954002ca1a6 /gcc
parentad8151b7f27e506035d8eed8ed1d80e81ded7937 (diff)
downloadgcc-166b25dc4fe4b6207122dff5353db10d9a682a1b.zip
gcc-166b25dc4fe4b6207122dff5353db10d9a682a1b.tar.gz
gcc-166b25dc4fe4b6207122dff5353db10d9a682a1b.tar.bz2
* config/xtensa/xtensa.c (override_options): Set flag_shlib.
From-SVN: r131478
Diffstat (limited to 'gcc')
-rw-r--r--gcc/ChangeLog4
-rw-r--r--gcc/config/xtensa/xtensa.c2
2 files changed, 6 insertions, 0 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 7deb6fd..95529f5 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -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
diff --git a/gcc/config/xtensa/xtensa.c b/gcc/config/xtensa/xtensa.c
index 62eadbb..76cd5f4 100644
--- a/gcc/config/xtensa/xtensa.c
+++ b/gcc/config/xtensa/xtensa.c
@@ -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).