public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug other/56314] New: Please allow per-function specification of register conventions
@ 2013-02-14  1:56 hpa at zytor dot com
  2013-02-14  2:04 ` [Bug other/56314] " pinskia at gcc dot gnu.org
                   ` (5 more replies)
  0 siblings, 6 replies; 7+ messages in thread
From: hpa at zytor dot com @ 2013-02-14  1:56 UTC (permalink / raw)
  To: gcc-bugs


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=56314

             Bug #: 56314
           Summary: Please allow per-function specification of register
                    conventions
    Classification: Unclassified
           Product: gcc
           Version: unknown
            Status: UNCONFIRMED
          Severity: enhancement
          Priority: P3
         Component: other
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: hpa@zytor.com


gcc allows register specifications (saved, clobbered, reserved) to be changed
on a per-file basis.  However, for optimization uses it would be much more
useful if they could be defined on a per-function basis using attributes, just
as calling conventions can be specified with attributes.

In the Linux kernel world we currently have several uses of functions with ad
hoc calling conventions.  We have to wrap them in assembly wrappers, and either
write them in assembly or put them in separate files with the calling
convention specified with compiler options.


^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2022-10-03 16:20 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-02-14  1:56 [Bug other/56314] New: Please allow per-function specification of register conventions hpa at zytor dot com
2013-02-14  2:04 ` [Bug other/56314] " pinskia at gcc dot gnu.org
2013-02-14  2:24 ` hpa at zytor dot com
2013-02-14 10:29 ` [Bug middle-end/56314] " rguenth at gcc dot gnu.org
2013-02-15  6:52 ` benh at kernel dot crashing.org
2013-02-15  6:56 ` pinskia at gcc dot gnu.org
2022-10-03 16:20 ` hpa at zytor dot com

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).