mirror of git://gcc.gnu.org/git/gcc.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
This commit is contained in:
parent
d8f19ccfab
commit
a69c385e73
|
@ -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>
|
2002-06-10 Roger Sayle <roger@eyesopen.com>
|
||||||
|
|
||||||
* toplev.c (rest_of_compilation): Revert flag_if_conversion change.
|
* toplev.c (rest_of_compilation): Revert flag_if_conversion change.
|
||||||
|
|
|
@ -1839,14 +1839,7 @@ override_options ()
|
||||||
|
|
||||||
/* Check PIC settings. There's no need for -fPIC on Xtensa and
|
/* Check PIC settings. There's no need for -fPIC on Xtensa and
|
||||||
some targets need to always use PIC. */
|
some targets need to always use PIC. */
|
||||||
if (XTENSA_ALWAYS_PIC)
|
if (flag_pic > 1 || (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)
|
|
||||||
flag_pic = 1;
|
flag_pic = 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue