From 8c19634a056da9f0737b52697621c97dcc1fb220 Mon Sep 17 00:00:00 2001 From: bangerth Date: Tue, 13 Sep 2011 02:24:17 +0000 Subject: [PATCH] Add a flag necessary for xlC. git-svn-id: https://svn.dealii.org/trunk@24315 0785d39b-7218-0410-832d-ea1e28bc413d --- deal.II/aclocal.m4 | 18 ++++++++++++++++-- 1 file changed, 16 insertions(+), 2 deletions(-) diff --git a/deal.II/aclocal.m4 b/deal.II/aclocal.m4 index dbffa04e2f..de0e5cd067 100644 --- a/deal.II/aclocal.m4 +++ b/deal.II/aclocal.m4 @@ -594,8 +594,22 @@ AC_DEFUN(DEAL_II_SET_CXX_FLAGS, dnl case "$GXX_VERSION" in ibm_xlc) - CXXFLAGSG="$CXXFLAGSG -DDEBUG -check=bounds -info=all -qrtti=all -qsuppress=1540-2907 -qsuppress=1540-2909" - CXXFLAGSO="$CXXFLAGSO -O2 -w -qansialias -qrtti=all -qsuppress=1540-2907 -qsuppress=1540-2909" + dnl Set flags for IBM's xlC compiler. As of version 11.1, it still + dnl doesn't grok all of deal.II, but it's getting closer. The + dnl -qxflag=EnableIssue214PartialOrdering flag is necessary to + dnl resolve code like this that we have in the MemoryConsumption + dnl namespace: + dnl ---------------------------------------------- + dnl template void f (T* const); + dnl template void f (const T &); + dnl + dnl void g() { + dnl int *p; + dnl f(p); + dnl } + dnl ---------------------------------------------- + CXXFLAGSG="$CXXFLAGSG -DDEBUG -check=bounds -info=all -qrtti=all -qsuppress=1540-2907 -qsuppress=1540-2909 -qxflag=EnableIssue214PartialOrdering" + CXXFLAGSO="$CXXFLAGSO -O2 -w -qansialias -qrtti=all -qsuppress=1540-2907 -qsuppress=1540-2909 -qxflag=EnableIssue214PartialOrdering" CXXFLAGSPIC="-qpic" LDFLAGSPIC="-qpic" ;; -- 2.39.5