g77 -fPIC: bad assembler?
Douglas Ridgway
ridgway@gmcl.com
Fri Mar 13 13:37:00 GMT 1998
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
More information about the Gcc-bugs
mailing list