Butterfly
Posts: 97 from 2005/10/31
Trying to build such simple test case which works fine on morphos's gcc 2.x , but not on latest 4.4.5 gcc:
Code:
#define VARARGS68K __attribute__((varargs68k))
void VARARGS68K lsprintf(char *, char *, ...);
int main()
{};
Quote:
# ppc-morphos-gcc -noixemul 1.c -o 1
1.c:2: warning: 'varargs68k' attribute directive ignored
I do check on includes, and find out that directive is still somewhere present: gg/include/ix.h have such a line:
Quote:
int ix_req(char *title, char *button1, char *button2, char *fmt, ...) __attribute__((varargs68k));
So for sake of tests i even try that test_case:
Code:
int ix_req(char *title, char *button1, char *button2, char *fmt, ...) __attribute__((varargs68k));
int main()
{};
And :
Quote:
# ppc-morphos-gcc -noixemul 1.c -o 1
1.c:1: warning: 'varargs68k' attribute directive ignored
Question is: wtf ? How to make it works ? And its not just harmless warnings, the code which rely on varargs68k attribute do not works as well on new gcc (but works on old one, like gcc2.x)
[ Edited by kas1e 17.04.2013 - 11:36 ]