Usenet comp.unix.tru64 (2000-2013)
 help / color / mirror / Atom feed
From: mooney@dogbert.cc.ndsu.NoDak.edu (Tim Mooney)
Subject: Re: Compaq C & gcc
Date: 6 Jun 2001 15:49:22 GMT	[thread overview]
Message-ID: <9flje2$g6i$1@news.ndsu.nodak.edu> (raw)
In-Reply-To: 991734380@f1.n7600.z242.fido.de

In article <991734380@f1.n7600.z242.fido.de>,
Tobias Ernst <tobi@bland.fido.de> wrote:
> 
> The problem lies buried in the fact that 5.1 has a different assembler 
> than 5.0(a), and gcc cannot use the GNU assembler on Tru64, but has to 
> use DEC's assembler.

When I was reading the release notes for 5.1, when I got to the note
about the new assembler, my first thought was "Hmmm, I bet this will break
gcc."  Imagine my surprise when I was right.  ;-)

Luckily, the new assembler provides a command line flag (mentioned in
the release notes, I can't find it mentioned in the man page) that will
invoke the older assembler.

This means that gcc can be built and used to just invoke the older assembler,
until the new one works with gcc (may even work now, if patch kit #3 is
installed -- I'm not sure).  There are at least two ways you might get
this to work:

1) create a wrapper script named `as', make it executable, and just have
it exec the system `as' with the additional option to get the older assembler.
Make sure this is in gcc's build directory while building, and in the platform
tools directory after installation.

2) once gcc is installed, you might be able to get rid of the wrapper script
altogether.  gcc uses (?) a file called `specs' that gets installed deep
under the lib/gcc-lib directory that has entries for how to invoke various
tools.  There *might* be an entry for `as'.  If you add the necessary flag
to get the old as, that *might* be all gcc needs, from that point on.

I haven't tried either of these on 5.1, but #1 should be fairly easy
to accomplish.

Tim
-- 
Tim Mooney                              mooney@dogbert.cc.ndsu.NoDak.edu
Information Technology Services         (701) 231-1076 (Voice)
Room 242-J6, IACC Building              (701) 231-8541 (Fax)
North Dakota State University, Fargo, ND 58105-5164


  reply	other threads:[~2001-06-06 15:49 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-06-04 21:13 Compaq C & gcc LoneStar
2001-06-05  8:43 ` Tobias Ernst
2001-06-06 15:49   ` Tim Mooney [this message]
2001-06-06 18:37     ` Rainer Orth
2001-06-06 22:28     ` Mumit Khan
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