Hi,
I've just checked in the following changes into the CVS.
* gm2/Make-lang.in: added rules for M2Swig.def and
M2Swig.mod.
* gm2/lang.opt: added new option -fswig.
* gm2/gm2-compiler/M2Code.mod: import GenerateSwigFile
and call it appropriately.
* gm2/gm2-compiler/M2GCCDeclare.mod: improved debugging
of subranges.
* gm2/gm2-compiler/M2Options.def: added GenerateSwig.
* gm2/gm2-compiler/M2Options.mod: implemented case to
test for -fswig which sets GenerateSwig to TRUE.
* gm2/gm2-compiler/SymbolTable.def: export
IsParameterUnbounded, IsParameterVar.
* gm2/gm2-compiler/SymbolTable.mod: implemented above
procedures.
* gm2/init/gm2-gccinit: added reference to M2Swig.
* gm2/examples/swig/{full-strlib,strlen,strlib}: new
directories.
* gm2/examples/swig/full-strlib/{Makefile,testcopy.py,
testequ.py,testlen.py}: new files.
* gm2/examples/swig/strlen/{Makefile,StrLib.def,StrLib.i,
StrLib.mod,testlen.py}: new files.
* gm2/examples/swig/strlib/{Makefile,StrLib.def,
StrLib.mod,testlen.py}: new files.
* gm2/gm2-compiler/M2Swig.{def,mod}: new files which
implement an automatic way of producing swig interface
files from an implementation module.
* gm2/gccgm2.c: skip_type_decl in build constructor
functions.
* gm2/gm2-compiler/M2GCCDeclare.mod: handle subscripts
in PrintVerbose routines.
* gm2/gm2-compiler/M2GenGCC.mod: detect unbounded
arrays of generic type and use memcpy rather than
assignment.
* gm2/gm2/gm2-compiler/M2Quads.mod: improved error
messages for unknown types at the end of functions.
* gm2/gm2/gm2-compiler/M2System.def: export
IsGenericSystemType.
* gm2/gm2/gm2-compiler/M2System.mod: implement
IsGenericSystemType.
* gm2/gm2-compiler/SymbolTable.def: export
IsPartialUnbounded.
* gm2/gm2-compiler/SymbolTable.mod: implement
IsPartialUnbounded and added PartialUnbounded
cases to GetSymName and GetDeclared.
* fixed bug reported by James Cox.
* gm2/gccgm2.c: build_common_tree_nodes requesting
unsigned char type.
* gm2/gm2-compiler/M2GenGCC.mod: CalculateBase
must not assume GetType(Subscript) will always yield
a subrange.
* gm2/gm2-compiler/M2GCCDeclare.mod: likewise
must not assume GetType(Subscript) will always yield
a subrange (the array might be declared as ARRAY CHAR
OF CHAR).
* testsuite/gm2/pim/run/pass/For9.mod: new file.
regards,
Gaius
_______________________________________________
gm2 mailing list
address@hidden
http://lists.nongnu.org/mailman/listinfo/gm2