http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50242
--- Comment #7 from congruwer at yahoo dot co.uk 2011-09-01 09:21:33 UTC ---
Answering my own question: because of the ret instruction. Duh.
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50242
--- Comment #6 from congruwer at yahoo dot co.uk 2011-09-01 09:16:18 UTC ---
Why not? In any case, without inline it also doesn't work:
test.s: Assembler messages:
test.s:628: Warning: .type pseudo-op used outside of .def/.endef ignored.
t
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=34949
congruwer at yahoo dot co.uk changed:
What|Removed |Added
CC||congruwer at yahoo dot
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50242
--- Comment #4 from congruwer at yahoo dot co.uk 2011-09-01 08:09:59 UTC ---
Doesn't work:
---(start)---
inline __attribute__((always_inline)) void foobar();
asm (".globl __6foobarv; .type __6foobarv, @function;\n"
"__
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50242
--- Comment #2 from congruwer at yahoo dot co.uk 2011-08-31 15:46:19 UTC ---
Sometimes I want to implement an entire method or function in assembler. The
main reasons are:
1) I want to thunk to another function &c. in a way that is hard to do
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50243
--- Comment #2 from congruwer at yahoo dot co.uk 2011-08-31 15:27:52 UTC ---
Not in this case. The example is set up such that the vtable is invisible, even
if it is emitted. Since no one can access it, it cannot be required. (I have
searched
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50243
Bug #: 50243
Summary: vtable for pure abstract class (interface) shouldn't
be emitted
Classification: Unclassified
Product: gcc
Version: 4.5.2
Status: UNCONFIRMED
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50242
Bug #: 50242
Summary: __attribute__((naked)) is ignored on IA32 (x86)
Classification: Unclassified
Product: gcc
Version: 4.5.2
Status: UNCONFIRMED
Severity: enhancement