Allow runtime to be built with C++ on AIX (#17672)
commita3f4def8b6951fed5c248bd1875e90a7ab748d15
authorCalvin Buckley <calvin@cmpct.info>
Sun, 24 Nov 2019 22:08:19 +0000 (24 18:08 -0400)
committerRyan Lucia <rylucia@microsoft.com>
Sun, 24 Nov 2019 22:08:19 +0000 (24 17:08 -0500)
tree60265aff20b75b66597eba7ca71494abd3333918
parent280e9d2423549d86686716f0818bcdbac9702ea1
Allow runtime to be built with C++ on AIX (#17672)

* Allow runtime to be built with C++ on AIX

Many AIX/PPC/BE specific codepaths didn't do casting properly,
since C++ is much stricter than C about pointer typing.

Also specify the C99 format macros early as possible, since
inttypes may get included before eglib gets a chance to set the
macros.

Also explicitly use -pthread, since not using it is the cause of
many libstdc++ crashes on AIX.

* Oops, should have been that define instead

* Suggested changes from Jay on style

* Remove unneeded cast
14 files changed:
configure.ac
mono/arch/ppc/ppc-codegen.h
mono/eglib/giconv.c
mono/metadata/sre-encode.c
mono/metadata/threads.c
mono/metadata/w32file-unix.c
mono/metadata/w32process-unix-default.c
mono/metadata/w32process-unix.c
mono/mini/exceptions-ppc.c
mono/mini/mini-ppc.c
mono/mini/mini-runtime.c
mono/mini/tramp-ppc.c
mono/utils/mono-context.c
mono/utils/mono-threads-aix.c