From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jim Wilson To: oliva@dcc.unicamp.br Cc: egcs@egcs.cygnus.com Subject: Re: bootstrapping with `cc -n32' on IRIX 6.3 fails compare Date: Wed, 31 Mar 1999 23:46:00 -0000 Message-ID: <199903242041.MAA20574@rtl.cygnus.com> References: <199903231735.MAA09771@caip.rutgers.edu> X-SW-Source: 1999-03n/msg00774.html Message-ID: <19990331234600.pk1LlAvL6Gxd7aok-ZL59yIMGWgc-aKdHn3HtEC1ljg@z> In article you write: >oliva@duerer% versions | grep c_dev >I c_dev 11/12/97 C, 7.0 All versions of SGI C before v7.1beta have bugs that cause gcc to be miscompiled when using the -n32 option. With SGI C v7.0, there was only one bug that I found. It miscompiles a little bit of code in one of the optimization passes, with the result that the optimization does not happen. You still get correct code though. Hence you can successfully bootstrap if you go a fourth stage. stage1: compiled with one optimization disabled stage2: compiled OK, but only partially optimized stage3: compiled OK, and completely optimized stage4: compiled OK, and completely optimized I don't recall what the v7.0 bug was. I reported it to SGI about 3 years ago, and it was fixed by v7.1beta about 3 years ago. As far as I know, all versions from v7.1beta and later are OK. Jim