build: add -Mdse to PGI optimisation flags
authorMans Rullgard <mans@mansr.com>
Fri, 5 Oct 2012 00:30:28 +0000 (01:30 +0100)
committerMans Rullgard <mans@mansr.com>
Mon, 8 Oct 2012 21:30:41 +0000 (22:30 +0100)
Enable dead store elimination.  The last few releases work no worse
with this flag than without.  Older versions failed to build some
source files when using this flag.

Signed-off-by: Mans Rullgard <mans@mansr.com>
configure

index 34680d4..d4fcd1f 100755 (executable)
--- a/configure
+++ b/configure
@@ -2329,7 +2329,7 @@ probe_cc(){
     elif $_cc -V 2>&1 | grep -q Portland; then
         _type=pgi
         _ident="PGI $($_cc -V 2>&1 | awk '/^pgcc/ { print $2; exit }')"
-        opt_common='-alias=ansi -Mlre -Mpre'
+        opt_common='-alias=ansi -Mdse -Mlre -Mpre'
         _cflags_speed="-O3 -Mautoinline -Munroll=c:4 $opt_common"
         _cflags_size="-O2 -Munroll=c:1 $opt_common"
         _cflags_noopt="-O1"