This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: 3.4 i386 code generation problem with leal


> With
> 
> gcc -v
> Reading specs from /usr/local/gcc-3.4/lib/gcc-lib/i686-pc-linux-gnu/3.4/specs
> Configured with: ../configure --prefix=/usr/local/gcc-3.4 --enable-languages=c --disable-checking
> Thread model: posix
> gcc version 3.4 20030403 (experimental)
> 
> and the latest gnu binutils, I get the following message when trying to compile
> 
> http://www.math.purdue.edu/~lucier/library.i.gz
> 
> with
> 
> 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.c -fPIC -DPIC -o .libs/libchicken_la-library.lo -save-temps
> library.s: Assembler messages:
> library.s:52511: Error: suffix or operands invalid for `lea'
> 
> The offending instruction is
> 
> 	leal	28(%ebp), %esi

Strange, the instruction is valid and is accepted by my gas.  Perhaps
something is wrong with your assembler?

Honza
> 
> Brad
> 


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]