aboutsummaryrefslogtreecommitdiff
path: root/gcc/ada/gprep.adb
diff options
context:
space:
mode:
authorVincent Celier <celier@adacore.com>2007-04-06 11:22:50 +0200
committerArnaud Charlet <charlet@gcc.gnu.org>2007-04-06 11:22:50 +0200
commit7616900d855c17029e6395dcaf3db3dac95cdbe3 (patch)
treef217fda184f246e27899107b2627714995425d5c /gcc/ada/gprep.adb
parentdf777314f1fcc8cce837e8c86c56d60425fe875c (diff)
downloadgcc-7616900d855c17029e6395dcaf3db3dac95cdbe3.zip
gcc-7616900d855c17029e6395dcaf3db3dac95cdbe3.tar.gz
gcc-7616900d855c17029e6395dcaf3db3dac95cdbe3.tar.bz2
gprep.adb (Process_Files.Process_One_File): Use full file name when issuing pragma Source_Reference.
2007-04-06 Vincent Celier <celier@adacore.com> * gprep.adb (Process_Files.Process_One_File): Use full file name when issuing pragma Source_Reference. From-SVN: r123576
Diffstat (limited to 'gcc/ada/gprep.adb')
-rw-r--r--gcc/ada/gprep.adb9
1 files changed, 5 insertions, 4 deletions
diff --git a/gcc/ada/gprep.adb b/gcc/ada/gprep.adb
index 3a3e282..e9c3763 100644
--- a/gcc/ada/gprep.adb
+++ b/gcc/ada/gprep.adb
@@ -506,12 +506,13 @@ package body GPrep is
Scanner.Initialize_Scanner (Infile);
- -- Output the SFN pragma if asked to
+ -- Output the pragma Source_Reference if asked to
if Source_Ref_Pragma then
- Put_Line (Outfile.all, "pragma Source_Reference (1, """ &
- Get_Name_String (Sinput.File_Name (Infile)) &
- """);");
+ Put_Line
+ (Outfile.all,
+ "pragma Source_Reference (1, """ &
+ Get_Name_String (Sinput.Full_File_Name (Infile)) & """);");
end if;
-- Preprocess the input file