From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (qmail 1565 invoked from network); 10 Mar 1999 12:13:39 -0000 Received: from mail.redhat.com (199.183.24.239) by lists.redhat.com with SMTP; 10 Mar 1999 12:13:39 -0000 Received: from blinky.bfr.co.il (hjstein@morannon.bfr.co.il [192.116.142.129]) by mail.redhat.com (8.8.7/8.8.7) with ESMTP id HAA11773 for ; Wed, 10 Mar 1999 07:06:46 -0500 Received: (from hjstein@localhost) by blinky.bfr.co.il (8.8.5/8.6.9) id OAA03497; Wed, 10 Mar 1999 14:06:37 +0200 To: axp-list@redhat.com Subject: Re: gcc on alpha References: CC: hjstein@bfr.co.il From: hjstein@bfr.co.il (Harvey J. Stein) Date: 10 Mar 1999 14:06:37 +0200 In-Reply-To: mgraffam@idsi.net's message of "Tue, 9 Mar 1999 17:08:35 -0500 (EST)" Message-ID: X-Mailer: Gnus v5.6.4/Emacs 19.34 >From http://www.alphalinux.org/docs/alpha-notes/alpha-patches-n-bugfixes.html 3. GCC Bugs and Bug Fixes. As far as I know, there are two bugs in the gcc included in Redhat 4.2 (gcc-2.7.2.1-2). The first is that gcc might produce code which the assembler can't assemble. This can be triggered by very large stack frames, and manifests itself by the messages such as: /tmp/cca01041.s: Assembler messages: /tmp/cca01041.s:786: Error: macro requires $at register while noat in effect when compiling programs. Richard Henderson fixed the problem and posted a patch to axp-list@redhat.com. The other bug is a profiling failure (which I'm not sure I've witnessed). Toon Moene posted a patch for this. Here're the two patches as well as an RPM spec file for rebuilding gcc-2.7.2.1. They've been tarred, gzipped uuencoded, named gcc-new-patches.tar.gz.uue and included in the Patches section. You should install the Redhat gcc-2.7.2.1-2.src.rpm (rpm -Uvh gcc-2.7.2.1-2.src.rpm), then untar this, put the gcc-2.7.2.1.spec included here into /usr/src/redhat/SPECS, put rth-gcc-2.7.2-970921.diff.gz and gcc-alpha-profiling-patch-2.7.2.1-toon-971001 into /usr/src/redhat/SOURCES, and build gcc (rpm -ba /usr/src/redhat/SPECS/gcc-2.7.2.1.spec). This will create a binary rpm for gcc in /usr/src/redhat/RPMS/alpha named gcc-2.7.2.1-2c.alpha.rpm which you can then install. I don't know which version of gcc is from 5.0, but it might have the same bug, in which case you might be able to fix it the same way. BTW, said patches are also available in the above doc. mgraffam@idsi.net writes: > Hello all.. > > I am running RH 5.1 on my UDB, with the gcc RPMs from 5.0 installed. > > I recently ran into a bit of a problem in compiling some C code with > gcc. It is generating bogus assembler. > > I get a bunch of these: > > /tmp/cca14951.s:358: Error: macro requires $at register while noat in effect > > The C code that I am compiling doesn't do anything too funky (I don't > think :) .. just defines a Complex type consisting of two floats, and > declares a matrix of them, and then I pass them around and do some math. > > This code compiles nicely and works fine on Linux/Intel (gcc 2.7.2.3, > same as my Alpha). > > egcs on the Alpha works fine too. > > Is gcc known to have problems? > > Michael J. Graffam (mgraffam@idsi.net) > They (who) seek to establish systems of government based on the > regimentation of all human beings by a handful of individual rulers.. > call this a new order. It is not new, and it is not order." > - Franklin Delano Roosevelt > > -- > To unsubscribe: send e-mail to axp-list-request@redhat.com with > 'unsubscribe' as the subject. Do not send it to axp-list@redhat.com > -- Harvey J. Stein BFM Financial Research hjstein@bfr.co.il