Development Log

  • GPS: source navigation in CodePeer-only mode
    When GPS is used with CodePeer only (no GNAT installed), the build mode is automatically changed to properly load the cross-references information.

  • GPS: control jump to first message in plugins
    Python plugins can use new parameter of GPS.Message's class constructor to control automatic jump to first message in category.

  • Ada Web Server
    Feb 28th, 2015

    Add support for WSDL/SOAP type’s constraints
    The tools ada2wsdl and wsdl2aws handle now the type constraints. That is, ada2wsdl will check for range attribute, mod for modular types and array index to generate the corresponding constraints in the WSDL using the simpleType Length, minInclusive and maxInclusive attributes. Those attributes (plus the minExclusive and maxExclusive ones) are now used by wsdl2aws to generate Ada type constraints. Now a constrained string is generated instead of an Unbounded_String for a simpleType with a Length attribute whose base type is xsd:string. The simpleType Pattern attribute is now taken into account and a Dynamic_Predicate aspect is generated. For varying length string with attribute minLength and/or maxLength a Dynamic_Predicate aspect is also generated. Those now constraints will ensure that SOAP objects sent/received are not violating the constraints expressed into the WSDL making the new implementation safer.

  • GNAT Pro
    Feb 28th, 2015

    New pragma Ignore_Pragma
    A new pragma Ignore_Pragma is implemented. This is a configuration pragma that takes a single argument that is a simple identifier. Any subsequent use of a pragma whose pragma identifier matches this argument will be silently ignored. This may be useful when legacy code or code intended for compilation with some other compiler contains pragmas that match the name, but not the exact implementation, of a GNAT pragma. The use of this pragma allows such pragmas to be ignored, which may be useful in CodePeer mode, or during porting of legacy code.

  • SPARK Pro
    Feb 27th, 2015

    Optional Refined_Global/Depends aspects
    Users no longer have to provide a Refined_Global/Depends aspect when their Global/Depends mentions a state with visible refinement. Flow analysis now synthesizes and uses these aspects internally.

  • GNAT Pro
    Feb 27th, 2015

    Attribute Deref dereferences address expression
    A new attribute typ'Deref(expr) where expr is of type System.Address yields the variable of type typ that is located at the given address. It is similar to (totyp (expr).all), where totyp is an unchecked conversion from address to a named access-to-typ type, except that it yields a variable, so it can be used on the left side of an assignment. Note that this new attribute is not available for the .NET port).

  • GNAT Pro
    Feb 26th, 2015

    Convention pragma on generic formal access types
    The compiler now accepts a pragma Convention on a generic formal access to subprogram type, and verifies that an actual for such a formal obeys the same convention.

  • GNAT Pro|GNATbench | GNAT Pro|GPS
    Feb 24th, 2015

    GPS: use of perspective for CodePeer report
    GPS now has a perspective dedicated to viewing CodePeer results.

  • SPARK Pro
    Feb 23rd, 2015

    More precise analysis of bitwise operations
    GNATprove now handles more precisely bitwise operations on modular types by translating modular types to bitvectors for the underlying automatic provers. Currently, CVC4 is performing best on this kind of VCs. Some operations are still known to generate hard to prove VCs: conversions between modular and signed, modular used as array index, shift and rotate by a non constant amount.

  • SPARK Pro
    Feb 23rd, 2015

    Improve support for anonymous subtypes
    The SPARK toolset now deals better with checks associated with anonymous subtypes declared at the beginning of a subprogram.

  • CodePeer
    Feb 23rd, 2015

    Use Red/Orange/Yellow in CodePeer HTML report
    The HTML report was using Red/Yellow/Green for High/Medium/Low ranking messages. This was inconsistent with the Red/Orange/Yellow color coding used in GPS. The HTML report now uses Red/Orange/Yellow consistently for High/Medium/Low. There was no other change to the HTML output.

  • SPARK Pro
    Feb 20th, 2015

    Default initialized formal containers are empty
    When a formal container is default initialized, the SPARK toolset now knows it is empty.

  • SPARK Pro
    Feb 20th, 2015

    Accept “Runtime” and “Target” attributes
    The SPARK toolset now accepts the "Runtime" attribute of project files, which has the same effect as the --RTS commandline switch. The SPARK toolset now also accepts the "Target" attribute, although this attribute is currently ignored.

  • Ada Web Server
    Feb 18th, 2015

    Add support for documentation in WSDL
    AWS's wsdl2aws tool will now record the annotation/documentation nodes in the WSDL and generate comments out of them in the Ada generated code. These comments are handled for the WSDL operations and schema's types.

  • CodePeer
    Feb 18th, 2015

    Distinguish imported values of a global variable
    When the value of a global variable is used to initialize a global constant, it is possible that the value might change between when the global constant "captures" the variable's value, and when the value is subsequently fetched elsewhere in the program. CodePeer will now indicate in preconditions, postconditions, and other messages that a value of a variable was captured as part of initializing a global constant by adding a suffix on the global variable's name indicating the elaboration procedure initializing the constant. For example, "Global_Var@my_package'Elab_Spec" represents the value of Global_Var that was read by the My_Package spec elaboration procedure as part of initializing some constant declared in My_Package.

  • GNAT Pro
    Feb 18th, 2015

    Pre/Postconditions now count as WITH references
    If a package is with'ed and used only in pre and postconditions, then the package is still considered as referenced even if contracts are not enabled. This avoids a false positive warning "unit xxx is not referenced".

  • CodePeer
    Feb 17th, 2015

    Allow illegal comment characters
    Ada does not allow nongraphic characters (such as 16#7F#, DEL) in comments, but now CodePeer ignores this error, since some compilers do not flag this error, and it does not affect the CodePeer analysis of the code itself.

  • GNAT Pro
    Feb 17th, 2015

    Allow illegal comment characters in CodePeer mode
    Ada does not allow nongraphic characters (such as 16#7F#, DEL) in comments, but now CodePeer ignores this error, since some compilers do not flag this error, and it does not affect the CodePeer analysis of the code itself.

  • GNAT Pro
    Feb 14th, 2015

    Type_Invariant’Class on interface types implemented
    The Type_Invariant'Class aspect is now supported for interface types (as described in AI12-0041-1/03). When a type implements one or several interfaces, its inherited type invariant is the conjunction of all ancestor Type_Invariant'Class aspects.

  • GNAT Pro|GNATbench | GNAT Pro|GPS
    Feb 13th, 2015

    GPS: align.py enabled on gpr files
    When editing a .gpr project file, the Align contextual menu is now available, as it is in Ada files

  • GNAT Pro
    Feb 8th, 2015

    Better error message for Type_Invariant’Class
    In some error messages, the aspect name Type_Invariant'Class appeared as Type_Invariant_Class, and now the more accurate name with the quote is used.

  • GNAT Pro
    Feb 7th, 2015

    Better error message for bad use of prefix notation
    An attempt to use an untagged type with prefix notation now generates a more helpful message pointing out that this is specifically not allowed.

  • GNAT Pro
    Feb 7th, 2015

    Avoid internal names in error messages
    In some cases error messages would display internal compiler names that were not very helpful. Such messages are now fixed to display a more useful meaningful name, or eliminated.

  • GPS: display of CWEs from CodePeer
    GPS displays CWEs (Common Weakness Enumeration) for CodePeer's messages in Locations view and provides corresponding filter in CodePeer Report view.

  • GPS: project properties for uneditable projects
    The Project Properties dialog can now be displayed even in cases where the project cannot actually be edited graphically (aggregate project, project using variables,...).

  • GNAT Pro
    Feb 4th, 2015

    Better error recovery for statement in decls
    If a statement (e.g. an assignment statement) is used within a declaration sequence, then it is properly recognized now, so that if the -gnatQ option is used, the program compiles and executes successfully (after giving an appropriate error message).

  • Ada Web Server
    Feb 2nd, 2015

    Add explicit support for TLS 1.1 and 1.2
    Allow explicit support for TLS 1.1 and 1.2 on OpenSSL. This also enable to restrict use of these specific protocols.

  • Ada Web Server
    Jan 31st, 2015

    Add support for xs:choice in WSDL complexType
    AWS's wsdl2aws tool has now partial support for complexType with xs:choice items. This is mapped in Ada with a record with discriminant. Only a single occcurence of each item is supported by this implementation.

  • SPARK Pro
    Jan 30th, 2015

    Improved placement of quotes in flow messages
    The placement of double quotes in flow messages has been improved. For example, instead of:

      medium: "private part of S" might not be initialized
      high: "extension of Log" is not initialized
    
    we now get:
      medium: private part of "S" might not be initialized
      high: extension of "Log" is not initialized
    

  • GNAT Pro
    Jan 30th, 2015

    No stand-alone code for Inline_Always intrinsics
    GCC-based compilers no longer produce stand-alone code for Inline_Always subprograms with convention Intrinsic. This allows the definition of Ada subprograms similar to "extern inline" functions in C.

  • SPARK Pro
    Jan 29th, 2015

    Useless pragma Annotate are flagged
    The SPARK toolset now flags uses of pragma Annotate which do not suppress any check message. This helps in maintaining projects where pragma Annotate is used.

  • GNAT Pro|GNATbench | GNAT Pro|GPS
    Jan 29th, 2015

    GPS: omni-search now searches in gpr files
    The 'Sources' context in the omni-search now also searches the gpr files themselves, in addition to the source files.

  • GNAT Pro
    Jan 29th, 2015

    Improve handling of pragma Independent[_Components]
    The implementation of aspects/pragmas Independent[_Components] has been overhauled so as to reject them in fewer cases, in particular with packing for record types, and make them consistent with similar aspects/pragmas.

  • GNAT Pro|GNATbench | GNAT Pro|GPS
    Jan 28th, 2015

    GPS: Revamp the project properties dialog
    We have redesigned the dialog to edit the project properties, to avoid the use of notebooks, since there was potentially a large number of pages in the notebook and it became difficult to select them.

  • SPARK Pro
    Jan 27th, 2015

    Improved error message about hidden state
    When a variable that is part of the hidden state of another package is used by a subprogram without having been mentioned in the subprogram's Global aspect the tools issue an error saying that a Global aspect is required to make the variable visible. The relevant message now also mentions the other package's variable that triggered the error.

  • GNAT Pro|GPRbuild
    Jan 27th, 2015

    Warnings when interface of a SAL is incomplete
    When gprbuild is invoked without -q, it checks if the interface of a SAL is complete, and warn if units of the project that are imported by the interface units are not themselves in the interface.

  • GNAT Pro|GNATbench | GNAT Pro|GPS
    Jan 26th, 2015

    GPS: Better fortran syntax highlighting
    A new syntax highlighter has been added for fortran, using the new python highlighters engine.

  • GNAT Pro|GPRbuild
    Jan 26th, 2015

    New gprbuild switch -z
    gprbuild now accepts the switch -z to build executable with no main subprogram, as gnatmake already does.

  • GNAT Pro
    Jan 26th, 2015

    Inline_Always overrides gcc -fno-inline
    For GCC-based compilers, pragma Inline_Always now enforces inlining even with -fno-inline passed on the command line, which makes the pragma behavior consistent with the use of an "always_inline" machine attribute.

  • GNAT Pro|GNATbench | GNAT Pro|GPS
    Jan 23rd, 2015

    GPS: \i for sequence number in regexp replacements
    When the regular expression replacement string contains "\i" or "\i(start, delta)" then this pattern will be replaced with sequence numbers in replacement text.

  • SPARK Pro
    Jan 21st, 2015

    Check that ‘Old prefix is an in[put]
    The GNATprove tool now issues a high check whenever a prefix of an attribute "Old" is not either a formal "in" parameter or a global "input".

  • SPARK Pro
    Jan 20th, 2015

    Use version 0.99.1 of Alt-Ergo
    The Alt-Ergo theorem prover shipped with GNATprove is now the 0.99.1 version instead of the 0.95.2 version, which allows slightly more proofs to be automated on average.

  • SPARK Pro
    Jan 20th, 2015

    Improve handling of dynamic private types
    The SPARK toolset now tracks bounds of dynamically constrained arrays and discriminants of dynamically constrained records better, especially when their type is private. This results in better automatic proof of run-time checks.

  • SPARK Pro
    Jan 19th, 2015

    New form of pragma Warnings for specific tool
    Users of GNATprove can now specify pragma Warnings for GNAT and GNATprove separately, to selectively disable warnings from the compiler or the formal verification tool, using the syntax

      pragma Warnings (GNATprove, ...);
    
    for GNATprove-specific warnings, and
      pragma Warnings (GNAT, ...);
    
    for GNAT-specific warnings. This also allows detecting useless pragma Warnings with switch -gnatw.w, which was not possible previously as using this switch caused the tools to issue spurious warnings on the those pragma Warnings meant for the other tool.

  • Ada Web Server
    Jan 18th, 2015

    Add support for external schema
    It is now possible to use WSDL with references to external schema. In this case, wsdl2aws tool, will check the schema locally and load it if found.

  • Ada Web Server
    Jan 18th, 2015

    Add support for derived types
    AWS's wsdl2aws tool has now full support for derived types. The namespace for the parent type is properly used when generating the corresponding Ada code. This has make it possible to clean-up some old code to handle Ada Character mapping for example. Any type derivation level is properly handled.

  • GNAT Pro
    Jan 18th, 2015

    Better error recovery for WHEN in place of WITH
    The compiler now handles the case of WHEN used accidentally instead of WITH to introduce aspect specifications, and gives a clear error message.

  • GNAT Pro
    Jan 17th, 2015

    New documentation on floating-point
    A new section on "Floating-Point Operations" is added to the users guide. This section documents the infinity/NaN behavior of most GNAT ports, and also describes the -msse2 and -mfpmath=sse2 switches to force use of SSE2 arithmetic operations when the target is an x86.

  • GNAT Pro|GNATbench | GNAT Pro|GPS
    Jan 14th, 2015

    GB: Debugger field added to toolchain editor
    Debugger command can be displayed and changed in the toolchain editor.

  • SPARK Pro
    Jan 13th, 2015

    Issue proof checks on calls to Assertions.Assert
    GNATprove now generates a check that Assertions.Assert procedures are always called with a Check argument of "True". This check shows as a precondition check when calling Assertions.Assert (a precondition added in the declarations of Assertions.Assert in a-assert.ads). The dynamic semantics of Assertions.Assert have not been modified, by setting the Assertion_Policy to Ignore for Pre in this unit (also in the same file).

   1  2  3     Next »