This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[PATCH] Fix build instructions


Hi,

Am I mistaken or are the following lines in doc/install.texi not accurate 
anymore?

"If you want to save additional space during the bootstrap and in
the final installation as well, you can build the compiler binaries
without debugging information as in the following example.  This will save
roughly 40% of disk space both for the bootstrap and the final installation.
(Libraries will still contain debugging information.)

@smallexample
     make CFLAGS='-O' LIBCFLAGS='-g -O2' \
       LIBCXXFLAGS='-g -O2 -fno-implicit-templates' bootstrap
@end smallexample"


The compiler binaries that get installed after a bootstrap are commanded by 
BOOT_CFLAGS, not CFLAGS.  Morever, I think that using -O for the bootstrap 
compiler is not safe, as it can trigger optimization bugs in that compiler.  
Hence the proposed correction.


2004-07-15  Eric Botcazou  <ebotcazou@libertysurf.fr>

	* doc/install.texi (Building): Correct command line for the
	space-savvy bootstrap.


-- 
Eric Botcazou
Index: doc/install.texi
===================================================================
RCS file: /cvs/gcc/gcc/gcc/doc/install.texi,v
retrieving revision 1.297
diff -u -r1.297 install.texi
--- doc/install.texi	9 Jul 2004 18:06:16 -0000	1.297
+++ doc/install.texi	15 Jul 2004 08:46:33 -0000
@@ -1462,8 +1462,8 @@
 (Libraries will still contain debugging information.)
 
 @smallexample
-     make CFLAGS='-O' LIBCFLAGS='-g -O2' \
-       LIBCXXFLAGS='-g -O2 -fno-implicit-templates' bootstrap
+     make BOOT_CFLAGS='-O2' LIBCFLAGS='-g -O2' \
+       LIBCXXFLAGS='-g -O2 -fno-implicit-templates' bootstrap-lean
 @end smallexample
 
 If you wish to use non-default GCC flags when compiling the stage2 and

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]