3.4 i386 code generation problem with leal

Jan Hubicka jh@suse.cz
Fri Apr 4 21:58:00 GMT 2003


> Brad Lucier <lucier@math.purdue.edu> writes:
> 
> > Anyway, can someone try to compile the actual file I used and if it works
> > for you, I'll start trying system-level things rather than installing
> > newer versions of the software.
> 
> I tried with:
> 
> arthur:~:[0]$  /opt/gcc/3.4-devel/bin/gcc --version
> gcc (GCC) 3.4 20030404 (experimental)
> Copyright (C) 2002 Free Software Foundation, Inc.
> This is free software; see the source for copying conditions.  There is NO
> warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
> 
> arthur:~:[0]$ as --version
> GNU assembler 2.13.90.0.18 20030121 (SuSE Linux)
> Copyright 2002 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 `i486-suse-linux'.
> 
> and get the same error:
> rthur:~/tmp:[1]$ /opt/gcc/3.4-devel/bin/gcc -DHAVE_CONFIG_H -I. -I. -I. -DC_STACK_GROWS_DOWNWARD=1 -DC_INSTALL_LIB_HOME=\"/usr/local/chicken-1.0/lib/chicken\" -DC_USE_C_DEFAULTS -DC_NO_PIC_NO_DLL -DC_BUILDING_LIBCHICKEN -O3 -fomit-frame-pointer -DHAVE_ALLOCA_H -fstrict-aliasing -c library.i -fpreprocessed -fPIC -DPIC -o libchicken_la-library.lo 
> /tmp/ccb1GpE4.s: Assembler messages:
> /tmp/ccb1GpE4.s:52511: Error: suffix or operands invalid for `lea'
> 
> But that line is:
>    52511         leal    $1196+lf@GOTOFF, %esi
> 
> And this looks really broken,

Yes, that may be leftout of my PIC changes.  I will dig into this.

Honza
> 
> Andreas
> -- 
>  Andreas Jaeger
>   SuSE Labs aj@suse.de
>    private aj@arthur.inka.de
>     http://www.suse.de/~aj



More information about the Gcc-bugs mailing list