This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: Error: suffix or operands invalid for `push'
- From: Ian Lance Taylor <iant at google dot com>
- To: asura10 <surajtaurus at gmail dot com>
- Cc: gcc-help at gcc dot gnu dot org
- Date: Thu, 02 Jun 2011 22:45:46 -0700
- Subject: Re: Error: suffix or operands invalid for `push'
- References: <31760683.post@talk.nabble.com> <31760821.post@talk.nabble.com>
asura10 <surajtaurus@gmail.com> writes:
> Reading specs from /usr/local/lib/gcc-lib/i686-pc-linux-gnu/2.95.1g/specs
> gcc version 2.95.1g 19990816 (change 108897)
This gcc is over 10 years old. Do you really want to be doing that?
gcc 2.95.1 didn't support x86_64, so it is generating 32-bit x86 code.
Your system assembler probably defaults to 64-bit mode. You're going to
have to modify your gcc sources to pass the -32 option to the assembler,
or convince it to use an assembler which is a simple shell script which
invokes the real assembler with the -32 option.
Ian