flang icon indicating copy to clipboard operation
flang copied to clipboard

[LLVM 15][runtime] Replace or remove uses of undefined LINUX8664 macro

Open bryanpkc opened this issue 3 years ago • 0 comments

Various files under runtime/flang use the macro LINUX8664 to guard X86-only code; but this is incorrect and ineffective because LINUX8664 is never defined by any CMakeLists.txt (it is only defined when building runtime/libpgmath). Necessary uses of the macro are modified to use TARGET_X8664 and/or TARGET_LINUX_X8664, and unnecessary uses that never had any effect are simply deleted.

This patch also guards some Windows-specific code with the WIN64 macro to avoid compilation warnings.

bryanpkc avatar Sep 22 '22 02:09 bryanpkc