本文介绍了禁用g ++的返回值优化的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在命令行上需要什么标志来禁用由g ++编译器自动启用的返回值优化?

What flag(s) do I need on the command line to disable the return-value optimisation automatically enabled by the g++ compiler?

推荐答案

-fno-elide-constructors

这篇关于禁用g ++的返回值优化的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

06-15 06:21