Ticket #652 (closed bug: fixed)
non-constant initializations in src/pmc/*.c
Reported by: | doughera | Owned by: | |
---|---|---|---|
Priority: | normal | Milestone: | |
Component: | none | Version: | 1.1.0 |
Severity: | low | Keywords: | |
Cc: | Language: | ||
Patch status: | applied | Platform: |
Description
As of r38606, the C files generated in src/pmc/ contain code like the following (this snippet comes from src/pmc/sub.c):
STRING *mfl_0 = CONST_STRING_GEN(interp, "is_equal"); STRING *mfl_1 = CONST_STRING_GEN(interp, "IJPP"); STRING *mfl_2 = CONST_STRING_GEN(interp, "Sub,PMC"); const multi_func_list _temp_multi_func_list[] = { { mfl_0, mfl_1, mfl_2, (funcptr_t) Parrot_Sub_multi_is_equal_PMC } };
Unfortunately, that's not going to work with older C89 compilers. The initializers must truly be constants.
Since this is generated code, I'm not sure just what to patch, nor whether it's worth it.
Change History
Note: See
TracTickets for help on using
tickets.