Sun compiler bootstrap
François-Xavier Coudert
fxcoudert@gmail.com
Thu Jun 9 08:07:00 GMT 2005
I'm trying to bootstrap with Sun's compiler, and the gcc/fortran
directory currently fails because of :
"../../gcc/gcc/fortran/trans.h", line 569: syntax error in macro parameters
cc: acomp failed for ../../gcc/gcc/fortran/convert.c
The reduced testcase for this macro syntax problem is:
$ cat a.c
#define gfc_todo_error(args...) fatal_error("gfc_todo: Not Implemented: " args)
int main (void) { return 0; }
$ cc a.c
"a.c", line 1: syntax error in macro parameters
cc: acomp failed for a.c
I don't know much about C standards, but it looks like this definition
is not accepted well. Replace "args..." with "args" and the testcase
compiles fine. Since there is only one place in the code where
gfc_todo_error is used with more than one argument (trans-intrinsic.c,
line 3147), I wondered whether we could just find a way around.
More information about the Fortran
mailing list