projects
/
gcc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c75ac90
)
(do_pragma): Use rindex, not strrchr.
author
Richard Stallman
<rms@gnu.org>
Sat, 29 Aug 1992 03:47:56 +0000
(
03:47
+0000)
committer
Richard Stallman
<rms@gnu.org>
Sat, 29 Aug 1992 03:47:56 +0000
(
03:47
+0000)
From-SVN: r1992
gcc/cccp.c
patch
|
blob
|
history
diff --git
a/gcc/cccp.c
b/gcc/cccp.c
index eb159bb1ec938e35c61cf0a146fb1212f5323d32..df925acbde1715960030f5e5a87c325f907c9cd2 100644
(file)
--- a/
gcc/cccp.c
+++ b/
gcc/cccp.c
@@
-5897,7
+5897,7
@@
do_pragma (buf, limit)
*p = '\0';
for (ptr = all_include_files; ptr; ptr = ptr->next) {
- inc_fname = (U_CHAR *)
strrchr
(ptr->fname, '/');
+ inc_fname = (U_CHAR *)
rindex
(ptr->fname, '/');
inc_fname = inc_fname ? inc_fname + 1 : ptr->fname;
if (inc_fname && !strcmp (inc_fname, fname))
warning ("`#pragma implementation' for `%s' appears after file is included",