Recent

Author Topic: obsolete switch -OG  (Read 4884 times)

mrdebug

  • Full Member
  • ***
  • Posts: 158
obsolete switch -OG
« on: November 15, 2007, 10:23:47 am »
Hi,
When compiling a program I get the warning: You are using the obsolete switch -OG.
What does it mean?

Bart

  • Hero Member
  • *****
  • Posts: 3546
    • Bart en Mariska's Webstek
RE: obsolete switch -OG
« Reply #1 on: November 15, 2007, 03:54:26 pm »
Check compiler options and remove the -OG switch?
No idea what it used to do, and if it is replaced by some other switch.

Bart

Legolas

  • Full Member
  • ***
  • Posts: 117
    • http://itaprogaming.free.fr
RE: obsolete switch -OG
« Reply #2 on: November 15, 2007, 05:54:43 pm »
-OG generated faster code, -Og smaller. Today fpc uses -Os to generate smaller code, so I suppose that omitting it, will generate faster code  :)

Leledumbo

  • Hero Member
  • *****
  • Posts: 8114
  • Programming + Glam Metal + Tae Kwon Do = Me
RE: obsolete switch -OG
« Reply #3 on: November 16, 2007, 07:09:11 am »
Type fpc with no argument for further information, some switches are obsolete. I think Lazarus' compiler option dialog should be changed due to this change.