On sexta-feira, 23 de setembro de 2016 01:52:28 PDT Konstantin Shegunov wrote:
> Hello,
> What's the rationale of having -O2 for debug builds on Linux (g++)? As the
> compiler moves the assembly around it becomes hell stepping through with
> the debugger. Is the flag passed intentionally (and why)?

The flag is not passed to the build.

Debug builds use -O0 on Linux.

Thiago Macieira - thiago.macieira (AT) intel.com
  Software Architect - Intel Open Source Technology Center

Interest mailing list

Reply via email to