public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c/47650] New: wrong output of print_generic_decl() called from a plugin
@ 2011-02-08 19:09 joe at mcknight dot de
  2011-02-08 19:13 ` [Bug c/47650] " joe at mcknight dot de
                   ` (29 more replies)
  0 siblings, 30 replies; 31+ messages in thread
From: joe at mcknight dot de @ 2011-02-08 19:09 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47650

           Summary: wrong output of print_generic_decl() called from a
                    plugin
           Product: gcc
           Version: 4.5.2
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: joe@mcknight.de


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.


^ permalink raw reply	[flat|nested] 31+ messages in thread

end of thread, other threads:[~2011-04-28 16:08 UTC | newest]

Thread overview: 31+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-02-08 19:09 [Bug c/47650] New: wrong output of print_generic_decl() called from a plugin joe at mcknight dot de
2011-02-08 19:13 ` [Bug c/47650] " joe at mcknight dot de
2011-02-08 19:13 ` [Bug middle-end/47650] " pinskia at gcc dot gnu.org
2011-02-08 20:11 ` joe at mcknight dot de
2011-02-08 20:14 ` pinskia at gcc dot gnu.org
2011-02-08 20:22 ` joe at mcknight dot de
2011-02-09 10:56 ` rguenth at gcc dot gnu.org
2011-02-09 14:26 ` joe at mcknight dot de
2011-02-09 16:27 ` joe at mcknight dot de
2011-02-09 16:45 ` rguenther at suse dot de
2011-02-09 18:09 ` joe at mcknight dot de
2011-02-09 18:14 ` joe at mcknight dot de
2011-02-09 18:31 ` joe at mcknight dot de
2011-02-10 22:51 ` joe at mcknight dot de
2011-03-15 13:41 ` rguenth at gcc dot gnu.org
2011-03-15 13:42 ` rguenth at gcc dot gnu.org
2011-03-15 15:53 ` joe at mcknight dot de
2011-03-15 15:56 ` joe at mcknight dot de
2011-03-15 16:00 ` rguenth at gcc dot gnu.org
2011-03-15 16:03 ` rguenth at gcc dot gnu.org
2011-03-15 16:15 ` joe at mcknight dot de
2011-03-15 16:22 ` joe at mcknight dot de
2011-03-15 16:36 ` rguenther at suse dot de
2011-03-15 17:06 ` joe at mcknight dot de
2011-03-16  9:40 ` rguenther at suse dot de
2011-03-16 13:07 ` joe at mcknight dot de
2011-03-16 13:32 ` rguenther at suse dot de
2011-03-16 14:41 ` joe at mcknight dot de
2011-03-17 20:08 ` joe at mcknight dot de
2011-04-06 17:55 ` joe at mcknight dot de
2011-04-28 16:08 ` rguenth at gcc dot gnu.org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).