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] Fix runtime build failure on vxworks 653 2.5


The current conditional compilation directives for vxworks
lead to a call with a single argument on some versions, and
to a call with two arguments on others.

We currently end up in the single argument case for all
versions of vxworks 653. This was fine for e.g. 2.2. This
isn't fine any more with 2.5, where the underlying mkdir
implementation was changed to expect the second argument.

This change reworks the code so we always issue a call with
two arguments, the second one to be ignored by implementations
that don't expect it.

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

2016-04-27  Olivier Hainque  <hainque@adacore.com>

	* mkdir.c (__gnat_mkdir): Rework the vxworks section to use a
	consistent posix interface on the caller side.

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]