projects
/
gcc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a0c2b8e
)
(strip_off_ending): Strip off ".cpp" extension.
author
Richard Kenner
<kenner@gcc.gnu.org>
Wed, 22 Dec 1993 12:47:03 +0000
(07:47 -0500)
committer
Richard Kenner
<kenner@gcc.gnu.org>
Wed, 22 Dec 1993 12:47:03 +0000
(07:47 -0500)
From-SVN: r6262
gcc/toplev.c
patch
|
blob
|
history
diff --git
a/gcc/toplev.c
b/gcc/toplev.c
index b60c6245a515f0fbb2b42595920cfe79c743f384..10d4f894b062b662330507e4b1c744c2a41d9086 100644
(file)
--- a/
gcc/toplev.c
+++ b/
gcc/toplev.c
@@
-1499,6
+1499,8
@@
strip_off_ending (name, len)
name[len - 2] = 0;
else if (len > 4 && ! strcmp (".cxx", name + len - 4))
name[len - 4] = 0;
+ else if (len > 4 && ! strcmp (".cpp", name + len - 4))
+ name[len - 4] = 0;
else if (len > 2 && ! strcmp (".f", name + len - 2))
name[len - 2] = 0;
/* Ada will use extensions like .ada, .adb, and .ads, so just test