diff mbox

PR other/54324: allow bootstrapping with older compilers

Message ID 50D0928B.5020900@redhat.com
State New
Headers show

Commit Message

Aldy Hernandez Dec. 18, 2012, 3:58 p.m. UTC
On 12/12/12 03:33, Richard Biener wrote:
> On Tue, 11 Dec 2012, Aldy Hernandez wrote:
>> 4. Type checking as part of a `for' initializer segfaults on g++ 3.2:
>>
>> 	for (type = TYPE_MAIN_VARIANT (blah); ....)
>>
>>     The only reasonable thing I could think of, was disabling the tree
>>     checking code for older compilers.

> blocker anyway.  For 4. I think we should simply document that
> you need to build with --disable-stage1-checking (it's one case that
> hints at we don't want to support 3.2 - does 3.3 work here?  With
> our SLE9 gcc 3.3 hammer branch based compiler I get even some more
> ICEs).

Hi Richard.

Attached is a patch documenting --disable-stage1-checking for older 
GCC's with a suggested discouragement.

OK for trunk?
commit da7964f82e42499dde24e7029b4454637ae68e85
Author: Aldy Hernandez <aldyh@redhat.com>
Date:   Tue Dec 18 09:55:39 2012 -0600

    	PR other/54324
    	* doc/install.texi (Tools/packages necessary for building GCC):
    	Suggest --disable-stage1-checking for older GCC's.

Comments

Richard Biener Dec. 18, 2012, 3:59 p.m. UTC | #1
On Tue, 18 Dec 2012, Aldy Hernandez wrote:

> On 12/12/12 03:33, Richard Biener wrote:
> > On Tue, 11 Dec 2012, Aldy Hernandez wrote:
> > > 4. Type checking as part of a `for' initializer segfaults on g++ 3.2:
> > > 
> > > 	for (type = TYPE_MAIN_VARIANT (blah); ....)
> > > 
> > >     The only reasonable thing I could think of, was disabling the tree
> > >     checking code for older compilers.
> 
> > blocker anyway.  For 4. I think we should simply document that
> > you need to build with --disable-stage1-checking (it's one case that
> > hints at we don't want to support 3.2 - does 3.3 work here?  With
> > our SLE9 gcc 3.3 hammer branch based compiler I get even some more
> > ICEs).
> 
> Hi Richard.
> 
> Attached is a patch documenting --disable-stage1-checking for older GCC's with
> a suggested discouragement.
> 
> OK for trunk?

Ok.

Thanks,
Richard.
diff mbox

Patch

diff --git a/gcc/doc/install.texi b/gcc/doc/install.texi
index e534216..8273a87 100644
--- a/gcc/doc/install.texi
+++ b/gcc/doc/install.texi
@@ -254,6 +254,11 @@  To build all languages in a cross-compiler or other configuration where
 GCC binary (version 3.4 or later) because source code for language
 frontends other than C might use GCC extensions.
 
+Note that to bootstrap GCC with versions of GCC earlier than 3.4, you
+may need to use @option{--disable-stage1-checking}, though
+bootstrapping the compiler with such earlier compilers is strongly
+discouraged.
+
 @item GNAT
 
 In order to build the Ada compiler (GNAT) you must already have GNAT