]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
Add a flag necessary for xlC.
authorbangerth <bangerth@0785d39b-7218-0410-832d-ea1e28bc413d>
Tue, 13 Sep 2011 02:24:17 +0000 (02:24 +0000)
committerbangerth <bangerth@0785d39b-7218-0410-832d-ea1e28bc413d>
Tue, 13 Sep 2011 02:24:17 +0000 (02:24 +0000)
git-svn-id: https://svn.dealii.org/trunk@24315 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/aclocal.m4

index dbffa04e2f66c72f75f7640a9c6f686f52991df2..de0e5cd067eb5f0eb801569211313f22b34fc7d4 100644 (file)
@@ -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 <typename T> void f (T* const);
+         dnl template <typename T> 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"
           ;;

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.