PGI C++: Disable automatic 'using namespace std;'
authorPhil Miller <mille121@illinois.edu>
Mon, 9 Apr 2012 23:25:50 +0000 (18:25 -0500)
committerPhil Miller <mille121@illinois.edu>
Mon, 9 Apr 2012 23:25:50 +0000 (18:25 -0500)
src/arch/common/cc-pgcc.sh
src/arch/gemini_gni-crayxe/conv-mach.sh
src/arch/mpi-crayxe/conv-mach.sh
src/arch/mpi-crayxt/conv-mach.sh
src/arch/mpi-linux-x86_64/cc-mpicxx.sh
src/arch/mpi-linux-x86_64/conv-mach.sh
src/arch/shmem-crayxe/conv-mach.sh
src/arch/shmem-crayxt/conv-mach.sh

index 327fa12441d2fca291107378b684dfc235db6138..02d8505032daf366bdb607ae3543ac441f6c8f24 100644 (file)
@@ -9,7 +9,7 @@ CMK_CPP_C="pgcc -E "
 CMK_CC="pgcc -fPIC $CMK_DEFS  -DCMK_FIND_FIRST_OF_PREDICATE=1 "
 CMK_CC_RELIABLE="gcc "
 #CMK_CXX="pgCC --instantiate=used "
 CMK_CC="pgcc -fPIC $CMK_DEFS  -DCMK_FIND_FIRST_OF_PREDICATE=1 "
 CMK_CC_RELIABLE="gcc "
 #CMK_CXX="pgCC --instantiate=used "
-CMK_CXX="pgCC -fPIC $CMK_DEFS  -DCMK_FIND_FIRST_OF_PREDICATE=1 "
+CMK_CXX="pgCC -fPIC $CMK_DEFS  -DCMK_FIND_FIRST_OF_PREDICATE=1 --no_using_std "
 CMK_CXXPP="pgCC -E  -DCMK_FIND_FIRST_OF_PREDICATE=1 "
 CMK_LD="$CMK_CC "
 CMK_LDXX="$CMK_CXX "
 CMK_CXXPP="pgCC -E  -DCMK_FIND_FIRST_OF_PREDICATE=1 "
 CMK_LD="$CMK_CC "
 CMK_LDXX="$CMK_CXX "
@@ -18,7 +18,7 @@ CMK_LDXX="$CMK_CXX "
 # pgcc can not handle QT right for generic64, so always use gcc
 CMK_SEQ_CC="gcc -fPIC "
 CMK_SEQ_LD="$CMK_SEQ_CC "
 # pgcc can not handle QT right for generic64, so always use gcc
 CMK_SEQ_CC="gcc -fPIC "
 CMK_SEQ_LD="$CMK_SEQ_CC "
-CMK_SEQ_CXX="pgCC -fPIC "
+CMK_SEQ_CXX="pgCC -fPIC --no_using_std "
 CMK_SEQ_LDXX="$CMK_SEQ_CXX"
 CMK_SEQ_LIBS=""
 
 CMK_SEQ_LDXX="$CMK_SEQ_CXX"
 CMK_SEQ_LIBS=""
 
index a19cdf7fc9ff496aec0fe12b668631b8d61907ce..43c3fc1627fd716a4221336ed52c0ccd540da3df 100644 (file)
@@ -21,10 +21,10 @@ CMK_QT="generic64"
 if test -n "$PGCC"
 then
 CMK_CC="$CMK_CC -DCMK_FIND_FIRST_OF_PREDICATE=1 "
 if test -n "$PGCC"
 then
 CMK_CC="$CMK_CC -DCMK_FIND_FIRST_OF_PREDICATE=1 "
-CMK_CXX="$CMK_CXX -DCMK_FIND_FIRST_OF_PREDICATE=1 "
+CMK_CXX="$CMK_CXX -DCMK_FIND_FIRST_OF_PREDICATE=1 --no_using_std "
 # gcc is needed for building QT
 CMK_SEQ_CC="gcc "
 # gcc is needed for building QT
 CMK_SEQ_CC="gcc "
-CMK_SEQ_CXX="pgCC "
+CMK_SEQ_CXX="pgCC  --no_using_std "
 elif test -n "$ICPC"
 then
 CMK_SEQ_CC="icc -fPIC "
 elif test -n "$ICPC"
 then
 CMK_SEQ_CC="icc -fPIC "
index 99f905f8d7319f066c974670721de541fb62fa14..d42389a77ac0ee8ff6692e8ce0129cb275872e05 100644 (file)
@@ -25,10 +25,10 @@ CMK_LD_LIBRARY_PATH="-Wl,-rpath,$CHARMLIBSO/"
 if test -n "$PGCC"
 then
 CMK_CC="$CMK_CC -DCMK_FIND_FIRST_OF_PREDICATE=1 "
 if test -n "$PGCC"
 then
 CMK_CC="$CMK_CC -DCMK_FIND_FIRST_OF_PREDICATE=1 "
-CMK_CXX="$CMK_CXX -DCMK_FIND_FIRST_OF_PREDICATE=1 "
+CMK_CXX="$CMK_CXX -DCMK_FIND_FIRST_OF_PREDICATE=1 --no_using_std "
 # gcc is needed for building QT
 CMK_SEQ_CC="gcc -fPIC "
 # gcc is needed for building QT
 CMK_SEQ_CC="gcc -fPIC "
-CMK_SEQ_CXX="pgCC -fPIC "
+CMK_SEQ_CXX="pgCC -fPIC --no_using_std "
 elif test -n "$ICPC"
 then
 CMK_SEQ_CC="icc -fPIC "
 elif test -n "$ICPC"
 then
 CMK_SEQ_CC="icc -fPIC "
index e4739e8abaa0464125cea490bb2eee475324d2bd..6210cd717288e5c758c8cffe4ed5694cc271aa9e 100644 (file)
@@ -24,10 +24,10 @@ CMK_LD_LIBRARY_PATH="-Wl,-rpath,$CHARMLIBSO/"
 if test -n "$PGCC"
 then
 CMK_CC="$CMK_CC -DCMK_FIND_FIRST_OF_PREDICATE=1 "
 if test -n "$PGCC"
 then
 CMK_CC="$CMK_CC -DCMK_FIND_FIRST_OF_PREDICATE=1 "
-CMK_CXX="$CMK_CXX -DCMK_FIND_FIRST_OF_PREDICATE=1 "
+CMK_CXX="$CMK_CXX -DCMK_FIND_FIRST_OF_PREDICATE=1 --no_using_std "
 # gcc is needed for building QT
 CMK_SEQ_CC="gcc -fPIC "
 # gcc is needed for building QT
 CMK_SEQ_CC="gcc -fPIC "
-CMK_SEQ_CXX="pgCC -fPIC "
+CMK_SEQ_CXX="pgCC -fPIC --no_using_std "
 elif test -n "$ICPC"
 then
 CMK_SEQ_CC="icc -fPIC "
 elif test -n "$ICPC"
 then
 CMK_SEQ_CC="icc -fPIC "
index 277cbd39d12859a6ed1f0e8563480f289eba68e9..5fc6902594909297320f02c8e9da251b8952e74f 100644 (file)
@@ -18,7 +18,7 @@ CMK_REAL_COMPILER=`$MPICXX -show 2>/dev/null | cut -d' ' -f1 `
 case "$CMK_REAL_COMPILER" in
 g++)   CMK_AMD64="-m64 -fPIC" ;;
 icpc)  CMK_AMD64="-m64";;
 case "$CMK_REAL_COMPILER" in
 g++)   CMK_AMD64="-m64 -fPIC" ;;
 icpc)  CMK_AMD64="-m64";;
-pgCC)  CMK_AMD64="-DCMK_FIND_FIRST_OF_PREDICATE=1 " ;;
+pgCC)  CMK_AMD64="-DCMK_FIND_FIRST_OF_PREDICATE=1 --no_using_std " ;;
 FCC)   CMK_AMD64="-Kfast -DCMK_FIND_FIRST_OF_PREDICATE=1 --variadic_macros";;
 esac
 CMK_REAL_C_COMPILER=`$MPICC -show 2>/dev/null | cut -d' ' -f1 `
 FCC)   CMK_AMD64="-Kfast -DCMK_FIND_FIRST_OF_PREDICATE=1 --variadic_macros";;
 esac
 CMK_REAL_C_COMPILER=`$MPICC -show 2>/dev/null | cut -d' ' -f1 `
index 1b4ea1914c61632f373a77164a5339ae6b19ab92..c0ec8fd6f21abd4b05028d2c9b24c885e50cf129 100644 (file)
@@ -22,7 +22,7 @@ fi
 CMK_REAL_COMPILER=`$MPICXX -show 2>/dev/null | cut -d' ' -f1 `
 case "$CMK_REAL_COMPILER" in
 g++) CMK_AMD64="-m64 -fPIC" ;;
 CMK_REAL_COMPILER=`$MPICXX -show 2>/dev/null | cut -d' ' -f1 `
 case "$CMK_REAL_COMPILER" in
 g++) CMK_AMD64="-m64 -fPIC" ;;
-pgCC)  CMK_AMD64="-fPIC -DCMK_FIND_FIRST_OF_PREDICATE=1" ;;
+pgCC)  CMK_AMD64="-fPIC -DCMK_FIND_FIRST_OF_PREDICATE=1 --no_using_std " ;;
 charmc)  echo "Error> charmc can not call AMPI's mpicxx/mpiCC wrapper! Please fix your PATH."; exit 1 ;;
 esac
 
 charmc)  echo "Error> charmc can not call AMPI's mpicxx/mpiCC wrapper! Please fix your PATH."; exit 1 ;;
 esac
 
index 7a9d7e16828b0401590613b99ff26754960759d5..b8d7e414e6573822a33f20af0f5726f2ea3e64ce 100644 (file)
@@ -22,9 +22,11 @@ CMK_LD_LIBRARY_PATH="-Wl,-rpath,$CHARMLIBSO/"
 # compiler for compiling sequential programs
 if test -n "$PGCC"
 then
 # compiler for compiling sequential programs
 if test -n "$PGCC"
 then
+CMK_CC="$CMK_CC -DCMK_FIND_FIRST_OF_PREDICATE=1 "
+CMK_CXX="$CMK_CXX -DCMK_FIND_FIRST_OF_PREDICATE=1 --no_using_std "
 # gcc is needed for building QT
 CMK_SEQ_CC="gcc -fPIC"
 # gcc is needed for building QT
 CMK_SEQ_CC="gcc -fPIC"
-CMK_SEQ_CXX="pgCC -fPIC "
+CMK_SEQ_CXX="pgCC -fPIC --no_using_std "
 else
 CMK_SEQ_CC="gcc -fPIC"
 CMK_SEQ_CXX="g++ -fPIC "
 else
 CMK_SEQ_CC="gcc -fPIC"
 CMK_SEQ_CXX="g++ -fPIC "
index d59a29f65d239e24edb15cf032e99fde6d0b40f4..a4d953d76656389bc872b6ec7b411312f599dcc1 100644 (file)
@@ -19,6 +19,8 @@ CMK_LD_LIBRARY_PATH="-Wl,-rpath,$CHARMLIBSO/"
 # compiler for compiling sequential programs
 if test -n "$PGCC"
 then
 # compiler for compiling sequential programs
 if test -n "$PGCC"
 then
+CMK_CC="$CMK_CC -DCMK_FIND_FIRST_OF_PREDICATE=1 "
+CMK_CXX="$CMK_CXX -DCMK_FIND_FIRST_OF_PREDICATE=1 --no_using_std "
 # gcc is needed for building QT
 CMK_SEQ_CC="gcc -fPIC"
 CMK_SEQ_CXX="pgCC -fPIC "
 # gcc is needed for building QT
 CMK_SEQ_CC="gcc -fPIC"
 CMK_SEQ_CXX="pgCC -fPIC "