aboutsummaryrefslogtreecommitdiff
path: root/gcc/ada/sinput-l.adb
diff options
context:
space:
mode:
authorBob Duff <duff@adacore.com>2017-04-25 13:37:18 +0000
committerArnaud Charlet <charlet@gcc.gnu.org>2017-04-25 15:37:18 +0200
commit0f96fd143cd249110dcdeabea7fd8972b91b86c6 (patch)
treefa63d732e414c06875cdb37cbfc725c72890f52b /gcc/ada/sinput-l.adb
parent7d5dbb22ec8e0c1f104539d3fdf2afc5174a5b45 (diff)
downloadgcc-0f96fd143cd249110dcdeabea7fd8972b91b86c6.zip
gcc-0f96fd143cd249110dcdeabea7fd8972b91b86c6.tar.gz
gcc-0f96fd143cd249110dcdeabea7fd8972b91b86c6.tar.bz2
err_vars.ads, [...]: Eliminate the vestigial Internal_Source_File and the Internal_Source buffer.
2017-04-25 Bob Duff <duff@adacore.com> * err_vars.ads, fmap.adb, fmap.ads, comperr.adb, fname-sf.adb, types.adb, types.ads, types.h, sinput-l.adb, targparm.adb, errout.adb, sinput.adb, sinput.ads, cstand.adb, scn.adb, scn.ads, gnatls.adb: Eliminate the vestigial Internal_Source_File and the Internal_Source buffer. This removes the incorrect call to "=" the customer noticed. Wrap remaining calls to "=" in Null_Source_Buffer_Ptr. We eventually need to eliminate them altogether. Or else get rid of zero-origin addressing. From-SVN: r247234
Diffstat (limited to 'gcc/ada/sinput-l.adb')
-rw-r--r--gcc/ada/sinput-l.adb4
1 files changed, 2 insertions, 2 deletions
diff --git a/gcc/ada/sinput-l.adb b/gcc/ada/sinput-l.adb
index 8141262d..aa747ce 100644
--- a/gcc/ada/sinput-l.adb
+++ b/gcc/ada/sinput-l.adb
@@ -6,7 +6,7 @@
-- --
-- B o d y --
-- --
--- Copyright (C) 1992-2016, Free Software Foundation, Inc. --
+-- Copyright (C) 1992-2017, Free Software Foundation, Inc. --
-- --
-- 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- --
@@ -416,7 +416,7 @@ package body Sinput.L is
Osint.Read_Source_File (N, Lo, Hi, Src, T);
- if Src = null then
+ if Null_Source_Buffer_Ptr (Src) then
Source_File.Decrement_Last;
return No_Source_File;