diff --git a/openmp/runtime/src/z_Linux_asm.S b/openmp/runtime/src/z_Linux_asm.S --- a/openmp/runtime/src/z_Linux_asm.S +++ b/openmp/runtime/src/z_Linux_asm.S @@ -117,9 +117,6 @@ .macro ALIGN .align $0 .endmacro -.macro COMMON name, size, align_power - .comm \name, \size -.endm .macro DEBUG_INFO /* Not sure what .size does in icc, not sure if we need to do something @@ -140,9 +137,6 @@ .macro ALIGN size .align 1<<(\size) .endm -.macro COMMON name, size, align_power - .comm \name, \size, \align_power -.endm .macro DEBUG_INFO proc ALIGN 2 @@ -161,9 +155,6 @@ .macro ALIGN size .align 1<<(\size) .endm -.macro COMMON name, size, align_power - .comm \name, \size, (1<<(\align_power)) -.endm .macro DEBUG_INFO proc .cfi_endproc @@ -183,6 +174,20 @@ #endif // (KMP_OS_LINUX || KMP_OS_DARWIN || KMP_OS_WINDOWS) && KMP_ARCH_AARCH64 +#if KMP_OS_DARWIN +.macro COMMON name, size, align_power + .comm \name, \size +.endm +#elif KMP_OS_WINDOWS +.macro COMMON name, size, align_power + .comm \name, \size, \align_power +.endm +#else // KMP_OS_DARWIN || KMP_OS_WINDOWS +.macro COMMON name, size, align_power + .comm \name, \size, (1<<(\align_power)) +.endm +#endif // (KMP_OS_DARWIN || KMP_OS_WINDOWS || (else)) + // ----------------------------------------------------------------------- // data // -----------------------------------------------------------------------