Forum Discussion
Altera_Forum
Honored Contributor
12 years agoHmmm....
I was only patching gcc because it was broken! Seemed quicker to work out how to fix it than raise support requests.... The change that put switch statement jump tables directly into .code is a serious bug - it makes the gcc 4.1 altera build unusable if you need pure code. The fixes for 64bit build systems should also be treated as very important. I'm not sure why the printf() format strings are processed by _(), but it might be worth compiling the code with# define _(x) x so that gcc decects format string errors (you might need to remove the 'format' variable as well). I suspect there are quite a few places where 'long' values get printed with 'int' formats - these will cause grief.