https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119185
Bug ID: 119185 Summary: Feature: quasi object programming by retrieving base object of indirect C calls Product: gcc Version: unknown Status: UNCONFIRMED Severity: normal Priority: P3 Component: c Assignee: unassigned at gcc dot gnu.org Reporter: uros at isotel dot org Target Milestone: --- I would like to propose a simple feature for gcc to retrieve base object of indirect calls: object->function( ... ) which function() could retrieve the object, as its value should have already been loaded in one of the regs, i.e. as: object = (object_t *)__gcc_object_ref__ That would make code nicer in a quasi object oriented programming of device drivers even for tiny kernels, which calls are at the moment typically: object->function(object, ...)