Commit 008f6fd3 by Arnaud Charlet

[multiple changes]

2010-06-21  Pascal Obry  <obry@adacore.com>

	* prj-nmsc.adb (Search_Directories): Use the non-translated directory
	path to open it.

2010-06-21  Javier Miranda  <miranda@adacore.com>

	* exp_cg.adb (Write_Call_Info): Fill the component sourcename using the
	external name.

2010-06-21  Ed Schonberg  <schonberg@adacore.com>

	* exp_ch4.adb (Expand_Concatenate): If an object declaration is created
	to hold the result, indicate that the target of the declaration does
	not need an initialization, to prevent spurious errors when
	Initialize_Scalars is enabled.

2010-06-21  Ed Schonberg  <schonberg@adacore.com>

	* a-tifiio.adb (Put): In the procedure that performs I/O on a String,
	Fore is not bound by line length. The Fore parameter of the internal
	procedure that performs the operation is an integer.

2010-06-21  Thomas Quinot  <quinot@adacore.com>

	* sem_res.adb, checks.adb: Minor reformatting.

2010-06-21  Emmanuel Briot  <briot@adacore.com>

	* s-regpat.adb (Next_Instruction, Get_Next_Offset): Removed, merged
	into Get_Next.
	(Insert_Operator_Before): New subprogram, avoids duplicated code
	(Compile): Avoid doing two compilations when the pattern matcher ends
	up being small.

From-SVN: r161074
parent 0b33adf1
2010-06-21 Pascal Obry <obry@adacore.com>
* prj-nmsc.adb (Search_Directories): Use the non-translated directory
path to open it.
2010-06-21 Javier Miranda <miranda@adacore.com>
* exp_cg.adb (Write_Call_Info): Fill the component sourcename using the
external name.
2010-06-21 Ed Schonberg <schonberg@adacore.com>
* exp_ch4.adb (Expand_Concatenate): If an object declaration is created
to hold the result, indicate that the target of the declaration does
not need an initialization, to prevent spurious errors when
Initialize_Scalars is enabled.
2010-06-21 Ed Schonberg <schonberg@adacore.com>
* a-tifiio.adb (Put): In the procedure that performs I/O on a String,
Fore is not bound by line length. The Fore parameter of the internal
procedure that performs the operation is an integer.
2010-06-21 Thomas Quinot <quinot@adacore.com>
* sem_res.adb, checks.adb: Minor reformatting.
2010-06-21 Emmanuel Briot <briot@adacore.com>
* s-regpat.adb (Next_Instruction, Get_Next_Offset): Removed, merged
into Get_Next.
(Insert_Operator_Before): New subprogram, avoids duplicated code
(Compile): Avoid doing two compilations when the pattern matcher ends
up being small.
2010-06-21 Emmanuel Briot <briot@adacore.com> 2010-06-21 Emmanuel Briot <briot@adacore.com>
* s-regpat.adb: Improve debug traces * s-regpat.adb: Improve debug traces
......
...@@ -6,7 +6,7 @@ ...@@ -6,7 +6,7 @@
-- -- -- --
-- B o d y -- -- B o d y --
-- -- -- --
-- Copyright (C) 1992-2009, Free Software Foundation, Inc. -- -- Copyright (C) 1992-2010, Free Software Foundation, Inc. --
-- -- -- --
-- GNAT is free software; you can redistribute it and/or modify it under -- -- GNAT is free software; you can redistribute it and/or modify it under --
-- terms of the GNU General Public License as published by the Free Soft- -- -- terms of the GNU General Public License as published by the Free Soft- --
...@@ -301,10 +301,14 @@ package body Ada.Text_IO.Fixed_IO is ...@@ -301,10 +301,14 @@ package body Ada.Text_IO.Fixed_IO is
(To : out String; (To : out String;
Last : out Natural; Last : out Natural;
Item : Num; Item : Num;
Fore : Field; Fore : Integer;
Aft : Field; Aft : Field;
Exp : Field); Exp : Field);
-- Actual output function, used internally by all other Put routines -- Actual output function, used internally by all other Put routines
-- The formal Fore is an Integer, not a Field, because the routine is
-- also called from the version of Put that performs I/O to a string,
-- where the starting position depends on the size of the String, and
-- bears no relation to the bounds of Field.
--------- ---------
-- Get -- -- Get --
...@@ -392,7 +396,7 @@ package body Ada.Text_IO.Fixed_IO is ...@@ -392,7 +396,7 @@ package body Ada.Text_IO.Fixed_IO is
Last : Natural; Last : Natural;
begin begin
if Fore - Boolean'Pos (Item < 0.0) < 1 or else Fore > Field'Last then if Fore - Boolean'Pos (Item < 0.0) < 1 then
raise Layout_Error; raise Layout_Error;
end if; end if;
...@@ -407,7 +411,7 @@ package body Ada.Text_IO.Fixed_IO is ...@@ -407,7 +411,7 @@ package body Ada.Text_IO.Fixed_IO is
(To : out String; (To : out String;
Last : out Natural; Last : out Natural;
Item : Num; Item : Num;
Fore : Field; Fore : Integer;
Aft : Field; Aft : Field;
Exp : Field) Exp : Field)
is is
......
...@@ -28,6 +28,7 @@ with Debug; use Debug; ...@@ -28,6 +28,7 @@ with Debug; use Debug;
with Einfo; use Einfo; with Einfo; use Einfo;
with Elists; use Elists; with Elists; use Elists;
with Exp_Disp; use Exp_Disp; with Exp_Disp; use Exp_Disp;
with Exp_Dbug; use Exp_Dbug;
with Exp_Tss; use Exp_Tss; with Exp_Tss; use Exp_Tss;
with Lib; use Lib; with Lib; use Lib;
with Namet; use Namet; with Namet; use Namet;
...@@ -392,7 +393,8 @@ package body Exp_CG is ...@@ -392,7 +393,8 @@ package body Exp_CG is
Write_Str ("edge: { sourcename: "); Write_Str ("edge: { sourcename: ");
Write_Char ('"'); Write_Char ('"');
Write_Name (Chars (Defining_Entity (P))); Get_External_Name (Defining_Entity (P), Has_Suffix => False);
Write_Str (Name_Buffer (1 .. Name_Len));
if Nkind (P) = N_Package_Declaration then if Nkind (P) = N_Package_Declaration then
Write_Str ("___elabs"); Write_Str ("___elabs");
......
...@@ -2827,8 +2827,11 @@ package body Exp_Ch4 is ...@@ -2827,8 +2827,11 @@ package body Exp_Ch4 is
Insert_Actions (Cnode, Actions, Suppress => All_Checks); Insert_Actions (Cnode, Actions, Suppress => All_Checks);
-- Now we construct an array object with appropriate bounds -- Now we construct an array object with appropriate bounds
-- The target is marked as internal, to prevent useless initialization
-- when Initialize_Scalars is enabled.
Ent := Make_Temporary (Loc, 'S'); Ent := Make_Temporary (Loc, 'S');
Set_Is_Internal (Ent);
-- If the bound is statically known to be out of range, we do not want -- If the bound is statically known to be out of range, we do not want
-- to abort, we want a warning and a runtime constraint error. Note that -- to abort, we want a warning and a runtime constraint error. Note that
......
...@@ -6845,6 +6845,12 @@ package body Prj.Nmsc is ...@@ -6845,6 +6845,12 @@ package body Prj.Nmsc is
Dir_Last : constant Natural := Dir_Last : constant Natural :=
Compute_Directory_Last Compute_Directory_Last
(Source_Directory); (Source_Directory);
-- The Display_Source_Directory is to be able to open an
-- UTF-8 encoded directory on Windows.
Display_Source_Directory : constant String :=
Get_Name_String
(Element.Display_Value)
& Directory_Separator;
begin begin
if Current_Verbosity = High then if Current_Verbosity = High then
...@@ -6856,7 +6862,7 @@ package body Prj.Nmsc is ...@@ -6856,7 +6862,7 @@ package body Prj.Nmsc is
-- We look to every entry in the source directory -- We look to every entry in the source directory
Open (Dir, Source_Directory); Open (Dir, Display_Source_Directory);
loop loop
Read (Dir, Name, Last); Read (Dir, Name, Last);
...@@ -6871,7 +6877,7 @@ package body Prj.Nmsc is ...@@ -6871,7 +6877,7 @@ package body Prj.Nmsc is
if not Opt.Follow_Links_For_Files if not Opt.Follow_Links_For_Files
or else Is_Regular_File or else Is_Regular_File
(Source_Directory & Name (1 .. Last)) (Display_Source_Directory & Name (1 .. Last))
then then
if Current_Verbosity = High then if Current_Verbosity = High then
Write_Str (" Checking "); Write_Str (" Checking ");
......
...@@ -5906,7 +5906,7 @@ package body Sem_Res is ...@@ -5906,7 +5906,7 @@ package body Sem_Res is
-- to the discriminant of the same name in the target task. If the -- to the discriminant of the same name in the target task. If the
-- entry name is the target of a requeue statement and the entry is -- entry name is the target of a requeue statement and the entry is
-- in the current protected object, the bound to be used is the -- in the current protected object, the bound to be used is the
-- discriminal of the object (see apply_range_checks for details of -- discriminal of the object (see Apply_Range_Checks for details of
-- the transformation). -- the transformation).
----------------------------- -----------------------------
......
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