[Ada] Simplify the VxWorks implementation of __gnat_environ
Pierre-Marie de Rodat
derodat@adacore.com
Wed Oct 21 07:23:33 GMT 2020
The VxWorks kernel implementation of __gnat_environ was more convoluted
than it needed to be and had an unneeded dependency on ppGlobalEnviron,
a symbol which Wind River has removed in newer versions of VxWorks. This
patch simplifies the implementation and uses a common implementation for
both VxWorks 6 and 7 kernel mode since they both support envGet.
Tested on x86_64-pc-linux-gnu, committed on trunk
gcc/ada/
* env.c (__gnat_environ): For VxWorks kernel simply return the
result of the envGet call. Do this for VxWorks 6 and 7 as they
both support the same API.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: patch.diff
Type: text/x-diff
Size: 1414 bytes
Desc: not available
URL: <https://gcc.gnu.org/pipermail/gcc-patches/attachments/20201021/affbf3fb/attachment-0001.bin>
More information about the Gcc-patches
mailing list