Predefine __ppc and __ppc__ for VxWorks 7
commit17e8da49bfe6a91d13d30888cb9cea0ee255b945
authorOlivier Hainque <hainque@adacore.com>
Wed, 28 Oct 2020 18:04:32 +0000 (28 18:04 +0000)
committerOlivier Hainque <hainque@adacore.com>
Fri, 30 Oct 2020 08:25:26 +0000 (30 08:25 +0000)
tree4f97393ed07e54adbc016df0b7618be99c5cde7d
parent9a835ba4c00bc5f183a26a5335f14a2a428a2b78
Predefine __ppc and __ppc__ for VxWorks 7

Unfortunately, some VxWorks 7r2 system headers rely on a
couple more variations of the predefined macros expected
to characterize a "powerpc" target that we discussed recently.

setjmp.h, for example, relies on __ppc and the absence of
a definition results in "gcc" dejagnu test failures from all
the tests #including that header, which stumble on:

  #error "_JBLEN not set!"

The other case is __ppc__ expected by yvals.h, key to libstdc++.

This change adjusts the VxWorks 7 section of our configuration
to honor those expectations.

2020-10-29  Olivier Hainque  <hainque@adacore.com>

gcc/
* config/rs6000/vxworks.h (TARGET_OS_CPP_BUILTINS): Also
builtin_define __ppc and __ppc__ for VxWorks 7.
gcc/config/rs6000/vxworks.h