diff options
author | Bob Wilson <bob.wilson@acm.org> | 2002-06-11 03:50:59 +0000 |
---|---|---|
committer | Bob Wilson <bwilson@gcc.gnu.org> | 2002-06-11 03:50:59 +0000 |
commit | a69c385e7318af362c94b35283c833ff8dca03e1 (patch) | |
tree | c226a2b28723c5cacaf6ca7c16a13601dfb25a55 /gcc | |
parent | d8f19ccfabb5f1b18b42c4bd9f4e843687774b8d (diff) | |
download | gcc-a69c385e7318af362c94b35283c833ff8dca03e1.zip gcc-a69c385e7318af362c94b35283c833ff8dca03e1.tar.gz gcc-a69c385e7318af362c94b35283c833ff8dca03e1.tar.bz2 |
xtensa.c (override_options): Don't warn about using -fpic or -fPIC when PIC is enabled by default.
* config/xtensa/xtensa.c (override_options): Don't warn about
using -fpic or -fPIC when PIC is enabled by default.
From-SVN: r54483
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/config/xtensa/xtensa.c | 9 |
2 files changed, 6 insertions, 8 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index d6571bf..25968e9b 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2002-06-10 Bob Wilson <bob.wilson@acm.org> + + * config/xtensa/xtensa.c (override_options): Don't warn about + using -fpic or -fPIC when PIC is enabled by default. + 2002-06-10 Roger Sayle <roger@eyesopen.com> * toplev.c (rest_of_compilation): Revert flag_if_conversion change. diff --git a/gcc/config/xtensa/xtensa.c b/gcc/config/xtensa/xtensa.c index f2cb700..dd9ad7d 100644 --- a/gcc/config/xtensa/xtensa.c +++ b/gcc/config/xtensa/xtensa.c @@ -1839,14 +1839,7 @@ override_options () /* Check PIC settings. There's no need for -fPIC on Xtensa and some targets need to always use PIC. */ - if (XTENSA_ALWAYS_PIC) - { - if (flag_pic) - warning ("-f%s ignored (all code is position independent)", - (flag_pic > 1 ? "PIC" : "pic")); - flag_pic = 1; - } - if (flag_pic > 1) + if (flag_pic > 1 || (XTENSA_ALWAYS_PIC)) flag_pic = 1; } |