attempt to make dummy drivers for llvm-gcc for f77, java and objc

Hi,

I am sick of remembering things, when configuring and compiling, so I
would like to help make the cvs configuring and building of llvm
easier.
Here are a set of empty files that produce broken f771,jc1 and cc1obj.
At least the make does not break.

Right now I am only compiling and linking in these two new files via
shell scripts as a test.
If you are interested, I can integrate this into the Makefile of the
gcc and propose a patch and send you the entire files. I removed that
so that you are not spammed by large files.

This function is only needed for f77, and not java :
llvm_f77_dummies.c :
        //includes removed from mail (all includes from the
tree-inline.c + c-common.h
        tree decl_constant_value (tree a){ return 0;}

These functions are for f77,objc and java :
llvm_dummies.c :

        void nothing(){} // do nothing
        void (*lang_expand_decl_stmt) (tree)=&nothing;
        void (*lang_expand_function_end) (void)=&nothing;

        _Bool statement_code_p[256]; // dummy data
        c_language_kind c_language;

        tree build_stmt (enum tree_code a, ... ){ return 0 ;}
        int stmts_are_full_exprs_p (void){ return 0;}
        int anon_aggr_type_p (tree a){ return 0;}
        void prep_stmt (tree a){}
        stmt_tree current_stmt_tree (void){ return 0;}

Hope this made your day just a little bit nicer,

mike

I am sick of remembering things, when configuring and compiling, so I
would like to help make the cvs configuring and building of llvm
easier.
Here are a set of empty files that produce broken f771,jc1 and cc1obj.
At least the make does not break.

FYI, James and I discussed this on IRC, and we decided it would be better
to just make --enable-languages default to c,c++.

-Chris

Right now I am only compiling and linking in these two new files via
shell scripts as a test. If you are interested, I can integrate this
into the Makefile of the gcc and propose a patch and send you the entire
files. I removed that so that you are not spammed by large files.

This function is only needed for f77, and not java : llvm_f77_dummies.c
:
        //includes removed from mail (all includes from the
tree-inline.c + c-common.h
        tree decl_constant_value (tree a){ return 0;}

These functions are for f77,objc and java :
llvm_dummies.c :

        void nothing(){} // do nothing
        void (*lang_expand_decl_stmt) (tree)=&nothing;
        void (*lang_expand_function_end) (void)=&nothing;

        _Bool statement_code_p[256]; // dummy data
        c_language_kind c_language;

        tree build_stmt (enum tree_code a, ... ){ return 0 ;}
        int stmts_are_full_exprs_p (void){ return 0;}
        int anon_aggr_type_p (tree a){ return 0;}
        void prep_stmt (tree a){}
        stmt_tree current_stmt_tree (void){ return 0;}

Hope this made your day just a little bit nicer,

mike

=====
James Michael DuPont
http://introspector.sourceforge.net/

_______________________________________________
LLVM Developers mailing list
LLVMdev@cs.uiuc.edu http://llvm.cs.uiuc.edu
http://mail.cs.uiuc.edu/mailman/listinfo/llvmdev

-Chris