aboutsummaryrefslogtreecommitdiff
path: root/gcc/tree.c
diff options
context:
space:
mode:
authorMaciej W. Rozycki <macro@wdc.com>2019-11-30 11:10:50 +0000
committerMaciej W. Rozycki <macro@gcc.gnu.org>2019-11-30 11:10:50 +0000
commit7a4f45d7e61e651330931df9d09fe6299874929d (patch)
treeae9b2d3a93d86332aadf4cefe4fc8ecc873b0f93 /gcc/tree.c
parentbd661b0f25b18ff358cdf255a175803548689361 (diff)
downloadgcc-7a4f45d7e61e651330931df9d09fe6299874929d.zip
gcc-7a4f45d7e61e651330931df9d09fe6299874929d.tar.gz
gcc-7a4f45d7e61e651330931df9d09fe6299874929d.tar.bz2
driver: Do not warn about ineffective `-x' option if no inputs were given
Fix an issue with the GCC driver and the `-x' option where a warning is issued in an invocation like: $ riscv64-linux-gnu-gcc -print-multi-directory -x c++ riscv64-linux-gnu-gcc: warning: '-x c++' after last input file has no effect lib64/lp64d $ where no inputs were given and hence the use of `-x' is irrelevant. The statement printed is also untrue as the `-x' does not come after the last input file given that none was given. Do not print it then if no inputs were supplied. * gcc.c (process_command): Only warn about an ineffective `-x' option if any input files have actually been supplied. From-SVN: r278872
Diffstat (limited to 'gcc/tree.c')
0 files changed, 0 insertions, 0 deletions