Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ErrorExt.mo - added ErrorExt.isTopCheckpoint to ErrorExt.mo and errorext.cpp + used in Inst.mo to check if we should rollback or not. Inst.mo - moved the case for basic type instantiation from Inst.instClassdef2 into its own function: Inst.instClassdefBasicType and added checkpoint/rollback to it to get rid of the "wrong errors/warnings" due to instantiation as a basic type. - replaced equality(x = y)/failure(equality(x = y)) with true = stringEqual(x, y) respectively false = stringEqual(x, y) - propagated prefix to more functions - added Inst.checkExtendsForTypeRestiction to check for extends restrictions in Modelica 3.1, but is unused for now as it will get rid of some of the error reporting. InstExtends.mo - propagated prefix to more functions - propagate the final prefix to the component modifier. - the problem with InstExtends.mo is that when we only copy the classes/components from an extends clause we loose the scope information and the errors become less localized: For example, see the changes in testsuite/mosfiles-nosim/FinalTests.mos We should fix this by propagating more information inside the modifiers (i.e. the scope where they were created). Lookup.mo - small changes due to propagation of prefix to more functions System.mo - added System.refEqual to check for reference (pointer) equality Exp.mo - the current Exp.crefEqual was moved to Exp.crefEqualStringCompare to be easier to switch between crefEqual with/without string comparison - checks for pointer equality via Static.equalCref in some of the object comparison functions. SCode.mo - SCode.printClassdefStr now handles ALL alternatives and has better printing of enumerations ConnectionGraph.mo - small documentation update - use Exp.crefEqualNoStringCompare instead of Exp.crefEqual Compiler/omc_release/Makefile.omdev.mingw - make omc.exe Large Address Aware via -Wl,-large-address-aware flag - this will give omc the possibility of allocating more memory testsuite/dependency - added tests for +d=usedep so at least we know when we break them because MathCore uses the dependency all the time. - also tests fixes of bug 1286. testsuite/mofiles/InnerOuterWithExtends.mo - tests for bug 1285 (this one) testsuite/libraries/msl221/OneWayRectifierBG.mos testsuite/libraries/msl221/TestNand.mos testsuite/mosfiles-nosim/interactive_api_attributes.mos - these tests are different now when we suppress the errors/warnings from instantiation as basic type. - the tests are more correct now as for example in OneWayRectifierBG we had a warning that parameter does not have a default value *even* if it *does* (well, a recursive one, but still it does). - in TestNand.mos the warning about the use of == on reals is gone but anyway is used in an algorithm, so it had no value. - in interactive_api_attributes.mos the "inner" warning is gone now and it should be. testsuite/mosfiles-nosim/FinalTests.mos - this test produces less errors which in this case is a bit bad as the missing error messages pointed you in the right direction. - however, these error messages were generated while we tried to instantiate the class as a basic type (which was wrong anyway). - we should fix this test by adding source information (the scope/prefix) to modifiers and then when we try to merge them (final vs. modification) we can output this information. testsuite/libraries/msl31/Modelica.Mechanics.MultiBody.mos - fixes for loading of ModelicaServices - also check that the instantiation of Modelica.Mechanics.MultiBody.Visualizers.Advanced.Shape works. testsuite/libraries/multibody/elementary/RollingWheel.mos - small equation migration due to changes in sorting of inner/outer. git-svn-id: https://openmodelica.org/svn/OpenModelica/trunk@6184 f25d12d1-65f4-0310-ae8a-bbce733d8d8e
- Loading branch information