From: bwilson Date: Tue, 11 Jun 2002 03:50:59 +0000 (+0000) Subject: * config/xtensa/xtensa.c (override_options): Don't warn about X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=1bc6752875c37f0e7dfdd1755ef1741450271010;p=thirdparty%2Fgcc.git * config/xtensa/xtensa.c (override_options): Don't warn about using -fpic or -fPIC when PIC is enabled by default. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@54483 138bc75d-0d04-0410-961f-82ee72b054a4 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index d6571bf5d79a..25968e9b5d47 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2002-06-10 Bob Wilson + + * 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 * 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 f2cb700e1ba1..dd9ad7d8005d 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; }