This is the mail archive of the mailing list for the GCC project.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Ada] New Z lines in ALI files for implicit withs from instantiation

Units that are only withed from generic instantiation are now put in the
ALI file as Z lines instead of W lines.
There is no impact on GNAT tools. This is for the benefit of gprbuild.
The test for this is to have a unit A instantiating a generic unit B,
the body of which import a package C. In tha ALI file for A, there should
be a Z line for package C.

Tested on x86_64-pc-linux-gnu, committed on trunk

2012-04-02  Vincent Celier  <>

	* ali.adb (Scan_Ali): Recognize Z lines. Set
	Implicit_With_From_Instantiation to True in the With_Record for
	Z lines.
	* (With_Record): New Boolean component
	Implicit_With_From_Instantiation, defaulted to False.
	* csinfo.adb: Indicate that Implicit_With_From_Instantiation
	is special
	* lib-writ.adb (Write_ALI): New array Implicit_With.
	(Collect_Withs): Set Implicit_With for the unit is it is not Yes.
	(Write_With_Lines): Write a Z line instead of a W line if
	Implicit_With is Yes for the unit.
	* sem_ch12.adb (Inherit_Context): Only add a unit in the context
	if it is not there yet.
	* New flag Implicit_With_From_Instantiation (Flag12)

Attachment: difs
Description: Text document

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]