summaryrefslogtreecommitdiff
path: root/gcc/ada/exp_ch11.adb
diff options
context:
space:
mode:
authorcharlet <charlet@138bc75d-0d04-0410-961f-82ee72b054a4>2015-10-26 11:37:17 +0000
committercharlet <charlet@138bc75d-0d04-0410-961f-82ee72b054a4>2015-10-26 11:37:17 +0000
commit894192a2d44941d5b149ab7ed655fb402b48730c (patch)
treec80668d954e74578f7c175065fedc3cbf8832737 /gcc/ada/exp_ch11.adb
parent04b78eda2c85a9f3f2536f2567af1c87f2675589 (diff)
downloadgcc-894192a2d44941d5b149ab7ed655fb402b48730c.tar.gz
2015-10-26 Ed Schonberg <schonberg@adacore.com>
* sem_disp.adb (Check_Controlling_Type): Handle properly the case of an incomplete type whose full view is tagged, when a primitive operation of the type is declared between the two views. 2015-10-26 Bob Duff <duff@adacore.com> * adaint.c (__gnat_locate_exec_on_path): If the PATH environment variable is not set, do not return NULL, because we can still find the executable if it includes a directory name. 2015-10-26 Ed Schonberg <schonberg@adacore.com> * sem_elab.adb (Elab_Warning): Under dynamic elaboration, when elaboration warnings are enabled, emit proper warning header when triggered by an access attribute. 2015-10-26 Steve Baird <baird@adacore.com> * exp_ch11.adb: If CodePeer_Mode is true, generate simplified SCIL for exception declarations. * exp_ch11.adb (Expand_N_Exception_Declaration) If CodePeer_Mode is True, initialize the Full_Name component of the exception record to null instead of to the result of an unchecked conversion. 2015-10-26 Ed Schonberg <schonberg@adacore.com> * exp_unst.adb (Note_Uplevel_Ref) : Handle properly a reference that denotes a function returning a constrained array, that has been rewritten as a procedure. * makeutl.ads: Minor edit. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@229340 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/ada/exp_ch11.adb')
-rw-r--r--gcc/ada/exp_ch11.adb16
1 files changed, 12 insertions, 4 deletions
diff --git a/gcc/ada/exp_ch11.adb b/gcc/ada/exp_ch11.adb
index 9580d2dd15f..814dfdd80fd 100644
--- a/gcc/ada/exp_ch11.adb
+++ b/gcc/ada/exp_ch11.adb
@@ -1288,10 +1288,18 @@ package body Exp_Ch11 is
-- Full_Name component: Standard.A_Char!(Nam'Address)
- Append_To (L, Unchecked_Convert_To (Standard_A_Char,
- Make_Attribute_Reference (Loc,
- Prefix => New_Occurrence_Of (Ex_Id, Loc),
- Attribute_Name => Name_Address)));
+ -- The unchecked conversion causes capacity issues for CodePeer in some
+ -- cases and is never useful, so we set the Full_Name component to null
+ -- instead for CodePeer.
+
+ if CodePeer_Mode then
+ Append_To (L, Make_Null (Loc));
+ else
+ Append_To (L, Unchecked_Convert_To (Standard_A_Char,
+ Make_Attribute_Reference (Loc,
+ Prefix => New_Occurrence_Of (Ex_Id, Loc),
+ Attribute_Name => Name_Address)));
+ end if;
-- HTable_Ptr component: null