diff options
Diffstat (limited to 'gcc/gimple-expr.c')
-rw-r--r-- | gcc/gimple-expr.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gcc/gimple-expr.c b/gcc/gimple-expr.c index 9d8034c3192..13e55ef55fe 100644 --- a/gcc/gimple-expr.c +++ b/gcc/gimple-expr.c @@ -388,14 +388,14 @@ copy_var_decl (tree var, tree name, tree type) /* Strip off a legitimate source ending from the input string NAME of length LEN. Rather than having to know the names used by all of our front ends, we strip off an ending of a period followed by - up to five characters. (Java uses ".class".) */ + up to four characters. (like ".cpp".) */ static inline void remove_suffix (char *name, int len) { int i; - for (i = 2; i < 8 && len > i; i++) + for (i = 2; i < 7 && len > i; i++) { if (name[len - i] == '.') { |