diff options
author | Olivier Hainque <hainque@adacore.com> | 2020-02-28 16:35:05 +0000 |
---|---|---|
committer | Olivier Hainque <hainque@adacore.com> | 2020-10-14 14:18:58 +0000 |
commit | c602426cc72a5ac89efac61a195ee38358688c1d (patch) | |
tree | 71f50264d9b5116be4e26ac4316d540ea093dfe6 /gcc/tree-object-size.c | |
parent | 143384686241627bd96a5f7509aee3a8291280a5 (diff) | |
download | gcc-c602426cc72a5ac89efac61a195ee38358688c1d.zip gcc-c602426cc72a5ac89efac61a195ee38358688c1d.tar.gz gcc-c602426cc72a5ac89efac61a195ee38358688c1d.tar.bz2 |
Tigthen flag_pic processing in vxworks_override_options
This fixes spurious complaints about PIC mode not supported
from "gcc --help=...", on VxWorks without -mrtp. The spurious message
is emitted by vxworks_override_options, called with flag_pic == -1
when we're running for --help.
The change simply adjusts the check testing for "we're generating pic code"
to "flag_pic > 0" instead of just "flag_pic". We're not generating code at
all when reaching here with -1.
gcc/ChangeLog:
2020-10-14 Olivier Hainque <hainque@adacore.com>
* config/vxworks.c (vxworks_override_options): Guard pic checks with
flag_pic > 0 instead of just flag_pic.
Diffstat (limited to 'gcc/tree-object-size.c')
0 files changed, 0 insertions, 0 deletions