aboutsummaryrefslogtreecommitdiff
path: root/gcc/ada/inline.adb
diff options
context:
space:
mode:
authorArnaud Charlet <charlet@gcc.gnu.org>2014-10-20 16:17:37 +0200
committerArnaud Charlet <charlet@gcc.gnu.org>2014-10-20 16:17:37 +0200
commit1725676d08348f92dd1297cf79365ca69c759f31 (patch)
tree8c8a012641abada9742f42f3abdd710ad7999737 /gcc/ada/inline.adb
parent3e1862b1fd8d6025453dfb3119891dcc26822528 (diff)
downloadgcc-1725676d08348f92dd1297cf79365ca69c759f31.zip
gcc-1725676d08348f92dd1297cf79365ca69c759f31.tar.gz
gcc-1725676d08348f92dd1297cf79365ca69c759f31.tar.bz2
[multiple changes]
2014-10-20 Eric Botcazou <ebotcazou@adacore.com> * inline.adb (List_Inlining_Info): Minor tweaks. (Add_Inlined_Body): Inline the enclosing package if it is not internally generated, even if it doesn't come from source. 2014-10-20 Ed Schonberg <schonberg@adacore.com> * sem_ch4.adb (Process_Function_Call): If the first actual denotes a discrete type, the mode must be interpreted as a slice of an array returned by a parameterless call. 2014-10-20 Vasiliy Fofanov <fofanov@adacore.com> * prj-env.ads, prj-env.adb (Get_Runtime_Path): No longer inhibit searching for runtime referenced by a simple name on a project path. 2014-10-20 Olivier Hainque <hainque@adacore.com> * vxworks-x86-link.spec: New file. * system-vxworks-x86.ads: Add pragma Linker_Options to link with vxworks-x86-link.spec. 2014-10-20 Vincent Celier <celier@adacore.com> * opt.ads (Origin_Of_Target): New type. (Target_Origin): New variable. * prj-conf.adb (Parse_Project_And_Apply_Config): Record Target_Value and Target_Origin. If target was not specified on the command line with --target=, check if attribute Target is declared in the main project. If it is and it is not the native target, parse again the projects so that 'Target get the new value. Fail if the target has changed again. Invoke Process_Project_And_Apply_Config with Do_Phase_1 set to False is Process_Project_Tree_Phase_1 has already been invoked. * prj-conf.ads (Process_Project_And_Apply_Config): New Boolean parameter Do_Phase_1, defaulted to True. * prj-proc.adb (Expression): Check the special values and defaults for attribute Target. 2014-10-20 Ed Schonberg <schonberg@adacore.com> * sem_ch3.adb (Handle_Late_Controlled_Primitive): Do not analyze the subprogram spec of the body in full, because it will be reanalyzed when the declaration itself is analyzed; otherwise. a formal may end up duplicated in the list of formals leading to spurious conformance errors with an existing declaration. From-SVN: r216473
Diffstat (limited to 'gcc/ada/inline.adb')
-rw-r--r--gcc/ada/inline.adb12
1 files changed, 6 insertions, 6 deletions
diff --git a/gcc/ada/inline.adb b/gcc/ada/inline.adb
index c2e0f18..efb4e6c 100644
--- a/gcc/ada/inline.adb
+++ b/gcc/ada/inline.adb
@@ -414,7 +414,7 @@ package body Inline is
elsif Level = Inline_Package
and then not Is_Inlined (Pack)
- and then Comes_From_Source (E)
+ and then not Is_Internal (E)
and then not In_Main_Unit_Or_Subunit (Pack)
then
Set_Is_Inlined (Pack);
@@ -3888,7 +3888,7 @@ package body Inline is
Count := Count + 1;
if Count = 1 then
- Write_Str ("Listing of frontend inlined calls");
+ Write_Str ("List of calls inlined by the frontend");
Write_Eol;
end if;
@@ -3917,7 +3917,7 @@ package body Inline is
Count := Count + 1;
if Count = 1 then
- Write_Str ("Listing of inlined calls passed to the backend");
+ Write_Str ("List of inlined calls passed to the backend");
Write_Eol;
end if;
@@ -3947,7 +3947,7 @@ package body Inline is
if Count = 1 then
Write_Str
- ("Listing of inlined subprograms passed to the backend");
+ ("List of inlined subprograms passed to the backend");
Write_Eol;
end if;
@@ -3964,7 +3964,7 @@ package body Inline is
end loop;
end if;
- -- Generate listing of subprogram that cannot be inlined by the backend
+ -- Generate listing of subprograms that cannot be inlined by the backend
if Present (Backend_Not_Inlined_Subps)
and then Back_End_Inlining
@@ -3979,7 +3979,7 @@ package body Inline is
if Count = 1 then
Write_Str
- ("Listing of subprograms that cannot inline the backend");
+ ("List of subprograms that cannot be inlined by the backend");
Write_Eol;
end if;