<html><head><meta http-equiv="content-type" content="text/html; charset=utf-8"></head><body dir="auto"><div>Hi Timothy,</div><div>&nbsp; &nbsp;The right thing to do is to report the bug to the FCC maintainers. &nbsp;This is legal C and useful. &nbsp;So it should not be causing problems right?<br><br>Eliot (phone)</div><div><br>On Mar 30, 2015, at 8:58 AM, gettimothy &lt;<a href="mailto:gettimothy@zoho.com">gettimothy@zoho.com</a>&gt; wrote:<br><br></div><blockquote type="cite"><div><span></span></div></blockquote><blockquote type="cite"><div><meta content="text/html;charset=UTF-8" http-equiv="Content-Type"><div style="font-size:10pt;font-family:Verdana,Arial,Helvetica,sans-serif;"><div>Just a heads up/progress report.<br></div><div><br></div><div>The "fix" of putting a&nbsp;</div><div>#define NoDbgRegParms &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; "&lt;--empty definition"</div><div>in config.h.in for autotools does NOT translate to CMake because CMake builds its own config.h based on some tests/probing in a config.cmake file.</div><div>This then creates its own config.h.in (cmake version) and then config.h</div><div><br></div><div>When it does so, it does NOT respect the "empty definition" and just leave things alone, but "helps" by placing a&nbsp;</div><div>/* #undef NoDbgRegParms */&nbsp;</div><div>in config.h</div><div><br></div><div><br></div><div>There are 3 strategies I have in mind.</div><div><br></div><div>1. Have the user hand edit config.h (unacceptable, rejected)</div><div>2. Find a CMake workaround to generate the #define NoDbgRegParms&nbsp;</div><div>3. Take this as a clue about how autotools expects things and make the logic in Cog/src/vm/cogit.h Cog/src/vm/cointerp.h etc logic so that it works with&nbsp;</div><div><br>#if !PRODUCTION &amp;&amp; defined(__GNUC__) &amp;&amp; !defined(NoDbgRegParms)<br># define NoDbgRegParms __attribute__ ((regparm (0)))<br>#endif</div><div><br></div><div>I will be focusing on approach 3 for a bit. "Maybe" its </div><div><br></div><div>a. something about a comparison between the !defines and the !PRODUCTION</div><div>b. a conflict created when autotools does its macro-expansion since the test is in multiple .h files.</div><div><br></div><div>cheers.</div><div><br></div><div>tty.</div><div><br></div><div><br></div><div><br></div><div><br></div><div><br></div><div><br></div></div></div></blockquote></body></html>