diff -Naur lazarus.orig/ide/compileroptionsdlg.pp lazarus/ide/compileroptionsdlg.pp --- lazarus.orig/ide/compileroptionsdlg.pp 2007-11-02 22:22:06 +0300 +++ lazarus/ide/compileroptionsdlg.pp 2007-12-14 14:09:11 +0300 @@ -1159,8 +1159,8 @@ grpGenerate.Caption := dlgCOGenerate; radGenNormal.Caption := dlgCONormal+' (none)'; - radGenFaster.Caption := dlgCOFast+' (-OG)'; - radGenSmaller.Caption := dlgCOSmaller+' (-Og)'; + radGenFaster.Caption := dlgCOFast+' (-O1)'; + radGenSmaller.Caption := dlgCOSmaller+' (-Os)'; grpTargetPlatform.Caption := dlgTargetPlatform; lblTargetOS.Caption := dlgTargetOS+' (-T)'; diff -Naur lazarus.orig/ide/compileroptions.pp lazarus/ide/compileroptions.pp --- lazarus.orig/ide/compileroptions.pp 2007-09-22 02:04:19 +0400 +++ lazarus/ide/compileroptions.pp 2007-12-14 14:05:52 +0300 @@ -1982,8 +1982,8 @@ { Generate G = faster g = smaller } case (Generate) of cgcNormalCode: ; - cgcFasterCode: OptimizeSwitches := OptimizeSwitches + 'G'; - cgcSmallerCode: OptimizeSwitches := OptimizeSwitches + 'g'; + cgcFasterCode: OptimizeSwitches := OptimizeSwitches + '1'; + cgcSmallerCode: OptimizeSwitches := OptimizeSwitches + 's'; end; { OptimizationLevel 1 = Level 1 2 = Level 2 3 = Level 3 }