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] always generate unix-style sources in xtreeprs, xnmake


Tested on i686-linux, committed on HEAD

The utility programs xnmake and xtreeprs used Text_IO to generate the
Ada output files (nmake.ads nmake.adb treeprs.ads) used in the build.
This means that they were generated with DOS line endings on windows,
which is wrong since we expect all GNAT sources to always have Unix
style line endings. Furthermore the new -gnatyd switch tests for this
and so this is now essential to fix. It has been fixed by using Stream_IO
instead of Text_IO for output, and writing the appropriate unix-style
line terminators explicitly

2005-03-29  Robert Dewar  <dewar@adacore.com>

	* xtreeprs.adb, xnmake.adb: Use Stream_IO instead of Text_IO to
	guarantee Unix style line terminators for the output files, even when
	running on windows.

Attachment: difs.23
Description: Text document


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