Development Log in April 2017.

  • 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.

  • GNAT Pro | GPS | GNATbench
    Apr 25th, 2017

    GPS: Preserve “withs” node state in the Outline view
    The Outline view now preserves the expanded/collapsed state of the "withs" node when switching between sources.

  • 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.

  • GNAT Pro | GPS | GNATbench
    Apr 21st, 2017

    GPS: Items selection improved in GPS browsers
    On Linux, electing an item now deselects any other unless the user is pressing a modifier key.

  • GNAT Pro | GPS | GNATbench
    Apr 21st, 2017

    GB: Use relative path when creating linked folders
    On Eclipse versions 3.6 (Helios) or above, GNATbench uses relative paths to create linked folders. GNATbench creates linked folders when directories found in GNAT project files are not present in the workspace.

  • 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.

  • GNAT Pro | GPS | GNATbench
    Apr 19th, 2017

    GPS: Python API for creating Tasks
    It is now possible to create Tasks from the GPS Python API, and to create tasks that monitor a workflow. This can conveniently replace some uses of the GPS.Timeout API, and integrates within the GPS Task Manager, allowing to provide progress indication for background tasks.

  • 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.

  • GNAT Pro | GPS | GNATbench
    Apr 18th, 2017

    GPS: Local toolbar in the Assembly view
    The Assembly view now has a local toolbar, containing buttons for disassembling and local configuration.

  • 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 | GPS | GNATbench
    Apr 10th, 2017

    GPS: New debug-related entries in contextual menus
    The debug section of contextual menu now contains entries to remove, enable, or disable breakpoints.

  • GNAT Pro | GPS | GNATbench
    Apr 10th, 2017

    GPS: New Build & Run and Build & Debug buttons
    A Build & Run and a Build & Debug toobar button have been introduced. Clicking on these buttons has for effect to build the selected executable before performing the second action (either Run or Debug).

  • 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.

  • GNAT Pro | GPS | GNATbench
    Apr 5th, 2017

    GPS: GPS.Debugger allows to manipulate frames now
    The python GPS.Debugger now has following methods - current_frame, frame_down, frame_up, frames, select_frame.