aboutsummaryrefslogtreecommitdiffhomepage
Commit message (Collapse)AuthorAge
* Unify location handling of error functions.Gravatar Emilio Jesus Gallego Arias2016-08-19
| | | | | | | | | | | | | | In some cases prior to this patch, there were two cases for the same error function, one taking a location, the other not. We unify them by using an option parameter, in the line with recent changes in warnings and feedback. This implies a bit of clean up in some places, but more importantly, is the preparation for subsequent patches making `Loc.location` opaque, change that could be use to improve modularity and allow a more functional implementation strategy --- for example --- of the beautifier.
* Merge branch 'v8.6'Gravatar Pierre-Marie Pédrot2016-08-17
|\
* | Revert "CLEANUP: removing the definition of the ↵Gravatar Pierre-Marie Pédrot2016-08-17
| | | | | | | | | | | | | | | | | | | | | | "Context.Rel.Declaration.to_tuple" function" This reverts commit 4b24bb7d3b770592015c264001b9aed9fe95c200. While the of_tuple function is clearly dubious and mostly used for compatiblity reasons, and thus had to be removed, I think that the to_tuple function is still useful as it allows to access each component of the declaration piecewise. Without it, some codes tend to get cluttered with useless projections here and there.
| * Fixing #3070 ("subst" taking properly into account chains of dependencies).Gravatar Hugo Herbelin2016-08-17
| |
| * Two protections against failures when printing evar_map.Gravatar Hugo Herbelin2016-08-17
| | | | | | | | | | | | | | | | Delimit the scope of the failure to ease potential need for debugging the debugging printer. Protect against one of the causes of failure (calling get_family_sort_of with non-synchronized sigma).
| * Fixing printing in debugger (no global env in debugger).Gravatar Hugo Herbelin2016-08-17
| |
| * A fix to dev/include.Gravatar Hugo Herbelin2016-08-17
| |
| * Removing dead unsafe debugging code in Constrintern.Gravatar Pierre-Marie Pédrot2016-08-16
| |
| * Merge PR #250 into v8.6Gravatar Pierre-Marie Pédrot2016-08-16
| |\
| * \ Merge PR #237 into v8.6Gravatar Pierre-Marie Pédrot2016-08-16
| |\ \
| * \ \ Merge branch 'v8.5' into v8.6Gravatar Pierre-Marie Pédrot2016-08-16
| |\ \ \
| * \ \ \ Efficiently generate the pretyping contexts.Gravatar Pierre-Marie Pédrot2016-08-16
| |\ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | We used to recompute all fresh named contexts for evars before this patch in the push_rel_context_to_named_context function. This was incurring a linear penalty and a memory explosion due to the reallocation of many arrays. Now, we rather remember the context between evar creations by sharing it in the pretyping environment. This can be considered as a fix for bug #4964 even though we might do better.
| | | * \ \ Merge branch 'pr255' into v8.5 (bug #5015)Gravatar Guillaume Melquiond2016-08-16
| | | |\ \ \
| | | | * | | Fix regression in Coqide's "forward one command" commandGravatar Xavier Leroy2016-08-14
| | | |/ / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | In Coqide 8.5pl2, "forward one command" (down arrow) always repositions the insertion point at the end of the phrase being executed, just after the final ".". In Coqide 8.4, the insertion point is not moved if it is after the end of the executed phrase. The insertion point is moved only if it falls behind the phrase being executed. I find the 8.5 behavior to be a regression over the lot more useful 8.4 behavior. This commit restores the 8.4 behavior of "forward one command".
* | | | | | Adding "Context.Named.Declaraton.of_rel" functionGravatar Matej Kosik2016-08-11
| | | | | |
* | | | | | CLEANUP: removing the definition of the "Context.Rel.Declaration.of_tuple" ↵Gravatar Matej Kosik2016-08-11
| | | | | | | | | | | | | | | | | | | | | | | | function
* | | | | | CLEANUP: removing the definition of the "Context.Rel.Declaration.to_tuple" ↵Gravatar Matej Kosik2016-08-11
| | | | | | | | | | | | | | | | | | | | | | | | function
* | | | | | CLEANUP: removing a call of "Context.Rel.Declaration.to_tuple" functionGravatar Matej Kosik2016-08-11
| | | | | |
* | | | | | CLEANUP: removing a call of "Context.Rel.Declaration.to_tuple" functionGravatar Matej Kosik2016-08-11
| | | | | |
* | | | | | CLEANUP: removing a call of "Context.Rel.Declaration.to_tuple" functionGravatar Matej Kosik2016-08-11
| | | | | |
| | | * | | Do not assume the "TERM" environment variable is always set (bug #5007).Gravatar Guillaume Melquiond2016-08-11
| | | | | |
| | | * | | Use the "md5" command on OpenBSD (bug #5008).Gravatar Guillaume Melquiond2016-08-11
| | | | | |
| * | | | | Make code a bit clearer by removing optional argument.Gravatar Guillaume Melquiond2016-08-10
| | | | | |
| * | | | | Remove unused optional "predicative" argument.Gravatar Guillaume Melquiond2016-08-10
| | | | | |
| * | | | | Make it a bit more obvious when variables are of type unit.Gravatar Guillaume Melquiond2016-08-10
| | | | | |
| * | | | | Reduce warning noise when compiling the standard library.Gravatar Guillaume Melquiond2016-08-09
| | | | | |
| * | | | | Make List.map_filter(_i) tail-recursive.Gravatar Guillaume Melquiond2016-08-09
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | While the performance gain should go unnoticed in most cases, in some degenerate situations, e.g. the evar-stressing test-case of bug #4964, this commit speeds up coq by 10% since most of the time is spent scanning long lists with most of the elements filtered out. Note that this commit also changes the scanning order to front-to-back, which is a bit less surprising (though no code should ever depend on the scanning order).
| | | * | | Fix #5000: Document the native compiler soundness bug due to Unicode mangling.Gravatar Pierre-Marie Pédrot2016-08-07
| | | | | |
| | * | | | Using a dedicated kind of substitutions in evar name generation.Gravatar Pierre-Marie Pédrot2016-08-06
| | | | | | | | | | | | | | | | | | | | | | | | This saves a quadratic allocation by replacing arrays with maps.
| | * | | | Using the extended contexts in pretyping.Gravatar Pierre-Marie Pédrot2016-08-05
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | In addition to sharing, we also delay the computation of the environment in a by-need fashion.
| | * | | | Use sets instead of lists for names to avoid in evar generation.Gravatar Pierre-Marie Pédrot2016-08-04
| | | | | |
| | * | | | Simplifying code in evar generation.Gravatar Pierre-Marie Pédrot2016-08-04
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | We remove in particular a dubious use of an environment in fresh name generation. The code was using the wrong environment in a function only depending on the rel context which was resetted most of the time. This might change the generated names in extremely rare occurences.
| | * | | | Exporting the renaming API for evar declaration.Gravatar Pierre-Marie Pédrot2016-08-04
| | | | | |
| | * | | | Embedding the pretyping environment in a dummy record.Gravatar Pierre-Marie Pédrot2016-08-04
| |/ / / /
| | * | | Fix documentation typo (bug #4994).Gravatar Guillaume Melquiond2016-08-04
| | | | |
| | * | | Fix bug #4673: regression in setoid_rewrite.Gravatar Matthieu Sozeau2016-07-29
| | | | | | | | | | | | | | | | | | | | Modulo delta for types should be fully transparent.
| * | | | Merge remote-tracking branch 'gforge/v8.5' into v8.6Gravatar Matthieu Sozeau2016-07-29
| |\| | |
| | * | | Update CHANGES about #3886 bugfixGravatar Matthieu Sozeau2016-07-29
| | | | |
| | * | | Fix bug #3886, generation of obligations of fixesGravatar Matthieu Sozeau2016-07-29
| | | | | | | | | | | | | | | | | | | | This partially reverts c14ccd1b8a3855d4eb369be311d4b36a355e46c1
| | * | | Fix #4769, univ poly and elim schemes in sectionsGravatar Matthieu Sozeau2016-07-29
| | | | |
| * | | | COMMENT: moving misplaced comment where it belongsGravatar Matej Kosik2016-07-29
| | | | |
| * | | | Adding a flag in CoqIDE to configure UNIX/Windows line ending.Gravatar Pierre-Marie Pédrot2016-07-26
| | | | | | | | | | | | | | | | | | | | Fixes both bugs #4924 and #4437.
* | | | | remove checker/MakefileGravatar Pierre Letouzey2016-07-26
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This historical Makefile was used during the development of coqcheck, but was unused since then : the checker is built via Coq's main Makefile. So let's remove this one to avoid any risk of confusion.
* | | | | No more dev/printers.cmaGravatar Pierre Letouzey2016-07-26
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This file was only used during ocamldebug sessions (in the dev/db script). It was containing a large subset of the core cma files, up to the printing functions. There were a few notable exceptions, for instance no kernel/vm.cmo to avoid loading dllcoqrun.so in ocamldebug. But printers.cma was troublesome to maintain : almost each time an ML file was added/removed/renamed in the core of Coq, dev/printers.mllib had to be edited, in addition to the directory-specific .mllib (kernel/kernel.mllib and co). So I propose here to kill this file, and put instead in dev/db several "load_printer" of the core cma files. For that to work, we need to compile kernel/kernel.cma with the right -dllib and -dllpath options, but that shouldn't hurt (on the contrary). We also source now the camlpX cma in dev/db, via a new generated file dev/camlp4.dbg containing a load_printer of either gramlib.cma or camp4lib.cma. If one doesn't want to perform the whole "source db" at the start of an ocamldebug session, then the former "load_printer printers.cma" could be replaced by: source core.dbg load_printer top_printers.cmo See for instance the minimal dev/base_db.
* | | | | Makefile.build: minor simplificationGravatar Pierre Letouzey2016-07-26
| | | | |
* | | | | Merge branch 'v8.6' into trunkGravatar Pierre Letouzey2016-07-26
|\| | | |
| * | | | restore compatibility with gallium's camlp4 (broken by commit 8e07227c)Gravatar Pierre Letouzey2016-07-26
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Apparently, in camlp4 (unlike camlp5) : - Something like "[ kwd = IDENT "foobar" -> .... kwd ... ]" produces a kwd of type token instead of string (which sounds reasonable ?). For now, I've replaced kwd by the explicit strings. Not so nice, but works with both camlp4 and camlp5 - A quotation of the form "let obj = ... in bar; baz" is not interpreted in the usual OCaml way, but rather as "(let obj = ... in bar); baz". Let's use instead "let obj = ... in let () = bar in baz", which works fine.
| | * | | Update CHANGES about critical bugfix and othersGravatar Matthieu Sozeau2016-07-26
| | | | |
| | * | | Merge branch 'bug4754' into v8.5Gravatar Matthieu Sozeau2016-07-26
| | |\ \ \
| | | * | | Fix bug #4754, allow conversion problems to remainGravatar Matthieu Sozeau2016-07-26
| | |/ / / | | | | | | | | | | | | | | | | | | | | when checking that the rewrite relation is homogeneous in setoid_rewrite.