This is the mail archive of the gcc-patches@gcc.gnu.org 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] Automated generation of System.OS_Constants


This change introduces a mechanism to automatically generate
System.OS_Constants, a package providing access to the numeric
value of various operating system constants extracted from C headers.

This is achieved using a C source file which produces specifically
marked up lines in the generated assembly, and an Ada program which
parses these lines and generates the Ada source code for
s-oscons.ads.

No behaviour change, no test.

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

2008-08-05  Thomas Quinot  <quinot@adacore.com>

	* xoscons.adb, xutil.ads, xutil.adb, s-oscons-tmplt.c: New files.

	* gcc-interface/Makefile.in, gcc-interface/Make-lang.in: Generate
	s-oscons.ads

libada/ 
	* Makefile.in (gnatlib*): Now depend on oscons target.
	(oscons): New target.

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]