This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: g77 -fPIC: bad assembler?
- To: Douglas Ridgway <ridgway at gmcl dot com>
- Subject: Re: g77 -fPIC: bad assembler?
- From: Douglas Johnson <djohnson at mps dot ohio-state dot edu>
- Date: Fri, 13 Mar 1998 21:07:50 -0500 (EST)
- cc: egcs-bugs at cygnus dot com
Hi,
I believe your command line was actually g77 -fPIC -c -save-temps
weeks.f. Your problem is old binutils, you need at least
binutils-2.8.1.0.1.
Doug
On Fri, 13 Mar 1998, Douglas Ridgway wrote:
>
> Platform is Red Hat 5.0 on an intel 486, with egcs-1.0 from contrib.
>
> The problem program is at:
>
> ftp://gmcl.com/pub/weeks.f
>
> ridgway@taiga:~/weeks> g77 -fPIC -save-temps weeks.f
> weeks.s: Assembler messages:
> weeks.s:3183: Error: operands given don't match any known 386 instruction
> ridgway@taiga:~/weeks> tail +3183 weeks.s | head
> leal .LC9@GOTOFF(%ebx),-344(%ebp)
> pushl -344(%ebp)
> fldl -132(%ebp)
> fdivl -148(%ebp)
> fstpl -304(%ebp)
> leal -304(%ebp),%esi
> movl %esi,-344(%ebp)
> pushl -344(%ebp)
> call pow_dd@PLT
> addl $8,%esp
> ridgway@taiga:~/weeks> g77 --version
> egcs-2.90.23 980102 (egcs-1.0.1 release)
> ridgway@taiga:~/weeks> as --version
> GNU assembler 2.8.1
> Copyright 1997 Free Software Foundation, Inc.
> This program is free software; you may redistribute it under the terms of
> the GNU General Public License. This program has absolutely no warranty.
> This assembler was configured for a target of `i686-pc-linux-gnu'.
> ridgway@taiga:~/weeks> rpm -qf `which g77`
> egcs-g77-1.0.1-1
> ridgway@taiga:~/weeks> rpm -qf `which as`
> binutils-2.8.1.0.1-1
>
> Any help appreciated.
>
> Doug.
>
> ridgway@phys.ualberta.ca
>
>