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 13:25:44 -0700
- Subject: Re: Error: suffix or operands invalid for `push'
- References: <31760683.post@talk.nabble.com>
asura10 <surajtaurus@gmail.com> writes:
> I just tried executing a normal hello world C program and got the
> following error
>
> /tmp/cc2jcOrX.s: Assembler messages:
> /tmp/cc2jcOrX.s:12: Error: suffix or operands invalid for `push'
> /tmp/cc2jcOrX.s:16: Error: suffix or operands invalid for `push'
> /tmp/cc2jcOrX.s:24: Error: suffix or operands invalid for `pop'
>
> I'm running on a 64-bit server
This normally means that gcc is invoking the wrong assembler for some
reason, or passing it the wrong options. Send us gcc -v output. Also
tell us the command line that fails, and what system you are running on,
and what version of gcc you are using.
Ian