From ec239c9d5707cd854c490860c723f4803ca35b37 Mon Sep 17 00:00:00 2001 From: Martin Mares Date: Fri, 20 Jun 2008 13:24:33 +0200 Subject: [PATCH] Default switches for gcc-4.3. I currently get lots of warnings about functions not inline, I will fix them later. --- lib/autoconf.cfg | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/lib/autoconf.cfg b/lib/autoconf.cfg index b0e3c536..28f11843 100644 --- a/lib/autoconf.cfg +++ b/lib/autoconf.cfg @@ -201,14 +201,13 @@ if ($gccver == 3000) { } elsif ($gccver == 3004) { Append("CWARNS" => "-Wundef -Wredundant-decls"); Append("COPT" => "-finline-limit=2000 --param large-function-insns=5000 --param inline-unit-growth=200 --param large-function-growth=400"); -} elsif ($gccver == 4000 || $gccver == 4001) { +} elsif ($gccver >= 4000) { Append("CWARNS" => "-Wundef -Wredundant-decls -Wno-pointer-sign -Wdisabled-optimization -Wno-missing-field-initializers"); Append("CWARNS_OFF" => "-Wno-pointer-sign"); Append("COPT" => "-finline-limit=5000 --param large-function-insns=5000 --param inline-unit-growth=200 --param large-function-growth=400"); -} elsif ($gccver == 4002) { - Append("CWARNS" => "-Wundef -Wredundant-decls -Wno-pointer-sign -Wdisabled-optimization -Wno-missing-field-initializers"); - Append("CWARNS_OFF" => "-Wno-pointer-sign"); - Append("COPT" => "-finline-limit=5000 --param large-function-insns=5000 --param inline-unit-growth=200 --param large-function-growth=400 -fgnu89-inline"); + if ($gccver >= 4002) { + Append("COPT" => "-fgnu89-inline"); + } } else { Warn "Don't know anything about this GCC version, using default switches.\n"; } -- 2.39.2