------- Comment #3 from tkoenig at gcc dot gnu dot org 2006-05-24 22:18 ------- The bug is with
Path: . URL: svn+ssh://[EMAIL PROTECTED]/svn/gcc/trunk Repository UUID: 138bc75d-0d04-0410-961f-82ee72b054a4 Revision: 114050 Node Kind: directory Schedule: normal Last Changed Author: jsm28 Last Changed Rev: 113935 Last Changed Date: 2006-05-20 19:51:30 +0200 (Sat, 20 May 2006) Properties Last Updated: 2006-05-20 21:30:42 +0200 (Sat, 20 May 2006) The call to add_referenced_var in tree-ssa-loop-manip.c appears to have been introduced by revision 114018, by Andrew MacLeod. In tree-dfa.c, I see a static inline function of this name. There are several other uses, without prototypes or function definitions: $ grep add_referenced_var *.[ch] tree-complex.c: add_referenced_var (r); tree-dfa.c:static void add_referenced_var (tree, struct walk_state *); tree-dfa.c: add_referenced_var (*tp, walk_state); tree-dfa.c:add_referenced_var (tree var, struct walk_state *walk_state) tree-dfa.c: add_referenced_var, but is used by passes that need to add new temps to tree-dfa.c: add_referenced_var (var, NULL); tree-ssa-alias.c: add_referenced_var in the above loop will take care of tree-ssa-loop-im.c: add_referenced_var (var); tree-ssa-loop-manip.c: add_referenced_var (var); tree-ssa-loop-manip.c: add_referenced_var (var); tree-ssa-operands.c: a VUSE for .GLOBAL_VAR if it has been created. See add_referenced_var tree-tailcall.c: add_referenced_var (tmp); tree-tailcall.c: add_referenced_var (tmp); tree-tailcall.c: add_referenced_var (tmp); tree-tailcall.c: add_referenced_var (tmp); tree-tailcall.c: add_referenced_var (tmp); Could it be that this function was exported, despite being declared static? It is possible that the compiler I used for bootstrapping exposes this bug. Also note that there is a discrepancy in the number of arguments. Possible solution: Declare the function global in the appropriate header (whatever that may be) and call it with the correct number of arguments. -- tkoenig at gcc dot gnu dot org changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |amacleod at redhat dot com http://gcc.gnu.org/bugzilla/show_bug.cgi?id=27763