From: Bob Wilson Date: Tue, 11 Jun 2002 03:50:59 +0000 (+0000) Subject: xtensa.c (override_options): Don't warn about using -fpic or -fPIC when PIC is enable... X-Git-Tag: releases/gcc-3.3.0~4419 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=a69c385e7318af362c94b35283c833ff8dca03e1;p=thirdparty%2Fgcc.git 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 --- 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; }