Forum Discussion
Altera_Forum
Honored Contributor
16 years agoProblem with gcc4 toolchain
Hello, i have written following code to demonstrate the issue: # include <stdio.h> int main(void) { unsigned long long int long_val = 0xaaaaaaaaaaaaaaaaLLU; unsigned long vala ...
Altera_Forum
Honored Contributor
16 years agoLooks like a bug in the varargs processing, probably the va_arg() bit.
I can't remember what the nios2 ABI says about varargs functions, and whether all the arguments get stacked, or whether they still get passed in registers. If it only affects printf(), it might just be that the printf code isn't detecting the double 'l'. Are the gcc sources for gcc 4 on the altera ftp site yet?