public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/64053] New: asm labels to accept extra parameters
@ 2014-11-24 14:57 eugene at hutorny dot in.ua
2014-11-24 15:00 ` [Bug c++/64053] " eugene at hutorny dot in.ua
2024-03-17 7:17 ` pinskia at gcc dot gnu.org
0 siblings, 2 replies; 3+ messages in thread
From: eugene at hutorny dot in.ua @ 2014-11-24 14:57 UTC (permalink / raw)
To: gcc-bugs
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.
^ permalink raw reply [flat|nested] 3+ messages in thread
* [Bug c++/64053] asm labels to accept extra parameters
2014-11-24 14:57 [Bug c++/64053] New: asm labels to accept extra parameters eugene at hutorny dot in.ua
@ 2014-11-24 15:00 ` eugene at hutorny dot in.ua
2024-03-17 7:17 ` pinskia at gcc dot gnu.org
1 sibling, 0 replies; 3+ messages in thread
From: eugene at hutorny dot in.ua @ 2014-11-24 15:00 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64053
--- Comment #1 from Eugene <eugene at hutorny dot in.ua> ---
Created attachment 34098
--> https://gcc.gnu.org/bugzilla/attachment.cgi?id=34098&action=edit
code sample for illustartion
^ permalink raw reply [flat|nested] 3+ messages in thread
* [Bug c++/64053] asm labels to accept extra parameters
2014-11-24 14:57 [Bug c++/64053] New: asm labels to accept extra parameters eugene at hutorny dot in.ua
2014-11-24 15:00 ` [Bug c++/64053] " eugene at hutorny dot in.ua
@ 2024-03-17 7:17 ` pinskia at gcc dot gnu.org
1 sibling, 0 replies; 3+ messages in thread
From: pinskia at gcc dot gnu.org @ 2024-03-17 7:17 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64053
Andrew Pinski <pinskia at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Last reconfirmed| |2024-03-17
Keywords| |inline-asm
Ever confirmed|0 |1
--- Comment #2 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
I wonder if doing constexpr is better similar in the way that is proposed for
inline-asm :
https://gcc.gnu.org/pipermail/gcc-patches/2024-March/647821.html
This would be easier to support I think and would be more obvious and stuff
like fmt supports formating at compile time with constexpr even.
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2024-03-17 7:17 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-11-24 14:57 [Bug c++/64053] New: asm labels to accept extra parameters eugene at hutorny dot in.ua
2014-11-24 15:00 ` [Bug c++/64053] " eugene at hutorny dot in.ua
2024-03-17 7:17 ` pinskia at gcc dot gnu.org
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).