This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c/12118] New: Add function attribute that treats C code as plain asm


PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.

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

           Summary: Add function attribute that treats C code as plain asm
           Product: gcc
           Version: unknown
            Status: UNCONFIRMED
          Severity: enhancement
          Priority: P2
         Component: c
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: mkgnu at gmx dot net
                CC: gcc-bugs at gcc dot gnu dot org

This is a feature request to add a function attribute that allows implementing a
function in C and producing straight machine code for it without any assumptions
that the implementation constitutes a function. i.e There should be no "ret" or
"leave" assembly instruction at the end of such a function. the "noreturn"
attribute currently does not provide this

The need for this is best described in the thread:

http://gcc.gnu.org/ml/gcc-bugs/2003-08/msg02681.html

One should be able to write a routine in C without gcc assuming that the routine
is a function call. Such an attribute should be an improvement on the "noreturn"
attribute.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]