[Bug target/50242] __attribute__((naked)) is not implemented on IA32 (x86)

2011-09-01 Thread congruwer at yahoo dot co.uk
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 __6foobarv: ret; .size

[Bug c++/34949] Dead code in empty destructors.

2011-09-01 Thread congruwer at yahoo dot co.uk
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

[Bug target/50242] __attribute__((naked)) is not implemented on IA32 (x86)

2011-09-01 Thread congruwer at yahoo dot co.uk
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. test.s

[Bug target/50242] __attribute__((naked)) is not implemented on IA32 (x86)

2011-09-01 Thread congruwer at yahoo dot co.uk
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.

[Bug c++/50243] vtable for pure abstract class (interface) shouldn't be emitted

2011-08-31 Thread congruwer at yahoo dot co.uk
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

[Bug target/50242] __attribute__((naked)) is not implemented on IA32 (x86)

2011-08-31 Thread congruwer at yahoo dot co.uk
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 from

[Bug c++/50242] New: __attribute__((naked)) is ignored on IA32 (x86)

2011-08-30 Thread congruwer at yahoo dot co.uk
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

[Bug c++/50243] New: vtable for pure abstract class (interface) shouldn't be emitted

2011-08-30 Thread congruwer at yahoo dot co.uk
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