Skip to content

Commit

Permalink
fix for #6395
Browse files Browse the repository at this point in the history
  • Loading branch information
adrpo committed Feb 25, 2021
1 parent e33dc01 commit 6d8ee8c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
5 changes: 2 additions & 3 deletions OMCompiler/Compiler/runtime/omc_config.h
Expand Up @@ -90,7 +90,6 @@
/* adrpo: add -loleaut32 as is used by ExternalMedia */
#define DEFAULT_LDFLAGS "-fopenmp -Wl,-Bstatic -lregex -ltre -lintl -liconv -lexpat -lomcgc -lpthread -loleaut32 -limagehlp -lhdf5 -lz -lszip -Wl,-Bdynamic"


#define CONFIG_WITH_OPENMP 1

#define CONFIG_DEFAULT_OPENMODELICAHOME NULL
Expand All @@ -105,9 +104,9 @@
* Visual Studio then use the SSE instructions,
* not the normal i387 FPU
*/
#define DEFAULT_CFLAGS "-falign-functions -mstackrealign -msse2 -mfpmath=sse ${MODELICAUSERCFLAGS}"
#define DEFAULT_CFLAGS "-Wno-parentheses-equality -falign-functions -mstackrealign -msse2 -mfpmath=sse ${MODELICAUSERCFLAGS}"
#else
#define DEFAULT_CFLAGS "-falign-functions ${MODELICAUSERCFLAGS}"
#define DEFAULT_CFLAGS "-Wno-parentheses-equality -falign-functions ${MODELICAUSERCFLAGS}"
#endif

/* for windows/mingw we don't need -fPIC for x86_64 target, also clang doesn't support it, gcc ignores it */
Expand Down
2 changes: 1 addition & 1 deletion OMCompiler/configure.ac
Expand Up @@ -462,7 +462,7 @@ if test -z "$RUNTIMECFLAGS"; then
CFLAGS="$FPIC"
AC_MSG_CHECKING([runtime compiler CFLAGS])
RUNTIMECFLAGS="$FPIC"
for flag in -falign-functions -mfpmath=sse -fno-dollars-in-identifiers; do
for flag in -falign-functions -mfpmath=sse -fno-dollars-in-identifiers -Wno-parentheses-equality; do
CFLAGS="$FPIC $flag -Werror"
AC_TRY_LINK([], [return 0;], [RUNTIMECFLAGS="$RUNTIMECFLAGS $flag"],[])
done
Expand Down

0 comments on commit 6d8ee8c

Please sign in to comment.