This is the mail archive of the gcc-help@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]

assembler errors


I have gcc V3.3.1 on a AMD Opteron system using SuSE 9.0. After installing the system I tried to compile a simple helloworld.c and got the following assembly errors:

[gordon@lambda-16: ~] gcc hello.c -o H
/tmp/ccjW6PJh.s: Assembler messages:
/tmp/ccjW6PJh.s:9: Error: suffix or operands invalid for `push'
/tmp/ccjW6PJh.s:15: Error: `(%esp)' is not a valid 64 bit base/index expression

I tried to reinstall the base gcc rpm, but that did not help. Do you know of a way to fix this?

Burt


the code was just:


[gordon@lambda-16: ~] cat hello.c
#include <stdio.h>

int main()
{
        printf("Hello World!\n");
        return 0;
}




/*--------------------------------------------
Burt Gordon
Research Assistant,
High-Performance Computing and Simulation Lab,
University of Florida
www.hcs.ufl.edu/~gordon
--------------------------------------------*/



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