HEADS UP: GCC 3.4.6 update complete

Norikatsu Shigemura nork at FreeBSD.org
Sun Aug 27 22:57:35 UTC 2006


On Sat, 26 Aug 2006 22:36:08 +0000
Alexander Kabaev <kan at freebsd.org> wrote:
> All is clear. This update should be pretty uneventful and nothing should
> break because of it. I am very interested in being notified of anything
> that contradicts with an above statement.

	I couldn't compile gcc, because of following error message.

===> gnu/usr.bin/cc/cc1plus (all)
cc -O2 -fno-strict-aliasing -pipe -DIN_GCC -DHAVE_CONFIG_H -DPREFIX=\"/usr/obj/usr/src/tmp/usr\" -I/usr/obj/usr/src/tmp/usr/src/gnu/usr.bin/cc/cc1plus/../cc_tools -I/usr/src/gnu/usr.bin/cc/cc1plus/../cc_tools -I/usr/src/gnu/usr.bin/cc/cc1plus/../../../../contrib/gcc -I/usr/src/gnu/usr.bin/cc/cc1plus/../../../../contrib/gcc/config -I/usr/src/gnu/usr.bin/cc/cc1plus/../../../../contrib/gcc/cp -I.  -I/usr/obj/usr/src/tmp/legacy/usr/include -c /usr/src/gnu/usr.bin/cc/cc1plus/../../../../contrib/gcc/cp/decl.c
/usr/src/gnu/usr.bin/cc/cc1plus/../../../../contrib/gcc/cp/decl.c: In function `grokfndecl':
/usr/src/gnu/usr.bin/cc/cc1plus/../../../../contrib/gcc/cp/decl.c:5721: error: too many arguments to function `grok_op_properties'
/usr/src/gnu/usr.bin/cc/cc1plus/../../../../contrib/gcc/cp/decl.c: At top level:
/usr/src/gnu/usr.bin/cc/cc1plus/../../../../contrib/gcc/cp/decl.c:9008: error: conflicting types for 'grok_op_properties'
/usr/src/gnu/usr.bin/cc/cc1plus/../../../../contrib/gcc/cp/cp-tree.h:3686: error: previous declaration of 'grok_op_properties' was here
/usr/src/gnu/usr.bin/cc/cc1plus/../../../../contrib/gcc/cp/decl.c:9008: error: conflicting types for 'grok_op_properties'
/usr/src/gnu/usr.bin/cc/cc1plus/../../../../contrib/gcc/cp/cp-tree.h:3686: error: previous declaration of 'grok_op_properties' was here

	I can fix it such as following patch.

--- contrib/gcc/cp/cp-tree.h.orig	Sun Aug 27 06:29:09 2006
+++ contrib/gcc/cp/cp-tree.h	Mon Aug 28 07:42:35 2006
@@ -3683,7 +3683,7 @@
 extern tree get_scope_of_declarator             (tree);
 extern void grok_special_member_properties	(tree);
 extern int grok_ctor_properties			(tree, tree);
-extern bool grok_op_properties			(tree, bool);
+extern bool grok_op_properties			(tree, int, bool);
 extern tree xref_tag				(enum tag_types, tree, bool, bool);
 extern tree xref_tag_from_type			(tree, tree, int);
 extern void xref_basetypes			(tree, tree);


	But....

cc -I/usr/src/gnu/usr.bin/cc/cc1plus/../../../../contrib/gcc/config -I/usr/src/gnu/usr.bin/cc/cc1plus/../../../../contrib/gcc/cp -I.  -I/usr/obj/usr/src/tmp/legacy/usr/include -c /usr/src/gnu/usr.bin/cc/cc1plus/../../../../contrib/gcc/cp/pt.c
/usr/src/gnu/usr.bin/cc/cc1plus/../../../../contrib/gcc/cp/pt.c: In function `tsubst_decl':
/usr/src/gnu/usr.bin/cc/cc1plus/../../../../contrib/gcc/cp/pt.c:6315: error: too few arguments to function `grok_op_properties'

	Sorry, I don't know how to fix:-(.  I have no idea.
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
          }
        else if (IDENTIFIER_OPNAME_P (DECL_NAME (r)))
          grok_op_properties (r, (complain & tf_error) != 0);

        if (DECL_FRIEND_P (t) && DECL_FRIEND_CONTEXT (t))
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -


More information about the freebsd-current mailing list