[Bug c++/64053] New: asm labels to accept extra parameters
eugene at hutorny dot in.ua
gcc-bugzilla@gcc.gnu.org
Mon Nov 24 14:57:00 GMT 2014
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.
More information about the Gcc-bugs
mailing list