+2019-07-01 Eric Botcazou <ebotcazou@adacore.com>
+
+ * sem_ch12.adb (Analyze_Subprogram_Instantiation): Move up
+ handling of Has_Pragma_Inline_Always and deal with
+ Has_Pragma_No_Inline.
+
2019-07-01 Ed Schonberg <schonberg@adacore.com>
* sem_ch3.adb (Build_Derived_Record_Type): If the parent type is
Set_Has_Pragma_Inline (Act_Decl_Id, Has_Pragma_Inline (Gen_Unit));
Set_Has_Pragma_Inline (Anon_Id, Has_Pragma_Inline (Gen_Unit));
+ Set_Has_Pragma_Inline_Always
+ (Act_Decl_Id, Has_Pragma_Inline_Always (Gen_Unit));
+ Set_Has_Pragma_Inline_Always
+ (Anon_Id, Has_Pragma_Inline_Always (Gen_Unit));
+
+ Set_Has_Pragma_No_Inline
+ (Act_Decl_Id, Has_Pragma_No_Inline (Gen_Unit));
+ Set_Has_Pragma_No_Inline
+ (Anon_Id, Has_Pragma_No_Inline (Gen_Unit));
+
-- Propagate No_Return if pragma applied to generic unit. This must
-- be done explicitly because pragma does not appear in generic
-- declaration (unlike the aspect case).
Set_No_Return (Anon_Id);
end if;
- Set_Has_Pragma_Inline_Always
- (Act_Decl_Id, Has_Pragma_Inline_Always (Gen_Unit));
- Set_Has_Pragma_Inline_Always
- (Anon_Id, Has_Pragma_Inline_Always (Gen_Unit));
-
-- Mark both the instance spec and the anonymous package in case the
-- body is instantiated at a later pass. This preserves the original
-- context in effect for the body.