diff options
author | jsm28 <jsm28@138bc75d-0d04-0410-961f-82ee72b054a4> | 2000-11-02 19:03:59 +0000 |
---|---|---|
committer | jsm28 <jsm28@138bc75d-0d04-0410-961f-82ee72b054a4> | 2000-11-02 19:03:59 +0000 |
commit | 78dbff7cf909ce370d16c2b4c185ec01e419fe4c (patch) | |
tree | 79fd392a778483e0dba0d31c32d9d005dc4fdeeb /gcc/cp/dump.c | |
parent | a3f30566986f897fcef17b98f722a0227de49492 (diff) | |
download | gcc-78dbff7cf909ce370d16c2b4c185ec01e419fe4c.tar.gz |
* collect2.c (main, write_c_file_stat), gcc.c (translate_options,
process_command, main), gcov.c (open_files, output_data), tlink.c
(frob_extension, scan_linker_output), toplev.c
(file_name_nondirectory): Use strchr () and strrchr () instead of
index () and rindex ().
cp:
* dump.c (dequeue_and_dump), lex.c (interface_strcmp), method.c
(build_overload_value), repo.c (open_repo_file), xref.c
(open_xref_file): Use strchr () and strrchr () instead of index ()
and rindex ().
f:
* com.c (open_include_file, ffecom_open_include_): Use strchr ()
and strrchr () instead of index () and rindex ().
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@37206 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/cp/dump.c')
-rw-r--r-- | gcc/cp/dump.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/cp/dump.c b/gcc/cp/dump.c index d528e1c76d4..618a714e146 100644 --- a/gcc/cp/dump.c +++ b/gcc/cp/dump.c @@ -378,7 +378,7 @@ dequeue_and_dump (di) /* And a source position. */ if (DECL_SOURCE_FILE (t)) { - const char *filename = rindex (DECL_SOURCE_FILE (t), '/'); + const char *filename = strrchr (DECL_SOURCE_FILE (t), '/'); if (!filename) filename = DECL_SOURCE_FILE (t); else |