From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 5553 invoked by alias); 24 Nov 2014 14:57:49 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Received: (qmail 5529 invoked by uid 48); 24 Nov 2014 14:57:45 -0000 From: "eugene at hutorny dot in.ua" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/64053] New: asm labels to accept extra parameters Date: Mon, 24 Nov 2014 14:57:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c++ X-Bugzilla-Version: 4.7.2 X-Bugzilla-Keywords: X-Bugzilla-Severity: enhancement X-Bugzilla-Who: eugene at hutorny dot in.ua X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter cf_gcchost cf_gcctarget Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2014-11/txt/msg02805.txt.bz2 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.