https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64053

            Bug ID: 64053
           Summary: asm labels to accept extra parameters
           Product: gcc
           Version: 4.7.2
            Status: UNCONFIRMED
          Severity: enhancement
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: eugene at hutorny dot in.ua
              Host: Linux 2.6.32-5-686
            Target: avr

Current syntax of asm labels accepts only a string literal
int foo asm ("myfoo");


This limits label generation to pre-processing time.

If asm label would accept constant expressions as asm statement does, 
it would open possibilities for generating function labels with c++ templates
as attached example illustrates.

Reply via email to