From: Richard Kenner Date: Wed, 22 Dec 1993 12:47:03 +0000 (-0500) Subject: (strip_off_ending): Strip off ".cpp" extension. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=4da617d8829dacb2cb45d63e269690baeca68149;p=gcc.git (strip_off_ending): Strip off ".cpp" extension. From-SVN: r6262 --- diff --git a/gcc/toplev.c b/gcc/toplev.c index b60c6245a51..10d4f894b06 100644 --- 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