<div dir="ltr">As many of you no doubt know,  GCC recently released 4.8.0.  This new version introduces a new optimization level enabled by -Og with the following description (from the man page):<br><br>"Optimize debugging experience. -Og enables optimizations that do not interfere with debugging. It should be the optimization level of choice for the standard edit-compile-debug cycle, offering a reasonable level of optimization while maintaining fast compilation and a good debugging experience."<br>

<br><div><div>Of course I had to try it out.  I found that building Wine lead to GCC dieing with<br><br>  ... dlls/kernel32/console.c:1691:1: internal compiler error: Segmentation fault<br><br></div><div>I also found  <br>
<br>  ... dlls/kernel32/computername.c:701:1: internal compiler error: Segmentation fault<br><br></div><div>I eventually stumbled my way into the enclosed patch which lets GCC build Wine with -Og.<br><br></div><div>I'm not sure if this change (or something similar) makes sense for Wine.  I'm fairly certain some changes make sense for GCC (I suspect that GCC should not segfault).<br>
<br></div><div>I haven't submitted a bug for GCC because I suspect they'll want me to provide something simpler to compile than the Wine source tree.  I certainly won't be upset if someone beats me too it.  I'm not sure how much time in the near future I'll spend on it.  "Eventually" is probably the word that fits.<br>
<br></div><div>At any rate, I wanted to at least share my experiences in case anyone is interested in heading down the same path.<br></div><div><br></div><div>-- <br>Jim
</div></div></div>