[Bug c/119185] New: Feature: quasi object programming by retrieving base object of indirect C calls

2025-03-10 Thread uros at isotel dot org via Gcc-bugs
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 Sever

[Bug c/119185] Feature: quasi object programming by retrieving base object of indirect C calls

2025-03-10 Thread uros at isotel dot org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119185 --- Comment #7 from Uroš Platiše --- (In reply to Andrew Pinski from comment #1) > Do you want an attribute that gets added to a field of a struct which > contains the function ptr and that you do a->b(...) and that turns into > a->b(a, ...) au

[Bug c/119185] Feature: quasi object programming by retrieving base object of indirect C calls

2025-03-10 Thread uros at isotel dot org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119185 --- Comment #5 from Uroš Platiše --- If it is called directly it could hold NULL, but typically hardware abstraction device drivers are never called directly. And now you typically have macros i.e. one of the drivers "work-around" for this: #de