diff --git a/gcc/gcc.c b/gcc/gcc.c index 5b17123202ad..cc8374c6a767 100644 --- a/gcc/gcc.c +++ b/gcc/gcc.c @@ -515,6 +515,7 @@ static struct compiler default_compilers[] = %i %W{o*}"}, {".cc", "@c++"}, {".cxx", "@c++"}, + {".cpp", "@c++"}, {".C", "@c++"}, {"@c++", "cpp -lang-c++ %{nostdinc*} %{C} %{v} %{A*} %{I*} %{P} %I\