Fix pgc compilation with --disable-optimizations.
authorCarl Eugen Hoyos <cehoyos@ag.or.at>
Thu, 18 Apr 2013 00:20:04 +0000 (02:20 +0200)
committerCarl Eugen Hoyos <cehoyos@ag.or.at>
Thu, 18 Apr 2013 00:20:04 +0000 (02:20 +0200)
-O1 disables dead code elimination on pgc, use -O instead.

configure

index f146f7e..2aff8e2 100755 (executable)
--- a/configure
+++ b/configure
@@ -2806,7 +2806,7 @@ probe_cc(){
         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"
+        _cflags_noopt="-O"
         _flags_filter=pgi_flags
     elif $_cc 2>&1 | grep -q Microsoft; then
         _type=msvc