This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
wrong output of print_generic_decl() called from a plugin
- From: Joachim Wieland <joe at mcknight dot de>
- To: gcc at gcc dot gnu dot org
- Date: Wed, 8 Dec 2010 13:52:49 -0500
- Subject: wrong output of print_generic_decl() called from a plugin
While testing how to parse C and C++ code for function prototypes from a plugin
(see http://gcc.gnu.org/ml/gcc/2010-12/msg00179.html)
I noticed that print_generic_decl() seems to output wrong data.
Consider the following function definition:
------------------
void barfunc (int foo, int abc, ... ) {
}
------------------
This outputs "static void barfunc (int);" but the function is neither
static nor does it expect only one int parameter...
Am I doing something wrong? I am calling "print_generic_decl(file,
decl, 0);" from the PLUGIN_PRE_GENERICIZE hook and this is gcc version
4.5.1 (GCC) on Solaris.
Thanks,
Joachim