This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug plugins/54959] current_pass == NULL during invocation of pass->gate within execute_ipa_summary_passes()
- From: "dmalcolm at redhat dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Wed, 17 Oct 2012 20:00:05 +0000
- Subject: [Bug plugins/54959] current_pass == NULL during invocation of pass->gate within execute_ipa_summary_passes()
- Auto-submitted: auto-generated
- References: <bug-54959-4@http.gcc.gnu.org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54959
--- Comment #2 from Dave Malcolm <dmalcolm at redhat dot com> 2012-10-17 20:00:05 UTC ---
The impl_gate is implemented in C, the gate functions in Python.
If I need multiple impl_gate functions, I somehow need to generate machine code
at runtime that curry the relevant arguments.
I guess I could use libffi to do this, perhaps, but it seems ugly and fragile.