The following code would not work before this patch, due to the inability to take the address of a global object:
void func1() {
...
}
int main(int argc, char** argv) {
void (*pFunc)(); pFunc = &func1 pFunc(); ...
}
Differential D19368
Allow Sparc back-end to take the address of a function (or other global object) lero_chris on Apr 21 2016, 8:36 AM. Authored by
Details The following code would not work before this patch, due to the inability to take the address of a global object: void func1() { ... } int main(int argc, char** argv) { void (*pFunc)(); pFunc = &func1 pFunc(); ... }
Diff Detail
Event TimelineComment Actions This looks good for me (not sure I can formally accept it as I do not yet have SVN write access though). |