This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: wrong output of print_generic_decl() called from a plugin


On Wed, Dec 8, 2010 at 1:52 PM, I wrote:
> This outputs "static void barfunc (int);" but the function is neither
> static nor does it expect only one int parameter...

here's another example where print_generic_decl() fails:

-----------------------
typedef void (*Handler)( int , void * );
Handler GetFunctionPointer();
-----------------------

This would output "extern void (*Handler) (int, void *)
GetFunctionPointer (void);"

Any other function I could use that is more reliable?


Thanks,
Joachim


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]