Development Log in 2017.

  • GNAT Pro
    May 25th, 2017

    New function To_Ada in GNAT.Sockets
    A new function GNAT.Sockets.To_Ada supports converting externally created socket descriptors to type Socket_Type for use with other operations in package GNAT.Sockets.

  • GNAT Pro
    May 24th, 2017

    Debug information for imported entities
    GCC now produces debug information to describe Ada entities that are imported using the Import pragma or aspect.

  • GNAT Pro
    May 23rd, 2017

    Warning on potential C++ ABI mismatch on ARM
    With -Wpsabi on ARM, the compiler now warns in corner case situations where it knows it could possibly generate wrong code for complex C++ constructs involving method calls passing vectors of composite elements as arguments. The issue warned against is a possible caller/callee disagreement about what arguments-passing convention to use, leading to crashes at run time.

  • CodePeer
    May 22nd, 2017

    Better handling of ‘Length in preconditions
    Less false positives when dealing with a 'Length attribute

  • GNAT Pro
    May 22nd, 2017

    Minimize useless body compilations when inlining
    A filter has been added to the inlining / instantiation circuitry to recognize package bodies that do not contain bodies of inlined functions or generic bodies being instantiated, and that therefore do not need to be compiled, even though their declarations may appear in the context of other units that are needed for inlining.

  • SPARK Pro
    May 11th, 2017

    Added preconditions to standard numerical functions
    Preconditions have been added to functions from the standard numerical package Ada.Numerics.Generic_Elementary_Functions, in cases that may lead to Numerics.Argument_Error or Constraint_Error when called on actual parameters that are not suitable, like a negative input for Sqrt. This ensures that GNATprove generates corresponding precondition checks when such functions are called.

  • SPARK Pro
    May 10th, 2017

    Precise handling of dispatching calls with known tag
    GNATprove now precisely determines the subprogram called by a dispatching call when the tag is known. In particular, it is now able to use its more precise specific contract if any.

  • GNAT Pro
    May 6th, 2017

    Warning on potential C++ ABI mismatch on ARM
    With -Wpsabi on ARM, the compiler now warns in corner case situations where it knows it could possibly generate wrong code for complex C++ constructs involving method calls passing vectors of composite elements as arguments. The issue warned against is a possible caller/callee disagreement about what arguments-passing convention to use, leading to crashes at run time.

  • SPARK Pro
    May 5th, 2017

    Improve message for functions that could not return
    GNATprove used to emit a confusing check about initialization of functions when it could not determine if a function would return. We have now improved the message for this check. In addition, when encountering a potentially non returning function, GNATprove will now precise if the function may not return on some or on every path.

  • CodePeer
    May 4th, 2017

    Message text improved for double negations
    In some cases where CodePeer formerly generated messages mentioning conditions of the form "not (X /= Value)", CodePeer now avoids the double negative and generates "X = Value".

  • SPARK Pro
    May 3rd, 2017

    Use unique names for private record parts
    GNATprove now generates unique names for the Why3 translation of private parts of distinct record types. This should facilitate mappings of these parts to distinct types in interactive theorem provers.

  • GNAT Pro
    May 3rd, 2017

    Enhanced -gnatR3 output for simple dynamic records
    The representation information given by the compiler when the -gnatR3 switch is specified now includes size information for simple dynamic record types without discriminants.

  • SPARK Pro
    May 2nd, 2017

    Use unique names for simple private types
    For simple private types (untagged private type with no discriminants and full view out of SPARK) we now use unique names in Why3 so that they can easily be mapped to distinct existing types in interactive provers.

  • GNAT Pro | GPRbuild
    Apr 27th, 2017

    Avoid following too many symbolic links
    When gprbuild or gprclean were invoked without switch -eL, some symbolic links were still needlessly followed. Now, only the minimum number of symbolic links are followed.

  • GNAT Pro
    Apr 27th, 2017

    Relax alignment constraint for record extensions
    On x86 and, more generally, architectures that do not require strict alignment for memory accesses, the compiler now accepts size clauses on record type extensions that effectively lower the alignment of the type, if there is also a representation clause on the type.

  • CodePeer
    Apr 24th, 2017

    -csv and -show-header
    Mixing -csv and -show-header with -output-msg was disallowed in CodePeer 17.1 because it generates a invalid CSV file. Since this option was found useful by some users, it's available again. It's up to the user to postprocess (e.g. split) the output if needed.

  • CodePeer
    Apr 24th, 2017

    -csv and -show-header
    Mixing -csv and -show-header with -output-msg was disallowed in CodePeer 17.1 because it generates a invalid CSV file. Since this option was found useful by some users, it's available again. It's up to the user to postprocess (e.g. split) the output if needed.

  • CodePeer
    Apr 20th, 2017

    Show-header displays current and base “run” numbers
    If the "-show-header" flag is passed to codepeer after the "-output-msg[-only]" flag, two additional header lines are now displayed, with the form "current run number 7" and "base run number 2". The run numbers identify which execution of CodePeer produced the output, and which execution was used as the "baseline" for comparison for the purpose of identifying "added" or "removed" messages. In addition the date displayed in the header now corresponds to when the results were produced, rather than when they are being displayed.

  • CodePeer
    Apr 20th, 2017

    Excluded source files listed by -show-header
    The list of files excluded from analysis by CodePeer via the Excluded_Source_Files or Excluded_Source_Dirs project attributes is now available when using -output-msg[-only] -show-header.

  • SPARK Pro
    Apr 20th, 2017

    Better handling of powers of 2 in modular types
    GNATprove now handles better powers of 2 that are of a modular type, leading to better proof results. This improvement only concerns modular types whose modulus is itself a power of 2.

  • SPARK Pro
    Apr 20th, 2017

    Better handling of discriminant-dependent components
    GNATprove now handles accesses to discriminant-dependent record components better, leading to more proofs and less spurious trivial checks on such components.

  • SPARK Pro
    Apr 19th, 2017

    Improved handling of compile-time-known assertions
    Assertions that are known to be true at compile-time are now handled in a more efficient way by the SPARK tools. This results in shorter running times on projects that contain such assertions.

  • CodePeer
    Apr 19th, 2017

    More efficient IDE/CodePeer exchange format
    The new format of IDE/CodePeer data exchange allows minimizing the amount of inspection information loaded at the opening of the CodePeer report and only loading annotation information when needed.

  • GNAT Pro
    Apr 19th, 2017

    Removal of restriction on inlining in related units
    The compiler can now inline into a child package a subprogram declared in a parent package, even if the parent package has a with clause for the child package in the parent's body.

  • CodePeer
    Apr 17th, 2017

    Improved analysis for ‘Image
    CodePeer has now more knowledge about the bounds of Image attribute evaluations; for example, it knows the low bound = 1 and the high bound >= 1.

  • CodePeer
    Apr 17th, 2017

    Improved handling of pragma Assume
    CodePeer now takes into account pragma Assume and will no longer generate messages about the possibility that the condition of an Assume (as opposed to Assert) pragma may yield "false".

  • GNAT Pro
    Apr 17th, 2017

    Speedup for functions returning unconstrained arrays
    The compiler now generates more efficient object code for simple functions returning an unconstrained array type, for example Ada.Numerics.Real_Arrays.Eigenvalues as implemented in GNAT.

  • GNAT Pro
    Apr 16th, 2017

    Optimize calls to null procedures
    GNAT now replaces calls to null procedures by null statements, except when GNATcoverage is active. This enables further optimizations that include such calls.

  • GNAT Pro
    Apr 15th, 2017

    Improved dimensionality checking for generic units
    The dimensionality-checking algorithms have been enhanced to allow the construction of generic units that can apply to different dimensioned arguments, and verify the dimensional consistency of each separate instance of such a unit.

  • SQL Long_Float type conformity
    New cursor operation Long_Float_Value returns Long_Float value by the field index. New routine As_Long_Float makes SQL_Parameter from Long_Float value to be able to send Long_Float parameter to SQL subsystem.

  • GNAT Pro
    Apr 15th, 2017

    Time_IO.Value enhanced to parse ISO-8861 UTC
    The function Value of package GNAT.Calendar.Time_IO has been enhanced to parse strings containing UTC date and time with the ISO-8861 format.

  • SPARK Pro
    Apr 13th, 2017

    Protect against unsound function contracts
    When a function has an inconsistent contract (a contract which cannot hold for some inputs), GNATprove used to generate an unsound axiom which may then allow to prove anything in a caller of such a function, and so, even if the function is always called on 'valid' inputs, that is, inputs on which the contract holds. Though this behavior is expected with a proof technology such as SPARK, it used to come as a surprise to some users. We now avoid generating unsound axioms as much as possible by introducing guards for function axioms which are only assumed to hold on actually used values. Note that there are still cases where an unsound axiom will be generated (functions called in type invariants / type predicates, in primitive equalities of record types, or sometimes in user written quantified expressions). As a consequence, having inconsistent contracts on functions is still a bad usage of SPARK, and users should avoid it as much as possible. Also, this new 'safer' translation can sometimes impact proof capabilities. Thus, we provide an advanced switch --no-axiom-guard to disable it.

  • GNAT Pro
    Apr 7th, 2017

    Better message on violation of No_Dynamic_Allocation
    The Ravenscar profile includes a restriction on dynamic allocation. Its violation is usually detected in the back-end, with an obscure message that does not refer directly to the entity responsible for the dynamic allocation (which is typically a discriminated object with non-static discriminants). This enhancement adds a source warning to pinpoint more precisely the cause of the subsequent error and compiler rejection.

  • GNAT Pro
    Apr 6th, 2017

    Elimination of out-of-line body with Inline_Always
    The compiler now always eliminates the out-of-line body of a subprogram subject to pragma Inline_Always.

  • SPARK Pro
    Mar 30th, 2017

    Globals of renamed subprograms in code not-in-SPARK
    GNATprove now synthesizes more precise Global contracts for subprograms annotated with SPARK_Mode => Off that make calls via subprogram renamings. Such calls happen, for example, in instances of generic units with formal subprogram parameters.

  • CodePeer
    Mar 27th, 2017

    Better messages for null statements
    CodePeer flags both dead null statements and predetermined test conditions which govern the possible execution of null statements.

  • GNAT Pro
    Mar 27th, 2017

    GNATdoc can now extract documentation from bodies
    GNATdoc has a new capability, activated by the command-line switch '-d'; in this mode, GNATdoc processes bodies and extracts documentation for library-level entities.

  • SPARK Pro
    Mar 24th, 2017

    Empty “others” alternative in Case statement
    Flow analysis now detects when an "others" alternative of a Case statement corresponds to an empty range and effectively considers its sequence of statements as unreachable. This helps to avoid spurious messages about variables not being referenced or initialized within that sequence of statements.

  • GNAT Pro
    Mar 24th, 2017

    Automatic reordering of components in record types
    The compiler can now reorder components in record types with convention Ada in order to fix blatant inefficiencies that the layout of components in textual order would bring about. The reordering is automatic and silent by default, but both characteristics can be toggled: pragma No_Component_Reordering disables it either on a per-record-type or on a global basis, while -gnatw.q gives a warning for each affected component in record types.

  • GNAT Pro
    Mar 23rd, 2017

    Relax alignment constraint for record extensions
    On x86 and, more generally, architectures that do not require strict alignment for memory accesses, the compiler now accepts size clauses on record type extensions that effectively lower the alignment of the type, if there is also a representation clause on the type.

  • SPARK Pro
    Mar 21st, 2017

    Simplified translation of simple private types
    Untagged private types with no discriminant whose full view is not in SPARK are now translated in Why3 as clones of the predefined __private abstract type. This should allow users of interactive proof assistants to more easily map these private types to a logic type of their choice.

  • SPARK Pro
    Mar 20th, 2017

    Theories for conversion of discrete types realized
    The Why3 theories used by GNATprove to model conversions between discrete types have been realized in Coq. This increases confidence in their correction.

  • GNATCOLL.Traces performance improvements
    Performance has been significantly enhanced: streams no longer flush after each message by default (though this is now configurable in the configuration file), locking is done at the stream level, and can often be avoided altogether since the system provides its own locking, messages are created as a whole line and then sent once to the stream, which provides more flexibility when writing streams, and other various enhancements. In a single threaded application, we now output 6 million messages per second to a file.

  • GNAT Pro
    Mar 16th, 2017

    GNAT includes a ZFP runtime for Linux and Windows
    The native ZFP (Zero Footprint) runtime for Linux and Windows is now part of the base GNAT package. It is now also available with 64-bit compilers. This runtime is similar to the ZFP runtimes that are delivered with our bare metal products and can be used to test an embedded project in a native environment.

  • CodePeer
    Mar 15th, 2017

    Better messages for .scil file creation failure
    If CodePeer unsuccessfully attempts to create a .scil file, then generate an additional error message which includes the full name of the file which could not be created. If it appears likely that the source of the problem is a Windows-specfic restriction on filename lengths, then that is also noted in a message.

  • GNATCOLL.Mmap: support files larger than 2Gb
    This package now supports mapping files up to 1 petabyte, on 64 bits systems. This is backward compatible, although to access such large files you will need to use some different functions. This package also includes support for the madvise() system call on Unix systems, which might provide a 5% performance improvements when accessing files sequentially.

  • GNATCOLL.Strings: new package
    This package, and the generic implementation in GNATCOLL.Strings_Impl, provide a new string type. A XString is similar to an unbounded string, but more efficient (up to 10x for strings 23 characters or less, or when manipulating substrings, and up to 1.4 for larger strings), and with a more extensive API.

  • GNATCOLL.Promises: new package
    This package provides a promise type, also known as a future in some language. This is a way to perform background computation, then chain a series of callbacks which can themselves perform asynchronous computation.

  • GNAT Pro
    Mar 13th, 2017

    Option to treat run-time exception warnings as errors
    The compiler supports a new switch -gnatwE that treats warnings that run-time exceptions will occur as compile-time errors.

  • Ada Web Server
    Mar 11th, 2017

    Add support for type/subtype in ada2wsdl
    The tool ada2wsdl will now generate proper WSDL out of Ada specs using types or subtypes to derived from other Ada specs.

   1  2  3     Next »