aboutsummaryrefslogtreecommitdiff
path: root/gcc/ada/lib-load.adb
diff options
context:
space:
mode:
authorPierre-Marie de Rodat <pmderodat@gcc.gnu.org>2017-10-09 20:28:22 +0000
committerPierre-Marie de Rodat <pmderodat@gcc.gnu.org>2017-10-09 20:28:22 +0000
commit7f5e671bce70f537708f36033cd44869ca94fb4c (patch)
tree502df8f997157241d93143dc07c49c176b749f99 /gcc/ada/lib-load.adb
parentf192ca5eea6a1b12e0cdf1e4342faa52744c5a25 (diff)
downloadgcc-7f5e671bce70f537708f36033cd44869ca94fb4c.zip
gcc-7f5e671bce70f537708f36033cd44869ca94fb4c.tar.gz
gcc-7f5e671bce70f537708f36033cd44869ca94fb4c.tar.bz2
[multiple changes]
2017-10-09 Justin Squirek <squirek@adacore.com> * sem_ch3.adb: Rename Uses_Unseen_Priv into Contains_Lib_Incomplete_Type. 2017-10-09 Hristian Kirtchev <kirtchev@adacore.com> * sem_aggr.adb, sem_spark.adb, adabkend.adb, exp_ch5.adb, frontend.adb, sem_ch12.adb, fmap.adb, exp_ch6.adb, exp_spark.adb, lib-load.adb, exp_ch9.adb, osint.adb, exp_disp.adb, sem_ch8.adb, sem_ch8.ads, prepcomp.adb, gnat1drv.adb, atree.adb, sinput-l.adb, targparm.adb, sem_ch10.adb, par-ch8.adb: Minor reformatting. From-SVN: r253566
Diffstat (limited to 'gcc/ada/lib-load.adb')
-rw-r--r--gcc/ada/lib-load.adb14
1 files changed, 10 insertions, 4 deletions
diff --git a/gcc/ada/lib-load.adb b/gcc/ada/lib-load.adb
index 1419422..977567d 100644
--- a/gcc/ada/lib-load.adb
+++ b/gcc/ada/lib-load.adb
@@ -328,19 +328,23 @@ package body Lib.Load is
if Main_Source_File > No_Source_File then
Version := Source_Checksum (Main_Source_File);
+
else
-- To avoid emitting a source location (since there is no file),
-- we write a custom error message instead of using the machinery
-- in errout.adb.
Set_Standard_Error;
+
if Main_Source_File = No_Access_To_Source_File then
- Write_Str ("no read access for file """
- & Get_Name_String (Fname) & """");
+ Write_Str
+ ("no read access for file """ & Get_Name_String (Fname)
+ & """");
else
- Write_Str ("file """
- & Get_Name_String (Fname) & """ not found");
+ Write_Str
+ ("file """ & Get_Name_String (Fname) & """ not found");
end if;
+
Write_Eol;
Set_Standard_Output;
end if;
@@ -835,6 +839,7 @@ package body Lib.Load is
else
Write_Str (" file was not found, load failed");
end if;
+
Write_Eol;
end if;
@@ -867,6 +872,7 @@ package body Lib.Load is
else
Error_Msg_File_1 := Fname;
+
if Src_Ind = No_Access_To_Source_File then
Error_Msg ("no read access to file{", Load_Msg_Sloc);
else