This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: Strange error from gcc
- From: kevin diggs <diggskevin38 at gmail dot com>
- To: eddyq <Eddy at quicksall dot com>
- Cc: gcc-help at gcc dot gnu dot org
- Date: Thu, 21 Jul 2011 12:46:01 -0500
- Subject: Re: Strange error from gcc
- References: <32109441.post@talk.nabble.com>
Hi,
These are probably from your assembler (as).
Try:
gcc -S -fverbose-asm -dA -v try2.c
This will create an assembly file (-S) and will dump the command lines
for the pieces parts that the compiler driver (gcc) runs.
Is this a x86 PC?
Maybe gcc -dumpspecs (or is it -dumpspec?)
kevin
On Thu, Jul 21, 2011 at 12:38 PM, eddyq <Eddy@quicksall.com> wrote:
>
> I'm getting a strange error from gcc.
>
> My try2.c file is as follows:
> #include <stdio.h>
> int main(void);
> int main(void)
> {
> ? printf("test\n");
> }
>
> The output is as follows:
> bash-3.00$ gcc try2.c
> /tmp/ccwboFoy.s: Assembler messages:
> /tmp/ccwboFoy.s:12: Error: suffix or operands invalid for `push'
> /tmp/ccwboFoy.s:16: Error: suffix or operands invalid for `push'
> /tmp/ccwboFoy.s:21: Error: suffix or operands invalid for `pop'
>
> Does anyone know what is going on?
> --
> View this message in context: http://old.nabble.com/Strange-error-from-gcc-tp32109441p32109441.html
> Sent from the gcc - Help mailing list archive at Nabble.com.
>
>