953 Commits

Author SHA1 Message Date
Thomas Quinot
6a69498c28 Merge rev. 152020 from trunk
Fixes J118-011

Subversion-branch: /branches/polyorb/2.6
Subversion-revision: 155360
2010-01-18 11:17:11 +00:00
Thomas Quinot
46f498b73f Merge rev. 153905 from trunk:
add missing pragma Warnings (Off) in generated code.
Fix for IC01-009, which is a regression introduced by IB25-010

Subversion-branch: /branches/polyorb/2.6
Subversion-revision: 154884
2010-01-08 18:20:42 +00:00
Thomas Quinot
776e94214b Merge revisions 152854, 152855, 152858, 152859, 154677 from trunk:
fix for IB25-010.

Subversion-branch: /branches/polyorb/2.6
Subversion-revision: 154678
2010-01-04 17:16:32 +00:00
Thomas Quinot
bdf9bb135d (Analyze): Register the PCS_Conf_Unit explicitly as a unit to be loaded.
Even if this unit is not dragged in user's closure, it is referenced in
the PolyORB runtime itself, and so its stubs need to be built, even
if the main partition is not built.

Fixes IA29-009

Subversion-branch: /trunk/polyorb
Subversion-revision: 151649
2009-10-30 16:10:07 +00:00
Thomas Quinot
532ec1f3f8 Minor reformatting
Subversion-branch: /trunk/polyorb
Subversion-revision: 151647
2009-10-30 15:59:53 +00:00
Thomas Quinot
fd953bf3d3 Minor reformatting
Subversion-branch: /trunk/polyorb
Subversion-revision: 151638
2009-10-30 11:47:37 +00:00
Thomas Quinot
2abcc88948 Minor reformatting to remove new style warning from I907-010
Subversion-branch: /trunk/polyorb
Subversion-revision: 149322
2009-09-11 13:30:32 +00:00
Bob Duff
722d346032 * compilers/iac/frontend-debug.adb:
(W_Node_Attribute): If the attribute being printed is BE_Node, don't
call Kind
 on it, because it's a back-end node, and this is the front-end version
of
 Kind, which will either produce nonsense or crash, depending on whether
such a
 front-end Node_Id exists.

Fixes I804-026.

Subversion-branch: /trunk/polyorb
Subversion-revision: 148066
2009-08-04 19:23:33 +00:00
Bob Duff
f47ac12de9 * compilers/iac/frontend-nutils.ads, compilers/iac/frontend-nutils.adb:
Rename Is_A_Type to Is_Noninterface_Type, add new Is_Type function to
determine
 if a given node denotes a type (including interfaces).
* compilers/iac/analyzer.adb:
Call new Is_Noninterface_Type function.
(Analyze_Type_Spec): Check whether a type name actually denotes a type,
in all
 cases where the syntax allows a type name.
* compilers/iac/scopes.adb:
Call new Is_Noninterface_Type function.

Fixes I629-006.

This patch fixes a bug that caused PolyORB to crash when a non-type is
mentioned where a type should be. We now give an error message.

Subversion-branch: /trunk/polyorb
Subversion-revision: 148035
2009-08-04 13:44:41 +00:00
Thomas Quinot
3e45a8be89 (XE_Utils.Set_Application_Names): New subprogram, called once the
configuration
has been parsed to set the monolithic app main subprogram name and
distributed
app project name based on the configuration name. This allows building
multiple configurations sharing the same source code from the same
directory.

Subversion-branch: /trunk/polyorb
Subversion-revision: 145803
2009-06-16 13:56:46 +00:00
Thomas Quinot
9650601c49 Use short-circuit forms for boolean operators, in compliance with the
GNAT
Style Guide.
For I603-021

Subversion-branch: /trunk/polyorb
Subversion-revision: 145102
2009-06-03 17:45:08 +00:00
Bob Duff
f2d28006f4 * compilers/gnatdist/xe_main.adb:
(XE_Main): On the check for the "configuration file name should be ..."
error,
do a case insensitive comparison of the names, which is much more
friendly on
windows, and matches gprbuild behavior on all systems, with respect to
project
files.

* compilers/gnatdist/xe_names.adb:
(wn): Get rid of side effects on global variables. A debugging routine
really
should not perturb the state of the world!

Fixes I521-011.

Subversion-branch: /trunk/polyorb
Subversion-revision: 144912
2009-05-29 18:45:16 +00:00
Bob Duff
8cf399b58b Minor comment fix.
Subversion-branch: /trunk/polyorb
Subversion-revision: 144887
2009-05-29 14:57:29 +00:00
Thomas Quinot
08f804be1d Look for gprbuild on the PATH only when -dB is used.
Subversion-branch: /trunk/polyorb
Subversion-revision: 144572
2009-05-26 09:26:15 +00:00
Thomas Quinot
23dae447dd Add support for using gprbuild instead of gnatmake in po_gnatdist (note,
this isn't working yet, so is provided as an internal debugging command
line switch -dB).
For I513-021

Subversion-branch: /trunk/polyorb
Subversion-revision: 144292
2009-05-19 16:40:28 +00:00
Thomas Quinot
cc636fd9b9 Pass only executable base name as -o command line switch to gnatmake.
Followup on I513-015, fixes regressions on 0008-* tests.

Subversion-branch: /trunk/polyorb
Subversion-revision: 144179
2009-05-18 10:43:09 +00:00
Thomas Quinot
d277366b25 Minor reformatting
Subversion-branch: /trunk/polyorb
Subversion-revision: 143987
2009-05-13 16:15:32 +00:00
Thomas Quinot
bd6934e244 (XE_Back.Generate_Partition_Project_File):
Do not override package Builder from the extended project, since we
want
 to keep the user's global configuration pragmas file.

(XE_Back.PolyORB.Generate_Executable_File,
 XE_Back.Garlic.Generate_Executable_File): Pass -o <executable> to
gnatmake
 to specify the executable file name for each partition.

Fixes I513-015

Subversion-branch: /trunk/polyorb
Subversion-revision: 143979
2009-05-13 13:20:07 +00:00
Thomas Quinot
85f292af83 Minor reformatting
Subversion-branch: /trunk/polyorb
Subversion-revision: 143930
2009-05-12 17:07:22 +00:00
Thomas Quinot
a2fdf10939 (Parser): When parsing a file name, consider the field up to end of
line,
 since paths may contain white space.

(Load_All_Registered_Units): Do not use To_Afile to infer an ALI file
name
 from a source file name. Instead, use the ALI file name from the With
 entry.

Fixes for I508-017

Subversion-branch: /trunk/polyorb
Subversion-revision: 143929
2009-05-12 17:03:54 +00:00
Thomas Quinot
949918c0b5 Do not allocate a PID to the main partition twice.
Pass partition name from gnatdist to partition ID server.

Subversion-branch: /trunk/polyorb
Subversion-revision: 143858
2009-05-12 11:33:33 +00:00
Thomas Quinot
d66aae6019 Minor reformatting
Subversion-branch: /trunk/polyorb
Subversion-revision: 143851
2009-05-12 09:10:34 +00:00
Vadim Godunko
dbb8dda488 * xe_list.adb:
(Load_All_Registered_Units): Run gnatmake in "progress bar" mode only
  when this mode is requested by user.

* xe_utils.ads:
(Build): Add new parameter to specify "progress bar" mode.

* xe_utils.adb:
(Build): Add new parameter to specify "progress bar" mode.

  Add -d switch to the gnatmake command line if "progress bar" mode is
  requested.

(Scan_Dist_Arg): Set Display_Compilation_Progress flag if -d switch is
  presented in the command line. Don't pass it to gnatmake by default.

xe_back.adb:
(Generate_All_Stubs_And_Skels): Output compilation progress in "progress
  bar" mode.

* xe_flags.ads:
(Display_Compilation_Progress): New variable.

* xe_back-polyorb.adb:
(Run_Backend): Output partition build progress in "progress bar" mode.

Extend "progress bar" support. "progress bar" information is output for
each processed unit and for each built partition. It makes distributed
application built more "interactive" in GPS.

For I506-016.

Subversion-branch: /trunk/polyorb
Subversion-revision: 143806
2009-05-08 12:11:17 +00:00
Vadim Godunko
c05a4a853a * xe_usage.adb: Add description for new command line switch.
* xe_flags.ads:
(Keep_Going): New variable.

* xe_utils.adb:
(Scan_Dist_Arg): Add processing of the -k command line switch: set up
  Keep_Going flag and add switch to the list of switches which is passed
  to gnatmake.

* xe_list.adb:
(Load_All_Registered_Units): Never add -k switch to gnatmake command
  line. This is done when command line switches are parsed.

  Stop compilation on error if Keep_Going flag is not set.

For I506-015.

Subversion-branch: /trunk/polyorb
Subversion-revision: 143760
2009-05-07 13:35:17 +00:00
Vadim Godunko
b705db53d8 * xe_utils.adb:
(Scan_Dist_Arg) Rename internal (not documented) -d switch to -dd.

  Pass -d switch to gnatmake to enable output of the information for
  GPS's progress bar.

* xe_flags.ads:
(Dependencies_Flag) : Removed.

(Progress_Flag): New constant.

Part of I506-016.

Subversion-branch: /trunk/polyorb
Subversion-revision: 143748
2009-05-07 11:12:09 +00:00