Found a solution myself using __puma preprocessor directive.<br><br><div class="gmail_quote">On Fri, Apr 15, 2011 at 3:58 PM, Guilherme . <span dir="ltr"><<a href="mailto:guibufolo@gmail.com">guibufolo@gmail.com</a>></span> wrote:<br>

<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">Hi!<br><br>I created the bug report. Is there anything i can do to supress this bug?<br><br>

Regards,<br><font color="#888888">Guilherme</font><div><div></div><div class="h5"><br><br><div class="gmail_quote">On Fri, Apr 15, 2011 at 3:52 PM, Olaf Spinczyk <span dir="ltr"><<a href="mailto:os@aspectc.org" target="_blank">os@aspectc.org</a>></span> wrote:<br>


<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">


  

<div text="#000000" bgcolor="#ffffff">
Hi!<br>
<br>
You found a bug. The following code does not compile with ag++ while it
works with g++:<br>
<br>
class c {<br>
  static int foo __asm__("foo");<br>
};<br>
<br>
These "asm labels" are a gnu-compiler specific extension. They are
implemented by the ac++ parser for global and local variables, but the
case of static class members is missing. It probably happened, because
the gcc/g++ documentation does not mention asm labels for static class
members.<br>
<br>
We'll fix it if you write a bug report at <a href="http://www.aspectc.org/bugzilla" target="_blank">www.aspectc.org/bugzilla</a>. ;-)<br>
<br>
- Olaf<div><div></div><div><br>
<br>
<br>
On 04/15/2011 02:58 PM, Guilherme . wrote:
</div></div><blockquote type="cite"><div><div></div><div><br>
Hi!<br>
  <br>
I'm getting this error but i can't figure out why. One of the macros
used in the ecos source expands ultimately to<br>
  <br>
volatile variable_type variable __asm__("label_in_asm_code");<br>
  <br>
but ac++ seems to be having problems with it. Other defines seem to
expand properly.<br>
  <br>
Here is the occurence in the code:<br>
  <br>
First file using using a define that expands into __asm__:<br style="font-family: courier new,monospace;">
  <br>
256 class Cyg_Scheduler_SchedLock<br>
257 {<br>
258     static volatile cyg_ucount32 sched_lock         // lock counter<br>
259                     CYGBLD_ATTRIB_ASM_ALIAS(
cyg_scheduler_sched_lock )<br>
260                     CYGBLD_ANNOTATE_VARIABLE_SCHED<br>
261                     ;<br>
  <br>
File with the definitions of the defines:<br>
  <br>
  <span style="font-family: courier new,monospace;">375 #ifndef
CYG_LABEL_DEFN</span><br style="font-family: courier new,monospace;">
  <span style="font-family: courier new,monospace;">376 </span><br style="font-family: courier new,monospace;">
  <span style="font-family: courier new,monospace;">377 #define
CYG_LABEL_DEFN(_label) _label</span><br style="font-family: courier new,monospace;">
  <span style="font-family: courier new,monospace;">378 <br>
  </span><span style="font-family: courier new,monospace;">379 #endif<br>
  </span><span style="font-family: courier new,monospace;">...
  </span><span style="font-family: courier new,monospace;"></span><br>
  <span style="font-family: courier new,monospace;"></span><span style="font-family: courier new,monospace;">411 # if
!defined(CYGBLD_ATTRIB_ASM_ALIAS)</span><br style="font-family: courier new,monospace;">
  <span style="font-family: courier new,monospace;">412 #  define
__Str(x) #x</span><br style="font-family: courier new,monospace;">
  <span style="font-family: courier new,monospace;">413 #  define
__Xstr(x) __Str(x)</span><br style="font-family: courier new,monospace;">
  <span style="font-family: courier new,monospace;">414 #  define
CYGBLD_ATTRIB_ASM_ALIAS(__symbol__) \</span><br style="font-family: courier new,monospace;">
  <span style="font-family: courier new,monospace;">415            
 __asm__ ( __Xstr( CYG_LABEL_DEFN( __symbol__ ) ) )</span><br style="font-family: courier new,monospace;">
  <span style="font-family: courier new,monospace;">416 # endif</span><br style="font-family: courier new,monospace;">
  <span style="font-family: courier new,monospace;">...<br>
519 #ifndef CYGBLD_ANNOTATE_VARIABLE_SCHED<br>
520 #define CYGBLD_ANNOTATE_VARIABLE_SCHED<br>
521 #endif<br>
  </span><span style="font-family: courier new,monospace;"></span><br>
Is there anything i can do to further help in the anaylisis?<br>
  <br>
Cheers,<br>
Guilherme<span style="font-family: courier new,monospace;"></span><br>
  </div></div><pre><fieldset></fieldset>
_______________________________________________
aspectc-user mailing list
<a href="mailto:aspectc-user@aspectc.org" target="_blank">aspectc-user@aspectc.org</a>
<a href="http://www.aspectc.org/mailman/listinfo/aspectc-user" target="_blank">http://www.aspectc.org/mailman/listinfo/aspectc-user</a>
  </pre>
</blockquote>
<br>
</div>

<br>_______________________________________________<br>
aspectc-user mailing list<br>
<a href="mailto:aspectc-user@aspectc.org" target="_blank">aspectc-user@aspectc.org</a><br>
<a href="http://www.aspectc.org/mailman/listinfo/aspectc-user" target="_blank">http://www.aspectc.org/mailman/listinfo/aspectc-user</a><br>
<br></blockquote></div><br>
</div></div></blockquote></div><br>