summaryrefslogtreecommitdiff
path: root/gcc/ada/comperr.adb
diff options
context:
space:
mode:
authorcharlet <charlet@138bc75d-0d04-0410-961f-82ee72b054a4>2012-03-09 14:50:48 +0000
committercharlet <charlet@138bc75d-0d04-0410-961f-82ee72b054a4>2012-03-09 14:50:48 +0000
commit385d80fe4f23caffacc9afe220b7d1d233396bb5 (patch)
treed1aedbd66af9c99b39741e1a46c7919ec53f4090 /gcc/ada/comperr.adb
parent2608e82472b97b6e7b8d13b875987af859d2c1da (diff)
downloadgcc-385d80fe4f23caffacc9afe220b7d1d233396bb5.tar.gz
2012-03-09 Robert Dewar <dewar@adacore.com>
* s-osinte-linux.ads, sem_util.adb, s-taprop-linux.adb, exp_ch4.adb, a-strsup.ads, sem_ch6.adb, a-stwisu.ads, exp_ch3.adb, a-stzsup.ads: Minor reformatting. 2012-03-09 Thomas Quinot <quinot@adacore.com> * s-ransee-vms.adb: Minor reformatting. 2012-03-09 Arnaud Charlet <charlet@adacore.com> * comperr.adb (Delete_SCIL_Files): Fix handling of N_Package_Renaming_Declaration and N_Generic_Package_Declaration. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@185141 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/ada/comperr.adb')
-rw-r--r--gcc/ada/comperr.adb11
1 files changed, 9 insertions, 2 deletions
diff --git a/gcc/ada/comperr.adb b/gcc/ada/comperr.adb
index 9bf83f3879d..207beb8c82b 100644
--- a/gcc/ada/comperr.adb
+++ b/gcc/ada/comperr.adb
@@ -6,7 +6,7 @@
-- --
-- B o d y --
-- --
--- Copyright (C) 1992-2011, Free Software Foundation, Inc. --
+-- Copyright (C) 1992-2012, 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- --
@@ -477,7 +477,7 @@ package body Comperr is
Name_Len := K;
end Decode_Name_Buffer;
- -- Start of processing for Decode_Name_Buffer
+ -- Start of processing for Delete_SCIL_Files
begin
-- If parsing was not successful, no Main_Unit is available, so return
@@ -499,6 +499,13 @@ package body Comperr is
when N_Package_Body =>
Unit_Name := Corresponding_Spec (Main);
+ when N_Package_Renaming_Declaration =>
+ Unit_Name := Defining_Unit_Name (Main);
+
+ when N_Generic_Package_Declaration =>
+ -- No SCIL file generated for generic package declarations
+ return;
+
-- Should never happen, but can be ignored in production
when others =>