public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
* builtin_define _VX_TOOL and _VX_TOOL_FAMILY for VxWorks
@ 2017-06-26 15:11 Olivier Hainque
  0 siblings, 0 replies; only message in thread
From: Olivier Hainque @ 2017-06-26 15:11 UTC (permalink / raw)
  To: GCC Patches
  Cc: Olivier Hainque, Jerome Lambourg, Douglas B Rupp, Nathan Sidwell

[-- Attachment #1: Type: text/plain, Size: 627 bytes --]

Hello,

Defining at least one of the two is needed on VxWorks 7 and helpful
in some cases on VxWorks 6.

We have been using this in house for all our ports for a while, and I verified
that it allows a toolchain + libgcc build for x86_64-vxworks7 to finish with
mainline, in association with further patches to come for the general support
of vxworks 7 and the x86_64 configuration in particular.

Committing to mainline.

2017-06-26  Jerome Lambourg  <lambourg@adacore.com>

	* config/vxworks.h (VXWORKS_OS_CPP_BUILTINS): builtin_define
	_VX_TOOL_FAMILY and _VX_TOOL to gnu. 

With Kind Regards,

Olivier


[-- Attachment #2: 0001-improve-automatic-defines-on-VxWorks.patch --]
[-- Type: application/octet-stream, Size: 382 bytes --]

--- a/gcc/config/vxworks.h
+++ b/gcc/config/vxworks.h
@@ -131,6 +131,8 @@ extern void vxworks_asm_out_destructor (rtx symbol, int priority);
 	builtin_define ("__RTP__");					\
       else								\
 	builtin_define ("_WRS_KERNEL");					\
+      builtin_define ("_VX_TOOL_FAMILY=gnu");				\
+      builtin_define ("_VX_TOOL=gnu");					\
     }									\
   while (0)
 
-- 
1.7.10.4


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2017-06-26 15:11 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-06-26 15:11 builtin_define _VX_TOOL and _VX_TOOL_FAMILY for VxWorks Olivier Hainque

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).