OSDN Git Service

* doc/invoke.texi (Invoking G++): Clarify prose for g++.
authormrs <mrs@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 5 Jul 2006 22:17:28 +0000 (22:17 +0000)
committermrs <mrs@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 5 Jul 2006 22:17:28 +0000 (22:17 +0000)
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@115211 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/ChangeLog
gcc/doc/invoke.texi

index b91fd74..6a4d377 100644 (file)
@@ -1,3 +1,7 @@
+2006-07-05  Mike Stump  <mrs@apple.com>
+
+       * doc/invoke.texi (Invoking G++): Clarify prose for g++.
+
 2006-07-05  H.J. Lu  <hongjiu.lu@intel.com>
 
        PR target/26146
index 0c5e382..a4896a5 100644 (file)
@@ -1089,15 +1089,14 @@ with the name @command{gcc}).
 
 @findex g++
 @findex c++
-However, C++ programs often require class libraries as well as a
-compiler that understands the C++ language---and under some
-circumstances, you might want to compile programs or header files from
-standard input, or otherwise without a suffix that flags them as C++
-programs.  You might also like to precompile a C header file with a
-@samp{.h} extension to be used in C++ compilations.  @command{g++} is a
-program that calls GCC with the default language set to C++, and
-automatically specifies linking against the C++ library.  On many
-systems, @command{g++} is also installed with the name @command{c++}.
+However, the use of @command{gcc} does not add the C++ library.
+@command{g++} is a program that calls GCC and treats @samp{.c},
+@samp{.h} and @samp{.i} files as C++ source files instead of C source
+files unless @option{-x} is used, and automatically specifies linking
+against the C++ library.  This is also useful when precompiling a C
+header file with a @samp{.h} extension for use in C++ compilations.
+On many systems, @command{g++} is also installed with the name
+@command{c++}.
 
 @cindex invoking @command{g++}
 When you compile C++ programs, you may specify many of the same