diff --git a/Changes b/Changes index d8decbde6..79aff6914 100644 --- a/Changes +++ b/Changes @@ -7,6 +7,9 @@ indicates the contributor was also the author of the fix; Thanks! **** Fix MinGW compiler error, bug929. [Hans Tichelaar] +**** Fix .c files to be treated as .cpp, bug930. [Jonathon Donaldson] + + * Verilator 3.874 2015-06-06 *** Add pkg-config .pc file, bug919. [Stefan Wallentowitz] diff --git a/src/V3Options.cpp b/src/V3Options.cpp index 54f8efeef..8570953b8 100644 --- a/src/V3Options.cpp +++ b/src/V3Options.cpp @@ -960,6 +960,7 @@ void V3Options::parseOptsList(FileLine* fl, const string& optdir, int argc, char if (suffixed(filename.c_str(), ".cpp") || suffixed(filename.c_str(), ".cxx") || suffixed(filename.c_str(), ".cc") + || suffixed(filename.c_str(), ".c") || suffixed(filename.c_str(), ".sp")) { V3Options::addCppFile(filename); }