Red Hat axp-list: Linux on Alpha (1995-2022)
 help / color / mirror / Atom feed
From: hjstein@bfr.co.il (Harvey J. Stein)
To: axp-list@redhat.com
Cc: hjstein@bfr.co.il
Subject: Re: gcc on alpha
Date: 10 Mar 1999 14:06:37 +0200	[thread overview]
Message-ID: <m2sobdo8fm.fsf@blinky.bfr.co.il> (raw)
In-Reply-To: mgraffam@idsi.net's message of "Tue, 9 Mar 1999 17:08:35 -0500 (EST)"


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


      parent reply	other threads:[~1999-03-10 12:13 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1999-03-09 22:08 gcc on alpha mgraffam
1999-03-10  9:55 ` Stefan Reinauer
1999-03-10 12:06 ` Harvey J. Stein [this message]
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox