This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Sun compiler bootstrap


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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]