Commit 5f411681 by Arnaud Charlet

[multiple changes]

2012-10-29  Pascal Obry  <obry@adacore.com>

	* xoscons.adb, Make-generated.in; The template used by xoscons is now
	given as parameter.
	* gcc-interface/Make-lang.in: Update dependencies.

2012-10-29  Yannick Moy  <moy@adacore.com>

	* exp_dbug.adb (Qualify_Entity_Name): Only do renaming in formal
	verification mode when there is a homonym.

From-SVN: r192942
parent 29dd4e88
2012-10-29 Pascal Obry <obry@adacore.com>
* xoscons.adb, Make-generated.in; The template used by xoscons is now
given as parameter.
* gcc-interface/Make-lang.in: Update dependencies.
2012-10-29 Yannick Moy <moy@adacore.com>
* exp_dbug.adb (Qualify_Entity_Name): Only do renaming in formal
verification mode when there is a homonym.
2012-10-29 Thomas Quinot <quinot@adacore.com> 2012-10-29 Thomas Quinot <quinot@adacore.com>
* xoscons.adb: Minor reformatting. * xoscons.adb: Minor reformatting.
......
...@@ -93,7 +93,7 @@ $(ADA_GEN_SUBDIR)/s-oscons.ads : $(ADA_GEN_SUBDIR)/s-oscons-tmplt.c $(ADA_GEN_SU ...@@ -93,7 +93,7 @@ $(ADA_GEN_SUBDIR)/s-oscons.ads : $(ADA_GEN_SUBDIR)/s-oscons-tmplt.c $(ADA_GEN_SU
$(RM) s-oscons-tmplt.i s-oscons-tmplt.s ; \ $(RM) s-oscons-tmplt.i s-oscons-tmplt.s ; \
$(OSCONS_CPP) ; \ $(OSCONS_CPP) ; \
$(OSCONS_EXTRACT) ; \ $(OSCONS_EXTRACT) ; \
./xoscons ) ; \ ./xoscons s-oscons ) ; \
$(MOVE_IF_CHANGE) $(ADA_GEN_SUBDIR)/bldtools/oscons/s-oscons.ads $(ADA_GEN_SUBDIR)/s-oscons.ads ; \ $(MOVE_IF_CHANGE) $(ADA_GEN_SUBDIR)/bldtools/oscons/s-oscons.ads $(ADA_GEN_SUBDIR)/s-oscons.ads ; \
$(MOVE_IF_CHANGE) $(ADA_GEN_SUBDIR)/bldtools/oscons/s-oscons.h $(ADA_GEN_SUBDIR)/s-oscons.h $(MOVE_IF_CHANGE) $(ADA_GEN_SUBDIR)/bldtools/oscons/s-oscons.h $(ADA_GEN_SUBDIR)/s-oscons.h
......
...@@ -1315,10 +1315,13 @@ package body Exp_Dbug is ...@@ -1315,10 +1315,13 @@ package body Exp_Dbug is
-- qualifying names when needed. -- qualifying names when needed.
elsif Alfa_Mode then elsif Alfa_Mode then
Get_Name_String (Chars (Ent)); if Has_Homonym (Ent) then
Append_Homonym_Number (Ent); Get_Name_String (Chars (Ent));
Output_Homonym_Numbers_Suffix; Append_Homonym_Number (Ent);
Set_Chars (Ent, Name_Enter); Output_Homonym_Numbers_Suffix;
Set_Chars (Ent, Name_Enter);
end if;
return; return;
-- If the entity is a variable encoding the debug name for an object -- If the entity is a variable encoding the debug name for an object
......
...@@ -23,16 +23,18 @@ ...@@ -23,16 +23,18 @@
-- -- -- --
------------------------------------------------------------------------------ ------------------------------------------------------------------------------
-- This program generates the spec of System.OS_Constants (s-oscons.ads) -- The base name of the template file is given by Argument (1). This program
-- generates the spec for this specified unit (let's call it UNIT_NAME).
-- It works in conjunction with a C template file which must be pre-processed -- It works in conjunction with a C template file which must be pre-processed
-- and compiled using the cross compiler. Two input files are used: -- and compiled using the cross compiler. Two input files are used:
-- - the preprocessed C file: s-oscons-tmplt.i -- - the preprocessed C file: UNIT_NAME-tmplt.i
-- - the generated assembly file: s-oscons-tmplt.s -- - the generated assembly file: UNIT_NAME-tmplt.s
-- The contents of s-oscons.ads is written on standard output -- The generated files are UNIT_NAME.ads and UNIT_NAME.h
with Ada.Characters.Handling; use Ada.Characters.Handling; with Ada.Characters.Handling; use Ada.Characters.Handling;
with Ada.Command_Line; use Ada.Command_Line;
with Ada.Exceptions; use Ada.Exceptions; with Ada.Exceptions; use Ada.Exceptions;
with Ada.Strings.Fixed; use Ada.Strings.Fixed; with Ada.Strings.Fixed; use Ada.Strings.Fixed;
with Ada.Text_IO; use Ada.Text_IO; with Ada.Text_IO; use Ada.Text_IO;
...@@ -52,7 +54,7 @@ procedure XOSCons is ...@@ -52,7 +54,7 @@ procedure XOSCons is
use ASCII; use ASCII;
use Ada.Strings; use Ada.Strings;
Unit_Name : constant String := "s-oscons"; Unit_Name : constant String := Argument (1);
Tmpl_Name : constant String := Unit_Name & "-tmplt"; Tmpl_Name : constant String := Unit_Name & "-tmplt";
------------------------------------------------- -------------------------------------------------
...@@ -559,4 +561,7 @@ begin ...@@ -559,4 +561,7 @@ begin
Close (Tmpl_File); Close (Tmpl_File);
exception
when others =>
Put_Line ("xoscons <base_name>");
end XOSCons; end XOSCons;
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment