projects
/
gcc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8cd7aec
)
[Ada] No Default_Initial_Condition check when declaring an imported object
author
Steve Baird
<baird@adacore.com>
Thu, 23 Apr 2020 18:37:10 +0000
(11:37 -0700)
committer
Pierre-Marie de Rodat
<derodat@adacore.com>
Thu, 18 Jun 2020 09:08:30 +0000
(
05:08
-0400)
2020-06-18 Steve Baird <baird@adacore.com>
gcc/ada/
* exp_ch3.adb (Expand_N_Object_Declaration): Do not generate a
default initial condition check for the declaration of an
imported object.
gcc/ada/exp_ch3.adb
patch
|
blob
|
history
diff --git
a/gcc/ada/exp_ch3.adb
b/gcc/ada/exp_ch3.adb
index 15b88c3a87b01d7862927d8938c8c1a21dded596..f89e070918dbc3589d5bffac4afb34084376ecce 100644
(file)
--- a/
gcc/ada/exp_ch3.adb
+++ b/
gcc/ada/exp_ch3.adb
@@
-7516,6
+7516,7
@@
package body Exp_Ch3 is
and then Has_DIC (Typ)
and then Present (DIC_Procedure (Typ))
and then not Has_Init_Expression (N)
+ and then not Is_Imported (Def_Id)
then
declare
DIC_Call : constant Node_Id := Build_DIC_Call (Loc, Def_Id, Typ);