This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Sun compiler bootstrap
- From: François-Xavier Coudert <fxcoudert at gmail dot com>
- To: gcc-patches at gcc dot gnu dot org, fortran at gcc dot gnu dot org
- Date: Thu, 9 Jun 2005 10:07:22 +0200
- Subject: Sun compiler bootstrap
- Reply-to: François-Xavier Coudert <fxcoudert at gmail dot com>
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.