projects
/
gcc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2aca5b9
)
* cccp.c (new_include_prefix): Correctly handle -I./.
author
Jeffrey A Law
<law@cygnus.com>
Thu, 12 Feb 1998 23:45:20 +0000
(23:45 +0000)
committer
Jeff Law
<law@gcc.gnu.org>
Thu, 12 Feb 1998 23:45:20 +0000
(16:45 -0700)
From-SVN: r17886
gcc/ChangeLog
patch
|
blob
|
history
gcc/cccp.c
patch
|
blob
|
history
diff --git
a/gcc/ChangeLog
b/gcc/ChangeLog
index d0f258ff2607996f711809260727898bda62ce21..7ac40d5b935a648fbbce3e59f77eeddd7ed3b8eb 100644
(file)
--- a/
gcc/ChangeLog
+++ b/
gcc/ChangeLog
@@
-1,3
+1,7
@@
+Fri Feb 13 00:46:19 1998 Jeffrey A Law (law@cygnus.com)
+
+ * cccp.c (new_include_prefix): Correctly handle -I./.
+
Thu Feb 12 20:16:35 1998 Michael Meissner <meissner@cygnus.com>
* rs6000.md: Replace gen_rtx (CONST_INT,...) with GEN_INT.
diff --git
a/gcc/cccp.c
b/gcc/cccp.c
index c394ea2ecc20df3eb5167a2979f1bb1b1fe0fae2..f8877be99df9a5c0816bfa7c604b856e1d66d290 100644
(file)
--- a/
gcc/cccp.c
+++ b/
gcc/cccp.c
@@
-9814,7
+9814,7
@@
new_include_prefix (prev_file_name, component, prefix, name)
len = simplify_filename (dir->fname);
/* Convert directory name to a prefix. */
- if (dir->fname[len - 1] != DIR_SEPARATOR) {
+ if (
len &&
dir->fname[len - 1] != DIR_SEPARATOR) {
if (len == 1 && dir->fname[len - 1] == '.')
len = 0;
else