Forum Discussion
Altera_Forum
Honored Contributor
13 years agoIf that is the host gcc faulting, then it is a bug in the installed gcc itself, not in gcc sources being built.
That even just looks like a simple system header file include sequence. Possibly reducing the optimisation level (or removing some very specific optimisations) might help. You should be able to get gcc to generate 32bit code by just adding -m32, but I don't think linux distributions contain enough 'stuff' to let you compile and build 32bit programs on a 64bit system (NetBSD does!). If you are compiling gcc for nios, I'd consider applying the patches I put on the wiki - especially if you need to the code to run as fast as possible.