diff options
author | dpatel <dpatel@138bc75d-0d04-0410-961f-82ee72b054a4> | 2002-12-19 20:34:43 +0000 |
---|---|---|
committer | dpatel <dpatel@138bc75d-0d04-0410-961f-82ee72b054a4> | 2002-12-19 20:34:43 +0000 |
commit | 72381a64630f6002024b62ebcefb0b2a386e01fd (patch) | |
tree | 3f72fd389ccdba5583a6a5afbd3265d8546fbccc /gcc/doc/invoke.texi | |
parent | 927f1f0cc9a58f86297d6aea6c7c2952ce9be48e (diff) | |
download | gcc-72381a64630f6002024b62ebcefb0b2a386e01fd.tar.gz |
This was approved for 3.4 BIB branch. But since it is dead now, I am putting
this in mainline sources.
2002-12-19 Devang Patel <dpatel@apple.com>
* gcc.c (struct default_compiler): Recognizes input file name with
.CPP extension as C++ source files
* cp/lang-spec.h: Same
* doc/invoke.texi: Add documentation for .CPP support.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@60330 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/doc/invoke.texi')
-rw-r--r-- | gcc/doc/invoke.texi | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/gcc/doc/invoke.texi b/gcc/doc/invoke.texi index baab4a9feba..f800c1e7dca 100644 --- a/gcc/doc/invoke.texi +++ b/gcc/doc/invoke.texi @@ -792,6 +792,7 @@ C header file (not to be compiled or linked). @itemx @var{file}.cp @itemx @var{file}.cxx @itemx @var{file}.cpp +@itemx @var{file}.CPP @itemx @var{file}.c++ @itemx @var{file}.C C++ source code which must be preprocessed. Note that in @samp{.cxx}, @@ -983,7 +984,7 @@ Display the version number and copyrights of the invoked GCC. @cindex suffixes for C++ source @cindex C++ source file suffixes C++ source files conventionally use one of the suffixes @samp{.C}, -@samp{.cc}, @samp{.cpp}, @samp{.c++}, @samp{.cp}, or @samp{.cxx}; +@samp{.cc}, @samp{.cpp}, @samp{.CPP}, @samp{.c++}, @samp{.cp}, or @samp{.cxx}; preprocessed C++ files use the suffix @samp{.ii}. GCC recognizes files with these names and compiles them as C++ programs even if you call the compiler the same way as for compiling C programs (usually with |