[Bug c/68637] Array of function pointers with attribute leads to wrong code

2016-01-11 Thread joseph at codesourcery dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68637 --- Comment #5 from joseph at codesourcery dot com --- Indeed, the parse appears to be correct (although there are various existing cases where an attribute gets automatically moved to apply to a type rather than to the original declaration to

[Bug c/68637] Array of function pointers with attribute leads to wrong code

2016-01-11 Thread bernds at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68637 Bernd Schmidt changed: What|Removed |Added CC||bernds at gcc dot gnu.org,

[Bug c/68637] Array of function pointers with attribute leads to wrong code

2015-12-02 Thread hjl.tools at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68637 --- Comment #3 from H.J. Lu --- Run-time test: [hjl@gnu-6 pr68637]$ cat x.i extern void (*bar[]) (int, int) __attribute__ ((regparm (2))); void foo (void) { bar[0] (1, 2); } [hjl@gnu-6 pr68637]$ cat main.i static void __attribute__