Commit graph

231 commits

Author SHA1 Message Date
jperkin
f90d0c2d60 Enable profiling on SunOS/x86_64. Note to DragonFly developers that the
existing patch for enabling profiling for that platform is clearly
incorrect, but I'm not going to change it without being able to test it.
2017-03-27 12:54:59 +00:00
jperkin
e46ea8d8e8 Move some files from PLIST.prof to the main PLIST, as the install phase
creates symlinks for them if profiling is not supported by the target.
2017-03-27 12:51:58 +00:00
jperkin
47ecaa00ce Move raw_spacetime_lib components to a separate PLIST file, they are only
built for native 64-bit targets.
2017-03-27 11:51:30 +00:00
jperkin
bdc680c544 Restore PKGMANDIR support lost in previous update. 2017-03-23 18:23:58 +00:00
jperkin
43f26219f5 Restore x86_64-*-solaris support lost in previous update. 2017-03-23 18:22:34 +00:00
jaapb
72dc1723c8 Updated package to latest version, ocaml 4.04.0. This involved removing
some patches that have been migrated upstream.

Changes (bug numbers removed so they don't trigger our system) include:
(Changes that can break existing programs are marked with a "*")

### Language features:

- Support GADT equations on non-local abstract types
  (Jacques Garrigue)

- Local opening of modules in a pattern.
  Syntax: "M.(p)", "M.[p]","M.[| p |]", "M.{p}"
  (Florian Angeletti, Jacques Garrigue, review by Alain Frisch)

- local exception declarations "let exception ... in"
  (Alain Frisch)

- Allow shortcut for extension on semicolons: ;%foo
  (Jeremie Dimino)

- optimized representation for immutable records with a single
  field, and concrete types with a single constructor with a single argument.
  This is triggered with a [@@unboxed] attribute on the type definition.
  Currently mutually recursive datatypes are not well supported, this
  limitation should be lifted in the future (see M).
  (Damien Doligez)

### Compiler user-interface and warnings:

* interpret all command-line options before compiling any
  files, changes (improves) the semantics of repeated -o options or -o
  combined with -c see the super-detailed commit message at
  da56cf6dfd
  (whitequark)

- clarify the wording of Warning 38
  (Unused exception or extension constructor)
  (Gabriel Scherer)

* add colors when reporting errors generated by ppx rewriters.
  Remove the `Location.errorf_prefixed` function which is no longer relevant
  (Simon Cruanes, Jérémie Dimino)

- clarify the wording of Warning 8
  (Non-exhaustivity warning for pattern matching)
  (Florian Angeletti, review and report by Gabriel Scherer)

* Improve support for OCAMLPARAM: (i) do not use objects
  files with -a, -pack, -shared; (ii) use "before" objects in the toplevel
  (but not "after" objects); (iii) use -I dirs in the toplevel,
  (iv) fix bug where -I dirs were ignored when using threads
  (Marc Lasson, review by Damien Doligez and Alain Frisch)

- New -plugin option for ocamlc and ocamlopt, to dynamically extend
  the compilers at runtime.
  (Fabrice Le Fessant)

- Detect unused module declarations
  (Alain Frisch)

- Add a settable Env.Persistent_signature.load function so
  that cmi files can be loaded from other sources. This can be used to
  create self-contained toplevels.
  (Jérémie Dimino)

### Standard library:

- Provide `Sys.backend_type` so that user can write backend-specific
  code in some cases (for example,  code generator).
  (Hongbo Zhang)

- implement Set.map
  (Gabriel Scherer)

- Add Obj.reachable_words to compute the
  "transitive" heap size of a value
  (Alain Frisch, review by Mark Shinwell and Damien Doligez)

- Add a non-allocating function to recover the number of
  allocated minor words.
  (Pierre Chambart, review by Damien Doligez and Gabriel Scherer)

- String.split_on_char
  (Alain Frisch)

- Filename.extension and Filename.remove_extension
  (Alain Frisch, request by Edgar Aroutiounian, review by Daniel Bunzli
  and Damien Doligez)

### Code generation and optimizations:

- Optimize Hashtbl by using in-place updates of its
  internal bucket lists.  All operations run in constant stack size
  and are usually faster, except Hashtbl.copy which can be much
  slower
  (Alain Frisch)

* Optimize performance of record update:
  no more performance cliff when { foo with t1 = ..; t2 = ...; ... }
  hits 6 updated fields
  (Olivier Nicole, review by Thomas Braibant and Pierre Chambart)

- Better unboxing strategy
  (Alain Frisch, Pierre Chambart)

- Ocamlopt + flambda requires a lot of memory
  to compile large array literal expressions
  (Pierre Chambart, review by Mark Shinwell)

- Handle specialisation of recursive function that does
  not always preserve the arguments
  (Pierre Chambart, Mark Shinwell, report by Simon Cruanes)

- Obj.is_block is now an inlined OCaml function instead of a
  C external.  This should be faster.
  (Demi Obenour)

- Optimize immutable float records
  (Pierre Chambart, review by Mark Shinwell)

- Do not generate dummy code to force module linking
  (Pierre Chambart, reviewed by Jacques Garrigue)

- Do not eliminate boxed int divisions by zero and
  avoid checking twice if divisor is zero with flambda.
  (Pierre Chambart, report by Jeremy Yallop)

- Optimize some constant string operations when the "-safe-string"
  configure time option is enabled.
  (Pierre Chambart)

- Load cross module information during a meet
  (Pierre Chambart, report by Leo White, review by Mark Shinwell)

- Share a few more equal switch branches
  (Pierre Chambart, review by Gabriel Scherer)

- Small improvements to type-based optimizations for array
  and lazy
  (Alain Frisch, review by Pierre Chambart)

- Prevent warning 59 from triggering on Lazy of constants
  (Pierre Chambart, review by Leo White)

-  Sort emitted functions according to source location
  (Pierre Chambart, review by Mark Shinwell)

- Lack of type normalization lead to missing simple compilation for "lazy x"
  (Alain Frisch)

### Runtime system:

- Allows to register finalisation function that are
  called only when a value will never be reachable anymore. The
  drawbacks compared to the existing one is that the finalisation
  function is not called with the value as argument. These finalisers
  are registered with `GC.finalise_last`
  (François Bobot reviewed by Damien Doligez and Leo White)

- Do not perform compaction if the real overhead is less than expected
  (Thomas Braibant)

### Tools:

- toplevel #show, follow chains of module aliases
  (Gabriel Scherer, report by Daniel Bünzli, review by Thomas Refis)

- have ocamldep interpret -open arguments in left-to-right order
  (Gabriel Scherer, report by Anton Bachin)

- ocamldoc, missing line breaks in type_*.html files
  (Florian Angeletti)

- ocamldoc, improved support for inline records
  (Florian Angeletti)

- ensure "ocamllex -ml" works with -safe-string
  (Hongbo Zhang)

- ocamldoc, add viewport metadata to generated html pages
  (Florian Angeletti, request by Daniel Bünzli)

- Make the output of ocamldep more stable
  (Alain Frisch)

- empty documentation comments
  (Florian Angeletti)

- Add the -no-version option to the toplevel
  (Sébastien Hinderer)

- Add a --strict option to ocamlyacc treat conflicts as errors
  (this option is now used for the compiler's parser)
  (Jeremy Yallop)

- make ocamldoc use -open arguments
  (Florian Angeletti)

- ocamldoc, fix order of extensible variant constructors
  (Florian Angeletti)

### Debugging and profiling:

- Spacetime, a new memory profiler (Mark Shinwell, Leo White)

### Runtime system:

- Add a new primitive caml_alloc_float_array to allocate an
  array of floats
  (Thomas Braibant)

### Manual and documentation:

- document the existence of OCAMLPARAM and
  ocaml_compiler_internal_params
  (Damien Doligez, reports by Wim Lewis and Gabriel Scherer)

- warn users against using WinZip to unpack the source archive
  (Damien Doligez, report by Shayne Fletcher)

- clarification to the wording and documentation
  of Warning 52 (fragile constant pattern)
  (Gabriel Scherer, William, Adrien Nader, Jacques Garrigue)

- Restore 4.02.3 behaviour of Unix.fstat, if the
  file descriptor doesn't wrap a regular file (win32unix only)
  (Andreas Hauptmann, review by David Allsopp)

- flatten : Avoid confusion
  (Damien Doligez, report by user 'tormen')

- Gc.finalise and lazy values
  (Jeremy Yallop)

- Document that [Store_field] must not be used to populate
  arrays of values declared using [CAMLlocalN] (Mark Shinwell)

### Build system:

- Compiler developers: Adding new primitives to the
  standard runtime doesn't require anymore to run `make bootstrap`
  (François Bobot)

- Fix compilation using old Microsoft C Compilers not
  supporting secure CRT functions (SDK Visual Studio 2005 compiler and
  earlier) and standard 64-bit integer literals (Visual Studio .NET
  2002 and earlier)
  (David Allsopp)

- More sharing between Unix and Windows makefiles
  (whitequark, review by Alain Frisch)

* Installed `ocamlc`, `ocamlopt`, and `ocamllex` are
  now the native-code versions of the tools, if those versions were
  built.
  (Demi Obenour)

- "./configure -safe-string" to get a system where
  "-unsafe-string" is not allowed, thus giving stronger non-local
  guarantees about immutability of strings
  (Alain Frisch, review by Hezekiah M. Carty)

### Bug fixes:

* Missed Type-error leads to a segfault upon record access.
  (Jacques Garrigue, extra report by Stephen Dolan)
  Proper fix required a more restrictive approach to recursive types:
  mutually recursive types are seen as abstract types (i.e. non-contractive)
  when checking the well-foundedness of the recursion.

* Nominal types and scope escaping.
  Revert to strict scope for non-generalizable type variables, cf. Mantis.
  Note that this is actually stricter than the behavior before 4.03,
  cf. , meaning that you may sometimes need to add type annotations
  to explicitly instantiate non-generalizable type variables.
  (Jacques Garrigue, following discussion with Jeremy Yallop,
   Nicolas Ojeda Bar and Alain Frisch)

- Aliased arguments ignored for equality of module types
  (Jacques Garrigue, report by Leo White)

- compiler forcing aliases it shouldn't while reporting type errors
  (Jacques Garrigue, report and suggestion by sliquister)

- document that Unix.SOCK_SEQPACKET is not really usable.

- uncaught exception on invalid lexer directive
  (Gabriel Scherer, report by KC Sivaramakrishnan using afl-fuzz)

- revert a 4.03 change of behavior on (Unix.sleep 0.),
  it now calls (nano)sleep for 0 seconds as in (< 4.03) versions.
  (Hannes Mehnert, review by Damien Doligez)

- GADT + subtyping compile time crash
  (Jacques Garrigue, report by Nicolas Ojeda Bar)

- Segfault from conjunctive constraints in GADT
  (Jacques Garrigue, report by Stephen Dolan)

- Support more than FD_SETSIZE sockets in Windows' emulation
  of select
  (David Scott, review by Alain Frisch)

* Prevent private inline records from being mutated
  (Alain Frisch, report by Pierre Chambart)

- Bug in mcomp_fields leads to segfault
  (Jacques Garrigue, report by Leo White)

- Relaxed value restriction broken with principal
  (Jacques Garrigue, report by Leo White)

- -strict-sequence turns off Warning 21
  (Jacques Garrigue, report by Valentin Gatien-Baron)

- remove access to OCaml heap inside blocking section in win32unix
  (David Allsopp, report by Andreas Hauptmann)

- remove access to OCaml heap inside blocking in Unix.sleep on Windows
  (David Allsopp)

- -principal causes loop in type checker when compiling
  (Jacques Garrigue, report by Anil Madhavapeddy, analysis by Leo White)

- Missing exhaustivity check for extensible variant
  (Jacques Garrigue, report by Elarnon *)

- Contractiveness check unsound with constraints
  (Jacques Garrigue, report by Leo White)

- GADT constructors can be re-exposed with an incompatible type
  (Jacques Garrigue, report by Alain Frisch)

- Unsoundness in GADT exhaustiveness with existential variables
  (Jacques Garrigue, report by Stephen Dolan)

* Thread library: fixed [Thread.wait_signal] so that it
  converts back the signal number returned by [sigwait] to an
  OS-independent number
  (Jérémie Dimino)

- (similar to ) ensure that register typing constraints are
  respected at N-way join points in the control flow graph
  (Mark Shinwell)

- Fix float_of_hex parser to correctly reject some invalid forms
  (Bogdan Tătăroiu, review by Thomas Braibant and Alain Frisch)

- Fix maximum weak bucket size
  (Nicolas Ojeda Bar, review by François Bobot)

-  Allow more module aliases in strengthening (Leo White)

- Fix wrong code generation involving lazy values in Flambda
  mode
  (Mark Shinwell, review by Pierre Chambart and Alain Frisch)

- Fix infinite loop in flambda due to [@@specialise] annotations

- Building native runtime on Windows could fail when bootstrapping
  FlexDLL if there was also a system-installed flexlink
  (David Allsopp, report Michael Soegtrop)

- check for integer overflow in String.concat
  (Jeremy Yallop,
   review by Damien Doligez, Alain Frisch, Daniel Bünzli, Fabrice Le Fessant)

- check for integer overflow in Array.concat
  (Jeremy Yallop)

- fix the Buffer.add_substring bounds check to handle overflow
  (Jeremy Yallop)

- Fix [@@inline] with default parameters in flambda (Leo White)

- fix build on OpenIndiana
  (Sergey Avseyev, review by Damien Doligez)

### Internal/compiler-libs changes:

- Improve, fix, and add test for parsing/pprintast.ml
  (Runhang Li, David Sheets, Alain Frisch)

- make driver/pparse.ml functions type-safe
  (Gabriel Scherer, Dmitrii Kosarev, review by Jérémie Dimino)

- Improve Texp_record constructor representation, and
  propagate updated record type information
  (Pierre Chambart, review by Alain Frisch)

- Graphics.close_graph crashes 64-bit Windows ports (re-implementation
  of )
  (David Allsopp)

- delay registration of docstring after the mapper is applied
  (Hugo Heuzard, review by Leo White)

- don't attach (**/**) comments to any particular node
  (Thomas Refis, review by Leo White)
2016-12-30 11:15:00 +00:00
marino
c34fe4b7ff lang/ocaml: regenerate checksum for configure patch
distinfo from cvs:     trusted to convey hashes
patches from same cvs: untrusted thus require hashes to verify
absurdness: Any intruder that can modify the patch in cvs can also modify
            the distinfo file.

Only externally hosted patches require hashes.  Hopefully some day
thousands of future commits to distinfo files everywhere can be avoided by
making the framework smarter.  </rant>
2016-11-04 22:55:58 +00:00
marino
72abef400c lang/ocaml: update configure patch to fix packaging on DragonFly 2016-11-04 20:11:40 +00:00
wiz
b3344eb841 Update HOMEPAGE. 2016-08-24 10:52:46 +00:00
jperkin
67c5725295 Fix build on 32-bit SunOS with 64-bit native assembler. 2016-07-15 12:44:21 +00:00
jperkin
f9866bfa9c Don't use GNU ld flags on x86_64 SunOS. Fixes various dependencies.
Bump PKGREVISION.
2016-07-13 15:01:42 +00:00
jperkin
bdc4a80ded Fix build on 32-bit SunOS. 2016-07-13 13:36:01 +00:00
jperkin
18af2d1ae1 Use the GCC front-end for linking on SunOS, resolves issues with SSP
and passing incompatible ld arguments.  Bump PKGREVISION.
2016-07-07 12:15:36 +00:00
jperkin
e9cb1d627b Fix _XOPEN_SOURCE failure on SunOS. 2016-07-06 14:19:51 +00:00
jperkin
884d581cee Move profiling files to the correct PLIST. 2016-07-06 14:17:45 +00:00
khorben
62738ecb73 Add support for CFLAGS
This fixes the build with PKGSRC_MKPIE.
2016-05-26 14:31:12 +00:00
jperkin
464c96029a PKGMANDIR fixes. 2016-05-19 15:30:04 +00:00
jaapb
9718550454 Recursive revbump associated with ocaml update. 2016-05-05 11:45:36 +00:00
jaapb
44a1a190f2 Updated package to latest version, 4.03.0. Also removed some obsolete and
unneeded patches.

The list of changes is a thousand lines long, so I'm not including it
here: details can be found in the Changes file in the top directory of the
package after extraction.
2016-05-05 08:12:01 +00:00
jperkin
6ebd7118f7 Support natdynlink on SunOS. Bump PKGREVISION. 2016-02-29 13:53:58 +00:00
jperkin
b2c1ede9ae Ensure linker arguments get passed to ocamlmklib correctly. 2016-02-29 13:51:27 +00:00
jperkin
db1332a441 Use OPSYSVARS. 2016-02-25 14:42:55 +00:00
jaapb
dc5eaeb878 Added some wrapper utilities to OCAMLBIN_WRAPPERS variable 2016-01-16 10:32:53 +00:00
dholland
41c6e246f4 Add patch comments. 2015-12-29 23:34:43 +00:00
agc
54622f28e2 Add SHA512 digests for distfiles for lang category
Problems found with existing digests:
	Package nhc98 distfile nhc98src-1.22.tar.gz
	a8adc8f22371998ee0657bc0e01058a57d876abc [recorded]
	81975fcb5f1dda5efeaabc30ce8c6dceae55e591 [calculated]

Problems found locating distfiles:
	Package gcc-aux: missing distfile ada-bootstrap.i386.dragonfly.36A.tar.bz2
	Package gcc-aux: missing distfile ada-bootstrap.i386.freebsd.84.tar.bz2
	Package gcc-aux: missing distfile ada-bootstrap.x86_64.dragonfly.36A.tar.bz2
	Package gcc-aux: missing distfile ada-bootstrap.x86_64.freebsd.84.tar.bz2
	Package gcc-aux: missing distfile ada-bootstrap.x86_64.solaris.511.tar.bz2
	Package gcc5-aux: missing distfile ada-bootstrap.i386.dragonfly.36A.tar.bz2
	Package gcc5-aux: missing distfile ada-bootstrap.i386.freebsd.84.tar.bz2
	Package gcc5-aux: missing distfile ada-bootstrap.x86_64.dragonfly.36A.tar.bz2
	Package gcc5-aux: missing distfile ada-bootstrap.x86_64.freebsd.84.tar.bz2
	Package gcc5-aux: missing distfile ada-bootstrap.x86_64.solaris.511.tar.bz2
	Package ghc7: missing distfile ghc-7.6.3-boot-i386-unknown-freebsd.tar.xz
	Package icc11: missing distfile l_cproc_p_11.1.080.tgz
	Package jini: missing distfile jini-1_2_1_001-src.zip
	Package oo2c: missing distfile oo2c_32-2.0.11.tar.bz2
	Package openjdk7: missing distfile openjdk7/bootstrap-jdk-1.7.76-freebsd-10-amd64-20150301.tar.xz
	Package openjdk7: missing distfile openjdk7/bootstrap-jdk-1.7.76-netbsd-5-i386-20150301.tar.xz
	Package openjdk7: missing distfile openjdk7/bootstrap-jdk-1.7.76-netbsd-6-i386-20150301.tar.xz
	Package openjdk7: missing distfile openjdk7/bootstrap-jdk-1.7.76-netbsd-7-earmv6hf-20150306.tar.xz
	Package openjdk7: missing distfile openjdk7/bootstrap-jdk-1.7.76-netbsd-7-sparc64-20150301.tar.xz
	Package openjdk7: missing distfile openjdk7/bootstrap-jdk7u60-bin-dragonfly-3.8-amd64-20140719.tar.bz2
	Package openjdk8: missing distfile openjdk7/bootstrap-jdk-1.7.76-freebsd-10-amd64-20150301.tar.xz
	Package openjdk8: missing distfile openjdk7/bootstrap-jdk-1.7.76-netbsd-5-i386-20150301.tar.xz
	Package openjdk8: missing distfile openjdk7/bootstrap-jdk-1.7.76-netbsd-6-i386-20150301.tar.xz
	Package openjdk8: missing distfile openjdk7/bootstrap-jdk-1.7.76-netbsd-7-earmv6hf-20150306.tar.xz
	Package openjdk8: missing distfile openjdk7/bootstrap-jdk-1.7.76-netbsd-7-sparc64-20150301.tar.xz
	Package openjdk8: missing distfile openjdk7/bootstrap-jdk7u60-bin-dragonfly-3.8-amd64-20140719.tar.bz2
	Package oracle-jdk8: missing distfile jdk-8u60-linux-i586.tar.gz
	Package oracle-jdk8: missing distfile jdk-8u60-solaris-x64.tar.gz
	Package oracle-jre8: missing distfile jre-8u60-linux-i586.tar.gz
	Package oracle-jre8: missing distfile jre-8u60-solaris-x64.tar.gz
	Package sun-jdk6: missing distfile jdk-6u45-linux-i586.bin
	Package sun-jdk6: missing distfile jdk-6u45-solaris-i586.sh
	Package sun-jdk7: missing distfile jdk-7u72-linux-i586.tar.gz
	Package sun-jdk7: missing distfile jdk-7u72-solaris-i586.tar.gz
	Package sun-jre6: missing distfile jce_policy-6.zip
	Package sun-jre6: missing distfile jre-6u45-linux-x64.bin
	Package sun-jre6: missing distfile jre-6u45-solaris-x64.sh
	Package sun-jre7: missing distfile jre-7u72-linux-i586.tar.gz
	Package sun-jre7: missing distfile jre-7u72-solaris-i586.tar.gz

Otherwise, existing SHA1 digests verified and found to be the same on
the machine holding the existing distfiles (morden).  All existing
SHA1 digests retained for now as an audit trail.
2015-11-03 22:50:31 +00:00
fhajny
18b3fcbdc6 Previous update incorrectly introduced .p.cmt files into the common PLIST.
Move into PLIST.prof, fix build on several platforms.
2015-09-30 13:49:50 +00:00
joerg
5984dd5b87 Avoid UB of left-shift of negative values by replacing it with a
multiplication. Remove duplicate PKGREVISION. Bump revision.
2015-09-08 18:54:41 +00:00
jperkin
8091aee373 Now that _STRIPFLAG_INSTALL is disabled by default on Darwin, remove manual
settings of INSTALL_UNSTRIPPED=yes for Darwin in individual packages.
2015-09-07 12:02:05 +00:00
dholland
ff6332dd84 PLIST.prof is now needed on FreeBSD x86_64. See build report just in.
PKGREVISION -> 1.
2015-09-02 04:23:11 +00:00
jaapb
d5c39b4e71 Patch for OS X 32-bit ABI, as supplied by Mansour Moufid. See also
http://mail-index.netbsd.org/pkgsrc-users/2015/07/22/msg021910.html
2015-08-22 10:45:13 +00:00
jaapb
c8feee53c7 Added patch for x11/ocaml-graphics. This does not change any functionality,
but is necessary for a Makefile substitution in that package.
2015-08-09 13:31:18 +00:00
jaapb
02f93ff182 This is an update of lang/ocaml to its latest version, 4.02.3. Changes
include:

Bug fixes:
- Top-level custom printing for GADTs: interface change in 4.02.2
  (Grégoire Henry, report by Jeremy Yallop)
- corrupted final_table (ygrek)
- R#6926: Regression: ocamldoc lost unattached comment
  (Damien Doligez, report by François Bobot)
- Aliased result type of GADT constructor results in assertion failure
  (Jacques Garrigue)

Feature wishes:
- PR#6691: install .cmt[i] files for stdlib and compiler-libs
  (David Sheets, request by Gabriel Radanne)
- New primitive: caml_alloc_dummy_function
  (Hugo Heuzard)
2015-08-07 11:16:30 +00:00
jaapb
79c3325366 Removed a superfluous (and breakage-causing) -p from a patch. Thanks to
BulkTracker for pointing me to this bug.
2015-07-04 09:29:47 +00:00
jaapb
e63d297296 Updated lang/ocaml to newest version 4.02.2. Changes apart from bugfixes
include:
- #6583: add a new class of binary operators with the same syntactic
  precedence as method calls; these operators start with # followed
  by a non-empty sequence of operator symbols (for instance #+, #!?).
  It is also possible to use '#' as part of these extra symbols
  (for instance ##, or #+#); this is rejected by the type-checker,
  but can be used e.g. by ppx rewriters.
* #6016: add a "nonrec" keyword for type declarations
- #6600: make -short-paths faster by building the printing map
  incrementally
- #6642: replace $CAMLORIGIN in -ccopt with the path to cma or cmxa
  to output an object file with included runtime and autolink libraries
- #6845: -no-check-prims to tell ocamlc not to check primitives in runtime
- G#149: Attach documentation comments to parse tree
- G#159: Better locations for structure/signature items
- #5958: generalized polymorphic #install_printer
- #6237: explicit "infer" tag to control or disable menhir --infer
- #6625: pass -linkpkg to files built with -output-obj.
- #6712: Ignore common VCS directories
- #6720: pass -g to C compilers when tag 'debug' is set
- #6733: add .byte.so and .native.so targets to pass
  -output-obj -cclib -shared.
- #6733: "runtime_variant(X)" to pass -runtime-variant X option.
- #6774: new menhir-specific flags "only_tokens" and "external_tokens(Foo)"
- #6285: Add support for nanosecond precision in Unix.stat()
- #6781: Add higher baud rates to Unix termios
- #6834: Add Obj.{first,last}_non_constant_constructor_tag
- #6078: Release the runtime system when calling caml_dlopen
- #6675: GC hooks
- #5418 (comments) : generate dependencies with $(CC) instead of gcc
- #6266: Cross compilation for iOs, Android etc
- Update instructions for x86-64 PIC mode and POWER architecture builds
- #6452, G#140: add internal suport for custom printing formats
- #6641: add -g, -ocamlcflags, -ocamloptflags options to ocamlmklib
- #6693: also build libasmrun_shared.so and lib{asm,caml}run_pic.a
- #6842: export Typemod.modtype_of_package
- G#139: more versatile specification of locations of .annot
- G#157: store the path of cmos inside debug section at link time
- G#191: Making gc.h and some part of memory.h public
2015-06-30 11:08:47 +00:00
jaapb
bd94a87bea Extended gdt's i386 ucontext signal handler patch to amd64. This shouldn't
affect anything that isn't NetBSD/amd64.
2015-04-17 09:12:12 +00:00
tnn
c08710bc07 Avoid using the "3o" man page section, since plist-man.awk can't handle it.
Instead treat ocaml like we do with lang/perl5 and install the man pages in
the "3" section in /usr/pkg/lib/ocaml/man/man3.
2015-04-02 22:40:09 +00:00
jperkin
5ee77fa880 Detect 64-bit SunOS. 2015-03-17 14:14:43 +00:00
gdt
cf104689f9 Fix i386 signal handler.
ocaml has a twisty maze of ifdefs to define signal handler types and
obtain the faulting address.  NetBSD no longer has sigcontext
(available to user space) and instead the more POSIXy ucontext; this
commit changes the patch to use that.

Fixes build on i386, and the resulting package can run unison.  In
theory !i386 is unchanged.
2015-03-14 15:17:14 +00:00
tnn
e027174d9d ocamlrun needs dlopen 2015-03-11 22:37:18 +00:00
jaapb
ec168fd2ad Added a patch that fixes signal handlers on i386. 2015-01-26 14:46:51 +00:00
jaapb
1415aa2a24 This is an update of OCaml to 4.02.1. Changes are listed below. There is also
a new patch to include a -pkgsrc-runtime compilation option. This option is
needed to compile devel/pcre-ocaml due to buildlink shenanigans
(see http://mail-index.netbsd.org/pkgsrc-users/2014/12/18/msg020800.html )

Changes:
(Changes that can break existing programs are marked with a "*")

Standard library:
* Add optional argument ?limit to Arg.align.
- Bug in Makefile.nt: won't stop on error
- Improve MSVC build
- Configure doesn't detect features correctly on Haiku
- Non-exhaustive matching warning message for open types is confusing
- fix quadratic-time algorithm in Consistbl.extract.
- Add stack overflow handling for native code (OpenBSD i386 and amd64)
- broken semantics of %(%) when substitued by a box
- legacy support for %.10s
- better documentation of flag # in format strings
- Bytes and CamlinternalFormat missing from threads stdlib.cma
- -dsource omits parens for `List ((`String "A")::[]) in patterns
- __MODULE__ aborts the compiler if the module name cannot be inferred
- Debug section is sometimes not readable when using -pack
- Missing command line options for ocamldoc
- fix race condition when retrieving backtraces
- String.sub throws Invalid_argument("Bytes.sub")
- Fix ocamldebug module source lookup
- Inclusion of packs failing to run module initializers
- infinite loop in Mtype.remove_aliases
- compilation fails with Env.Error(_)
- -short-paths and signature inclusion errors
- Fatal error with recursive modules
- Recursive module containing alias causes Segmentation fault
- Some bugs in generative functors
- ocamldep support for "-open M"
- Code generation errors for ARM
- Improve Windows (MSVC and mingw) build
- ocamlbuild: add -bin-annot when using -pack
- Fatal error when tracing a function with abstract type
- ocamlbuild: add an -ocamlmklib option to change the ocamlmklib command
2015-01-20 14:12:25 +00:00
jperkin
c24ed9c54f The "rename" rule is a published synonym for the "opt" transform rule, however
only the latter is supported by cwrappers.  Change them all to "opt" rules for
consistency and to gain compatibility with cwrappers.
2014-12-15 11:46:34 +00:00
obache
41c2261336 linker flag hack is required on Darwin prior to 9 too.
PR pkg/49417 by Sevan Janiyan.
2014-11-25 11:09:51 +00:00
joerg
46c384c24f ARM assembler glue needs either Thumb or ARMv6 with emulation for one
Thumb instruction. Go with FreeBSD and use the latter.
2014-11-21 14:15:20 +00:00
joerg
18d3eb244b Really match all ARM variants. 2014-11-20 15:24:57 +00:00
joerg
9f4b2d2308 Match all ARM variants. 2014-11-20 15:22:44 +00:00
obache
e0489444c4 add some missing files for 4.02.0. 2014-11-01 08:51:32 +00:00
jaapb
cae4bb438a Extra patch - syntactical change only, but needed for x11/ocaml-graphics 2014-10-13 13:24:45 +00:00
jaapb
b3f84848fb Update to ocaml 4.02.0. Main changes (apart from ocamldoc and bugfixes, see
also upstream changelog):
Language features:
- Attributes and extension nodes
- Generative functors
- Module aliases
* Alternative syntax for string literals {id|...|id} (can break comments)
- Separation between read-only strings (type string) and read-write byte
  sequences (type bytes). Activated by command-line option -safe-string.
Build system for the OCaml distribution:
- Use -bin-annot when building.
- Use GNU make instead of portable makefiles.
- Updated build instructions for 32-bit Mac OS X on Intel hardware.
Shedding weight:
* Removed Camlp4 from the distribution, now available as third-party software.
* Removed Labltk from the distribution, now available as a third-party library.
Type system:
* Keep typing of pattern cases independent in principal mode
- Allow opening a first-class module or applying a generative functor
  in the body of a generative functor. Allow it also in the body of
  an applicative functor if no types are created
* Module aliases are now typed in a specific way, which remembers their
  identity. In particular this changes the signature inferred by
  "module type of"
- Slight change in the criterion to distinguish private
  abbreviations and private row types: create a private abbreviation for
  closed objects and fixed polymorphic variants.
* Compare first class module types structurally rather than
  nominally. Value subtyping allows module subtyping as long as the internal
  representation is unchanged.
Compilers:
- More aggressive constant propagation, including float and
  int32/int64/nativeint arithmetic.  Constant propagation for floats
  can be turned off with option -no-float-const-prop, for codes that
  change FP rounding modes at run-time.
- New back-end optimization pass: common subexpression elimination (CSE).
  (Reuses results of previous computations instead of recomputing them.)
- New back-end optimization pass: dead code elimination.
  (Removes arithmetic and load instructions whose results are unused.)
- Optimization of sequences of string patterns
- Experimental native code generator for AArch64 (ARM 64 bits)
- Optimization of integer division and modulus by constant divisors
- Add "-open" command line flag for opening a single module before typing
* "-o" now sets module name to the output file name up to the first "."
  (it also applies when "-o" is not given, i.e. the module name is then
   the input file name up to the first ".")
* better sharing of structured constants
- new flag to keep locations in cmi files
- issue warning 3 when referring to a value marked with
  the [@@ocaml.deprecated] attribute
- a new format implementation based on GADTs
* Constant exception constructors no longer allocate
- avoid unnecessary boxing in let
- Better compilation of optional arguments with default values
- ocamlopt -opaque option for incremental native compilation
Toplevel interactive system:
- New "#show_*" directives
Runtime system:
- New configure option "-no-naked-pointers" to improve performance by
  avoiding page table tests during block darkening and the marking phase
  of the major GC.  In this mode, all out-of-heap pointers must point at
  things that look like OCaml values: in particular they must have a valid
  header.  The colour of said headers should be black.
- Fixed bug in native code version of [caml_raise_with_string] that could
  potentially lead to heap corruption.
- Blocks initialized by [CAMLlocal*] and [caml_alloc] are now filled with
  [Val_unit] rather than zero.
- Fixed a major performance problem on large heaps (~1GB) by making heap
  increments proportional to heap size by default
- Structural equality treats exception specifically
- efficient comparison/indexing of exceptions
- avoid using unsafe C library functions (strcpy, strcat, sprintf)
- An ISO C99-compliant C compiler and standard library is now assumed.
  (Plus special exceptions for MSVC.)  In particular, emulation code for
  64-bit integer arithmetic was removed, the C compiler must support a
  64-bit integer type.
Standard library:
* Add new modules Bytes and BytesLabels for mutable byte sequences.
- add List.sort_uniq and Set.of_list
- a faster version of "raise" which does not maintain the backtrace
- support "Unix.kill pid Sys.sigkill" under Windows
- speed improvement for Buffer
- efficient creation of uninitialized float arrays
- Improve documentation regarding finalisers and multithreading
- Trigger warning 3 for all values marked as deprecated in the documentation.
2014-10-09 19:08:28 +00:00
jaapb
603cfa6202 Added comments to gethostbyname/addr patches 2014-05-13 10:17:44 +00:00