<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"><html><head><meta content="text/html;charset=UTF-8" http-equiv="Content-Type"></head><body ><div style='font-size:10pt;font-family:Verdana,Arial,Helvetica,sans-serif;'><div>Hi all.</div><div><br></div><div><br></div><div>I implemented a simple test case to test my theory that my platform does not support the regparms(0) function attribute and my theory is bunk. bleah.</div><div><br></div><div>I modified this autotools tutorial's source files at&nbsp;</div><div><br></div><div><a href="http://www.gnu.org/software/automake/manual/html_node/Creating-amhello.html" target="_blank">http://www.gnu.org/software/automake/manual/html_node/Creating-amhello.html</a><br></div><div><br></div><div>to mimic the __attribute__((regparms(0))) behavior in cog.</div><div><br></div><div>I could not recreate the error under any compination of PRODUCTION and #if #else conditions.</div><div>I am at a loss at the moment (and sick with a cold) so I will have to revisit this later.</div><div>CMakeVMMakerSqueak dev is blocked by this issue.</div><div><br></div><div><br></div><div>I added a test.h file to the src directory that looks like this:</div><div><br></div><div><br></div><div><br><blockquote style="border-top-color: rgb(204, 204, 204); border-left-color: rgb(204, 204, 204); border-right-color: rgb(204, 204, 204); border-bottom-color: rgb(204, 204, 204); border-top-width: 1px; border-left-width: 1px; border-right-width: 1px; border-bottom-width: 1px; border-top-style: solid; border-left-style: solid; border-right-style: solid; border-bottom-style: solid; padding-top: 7px; padding-right: 7px; padding-bottom: 7px; padding-left: 7px; background-color: rgb(245, 245, 245);"><div>&nbsp;bash-4.2$ cat test.h <br>#undef NoDbgRegParms<br>#define PRODUCTION 1<br>#if !PRODUCTION &amp;&amp; defined(__GNUC__) &amp;&amp; !defined(NoDbgRegParms)<br># define NoDbgRegParms __attribute__ ((regparm(0)))<br>#else<br># define NoDbgRegParms __attribute__ ((deprecated))<br>#endif<br><br>int plus (int a, int b) NoDbgRegParms;</div></blockquote><br>and modified the main.c .<br><blockquote style="border-top-color: rgb(204, 204, 204); border-left-color: rgb(204, 204, 204); border-right-color: rgb(204, 204, 204); border-bottom-color: rgb(204, 204, 204); border-top-width: 1px; border-left-width: 1px; border-right-width: 1px; border-bottom-width: 1px; border-top-style: solid; border-left-style: solid; border-right-style: solid; border-bottom-style: solid; padding-top: 7px; padding-right: 7px; padding-bottom: 7px; padding-left: 7px; background-color: rgb(245, 245, 245);"><div>bash-4.2$ cat src/main.c<br>#include &lt;config.h&gt; <br>#include &lt;stdio.h&gt;<br>#include "test.h"<br><br>int main(void){<br>  int p;<br><br>  puts("Hello World!");<br>  puts ("This is " PACKAGE_STRING ".");<br><br>  p=plus(3,3);<br><br>  printf("%d\n",p);<br>  return 0;<br>}<br><br>int plus (int a, int b) {<br> return a + b;<br>}<br><br><blockquote style="border-top-color: rgb(204, 204, 204); border-left-color: rgb(204, 204, 204); border-right-color: rgb(204, 204, 204); border-bottom-color: rgb(204, 204, 204); border-top-width: 1px; border-left-width: 1px; border-right-width: 1px; border-bottom-width: 1px; border-top-style: solid; border-left-style: solid; border-right-style: solid; border-bottom-style: solid; padding-top: 7px; padding-right: 7px; padding-bottom: 7px; padding-left: 7px; background-color: rgb(245, 245, 245);"><div>&nbsp;</div></blockquote><br><br></div></blockquote></div></div></body></html>