Change use of Unchecked_Deallocation (which is obsolete since Ada 95) to
Ada.Unchecked_Deallocation to avoid warnings recently enabled in GNAT.
TN: V209-051
Change-Id: I58f1499218c1f132773892308e3d082f3cc52375
These redundant clauses will be flagged by the compiler in the near
future (PA07-083).
Q725-034
Subversion-branch: /trunk/polyorb
Subversion-revision: 257110
(Starts_With): New subprogram
* compilers/gnatdist/xe_utils.adb
(Scan_Dist_Arg):
Pass --unchecked-shared-lib-imports down to gnat ls
Fixes P120-017
Subversion-branch: /trunk/polyorb
Subversion-revision: 246124
Add Source_Input package.
* compilers/common_files/locations.adb:
Add assertion.
* compilers/common_files/namet.adb:
Fix bug: Hash function was crashing on the empty string.
Add a new Hash function for type Name_Id, so we can instantiate
Containers.Mapping packages with Key => Name_Id.
* compilers/common_files/namet.ads:
New Hash function.
* compilers/common_files/output.ads:
Add assertion.
* compilers/iac/backend-be_corba_ada-generator.adb:
Don't require comments to avoid spaces at beginning and end (it appears
to
already work).
* compilers/iac/backend-be_corba_ada-idl_to_ada.adb:
* compilers/iac/backend-be_corba_ada-idl_to_ada.ads:
Pass through Include_Source flag.
* compilers/iac/backend-be_corba_ada-nutils.ads:
* compilers/iac/backend-be_corba_ada-nutils.adb:
(Make_Comment_Header): Include the IDL source code at the top of the
Stubs
package spec. The IDL is not (yet) interspersed with the Ada.
(New_Node): Attach a source location to nodes of the Stubs package.
Previously,
almost all of the nodes had No_Location. This is to support the
interspersal.
Misc cleanup.
* compilers/iac/backend-be_corba_ada-stubs.adb:
Set Current_Loc, so New_Node can know the source location. It's a shame
to use
a global variable here, but it seems better than changing huge numbers
of calls
to node-creation routines to pass it as a parameter.
Pass Include_Source => True to enable inclusion in the Stubs package
spec;
all other package specs and bodies default to False.
* compilers/iac/iac.adb:
Use new Source_Input package, and new interface to Lexer.
* compilers/iac/lexer.ads:
* compilers/iac/lexer.adb:
Use new Source_Input package, which requires changing the interface to
Preprocess and Process.
Do not repeatedly re-read files.
* compilers/iac/mknodes.adb:
Use new Source_Input package. Use Open_Source to open the file.
* compilers/iac/parser.adb:
Use new interface to Lexer.
* compilers/iac/source_input.ads:
* compilers/iac/source_input.adb:
New package to support interspersed source.
Also allows for some cleanup in the lexer and elsewhere.
Fixes IA01-037.
Subversion-branch: /trunk/polyorb
Subversion-revision: 179194
Add support for #pragma derived, subtype, range, and switchname, in IAC.
Document as NF-28-K906-034
----
date: 2011/09/08 13:34:40; author: quinot;
Part of K614-012
Subversion-branch: /trunk/polyorb
Subversion-revision: 178347
For K322-023
----
date: 2011/03/28 09:33:51; author: quinot;
Also remove legacy idlac -> iac symlink, in the context of J121-026
Subversion-branch: /trunk/polyorb
Subversion-revision: 171684
the -p flag is set. This is a correction to the previous fix,
which evilly depended on the new Use_Stdout parameter of
GNAT.Perfect_Hash_Generators.Produce; we want to be able to build
PolyORB with
older versions of GNAT. We keep that parameter, in case it comes in
handy in
the future; it is now unused.
Follow-on to J503-020.
Subversion-branch: /trunk/polyorb
Subversion-revision: 159708
using
type String. Conceptually, it's not a String to be printed, it's a
template
with blanks to be filled in, and then printed. This avoids accidentally
using
tainted data in the template.
Change all uses of Display_Error to avoid tainted data -- always pass
Strings
via the "%" special character, rather than concatenating them into the
template.
Add new short-hand versions of Display_Error and Command_Line_Error, for
use
when a single String is being inserted via "%".
Initialize sets Error_Int to a value more likely to be noticed in case
of bugs.
Unexpected_Token doesn't need a default parameter, which simplifies it.
There were three occurrences of a cut&paste error in analyzer.adb, where
"Error_Name (1)" was used, when "Error_Name (2)" is correct.
Fixes J329-019.
Subversion-branch: /trunk/polyorb
Subversion-revision: 158458
This change removes the need for the prepare_distrib script to modify
configure.ac. Instead, when preparing a source package, an additional
file is created (support/distrib.m4) which contains appropriate
definitions
to tweak those settings that need to be changed from their default value
(which is used when building straight from an SCM checkout).
Subversion-branch: /trunk/polyorb
Subversion-revision: 127140
(Namet.Name_Buffer, Namet.Name_Len), which caused a bug when called
from
Errors.Display_Error, which uses the same global variables for a
different
purpose.
Move Image on Int from Frontend.Debug and Backend.BE_CORBA_Ada.Debug to
Utils,
and make it work for negative numbers. This is so Locations.Image can
call
it.
Errors.Display_Error was calling Image (Error_Loc (1)) when it should
use
Image (Error_Loc (2)). This is the case where the "!" refers to a
different
file, due to #include, and we want to display something like
"include_file_name.idl:12:34".
Misc code cleanup and added comments.
Fixes H723-022.
Subversion-branch: /trunk/polyorb
Subversion-revision: 127086
'\',
but windows actually allows two directory separators: '\' and '/'. Use
new
function Utils.Is_Dir_Separator instead. Clean up usage of
Dir_Separator
vs. Directory_Separator, from GNAT.Directory_Operations/GNAT.OS_Lib.
When iac prints messages, such as "idlac: 2 warning(s)", strip off the
directory name and the ".exe" extension from the command name, so it
looks the
same on Unix and Windows. Use new function Utils.Simple_Command_Name.
Part of H513-018.
Subversion-branch: /trunk/polyorb
Subversion-revision: 124972