Remove unnecessary calls to strchr.
authorIlya Tocar <ilya.tocar@intel.com>
Tue, 25 Nov 2014 13:56:03 +0000 (13:56 +0000)
committerIlya Tocar <tocarip@gcc.gnu.org>
Tue, 25 Nov 2014 13:56:03 +0000 (16:56 +0300)
commit191ec64036b11c0b56aa0d2a387e936286103d2e
tree9ecd455af2d5a192d1d2e62f558b237a9f88e62d
parenta959b33fc4a5b4dffc55d5c7f105dc1096a75b42
Remove unnecessary calls to strchr.

gcc/
* gcc.c (handle_foffload_option): Remove unnecessary calls to strchr,
strlen, strncpy.
* lto-wrapper.c (append_offload_options): Likewise.

Co-Authored-By: Jakub Jelinek <jakub@redhat.com>
From-SVN: r218044
gcc/ChangeLog
gcc/gcc.c
gcc/lto-wrapper.c