move cpu specific settings for VxWorks to cpu specific config file

Olivier Hainque hainque@adacore.com
Tue Jul 4 08:38:00 GMT 2017


Hello,

This fixes an inaccuracy introduced in the recent series
of patches preparing support for 64bit VxWorks configurations
together with VxWorks 7.

Alternative definitions for SIZE_TYPE, PTRDIFF_TYPE and
RTP library options were provided through a common VxWorks
configuration file, using conditional macros typically
provided in cpu specific config files, e.g. TARGET_LP64
taken from the x86 family of targets, which isn't quite
correct.

This was noticed by way of a build failure of the arm-wrs-vxworks
port, reported by Jeff (thanks !).

This change lets the arm-wrs-vxworks build get past the original
failure and I verified that the x86_64-vxworks7 port remains functional
afterwards. Committing.

The ARM build hits another failure now, which I think is unrelated to
the recent vxworks specific series of changes, but related to the large
ARM port specific cleanups currently underway.

Olivier


2017-07-04  Olivier Hainque  <hainque@adacore.com>

	* config/vxworks.h (PTRDIFF_TYPE, SIZE_TYPE): Restore
	unconditional basic definitions.
	(VXWORKS_LIBS_RTP): Likewise, prefixed by VXWORKS_SYSCALL_LIBS_RTP,
	empty by default.
	* config/i386/vxworks.h (PTRDIFF_TYPE, SIZE_TYPE): Redefine,
	accounting for 64bit ABIs using cpu specific macros available for
	this purpose.
	(VXWORKS_SYSCALL_LIBS_RTP): Likewise.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: vx-cpu64.diff
Type: application/octet-stream
Size: 2023 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20170704/0e3f7fc0/attachment.obj>


More information about the Gcc-patches mailing list