From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 30467 invoked by alias); 13 Jul 2010 23:51:47 -0000 Received: (qmail 30432 invoked by uid 48); 13 Jul 2010 23:51:36 -0000 Date: Tue, 13 Jul 2010 23:51:00 -0000 Message-ID: <20100713235136.30431.qmail@sourceware.org> X-Bugzilla-Reason: CC References: Subject: [Bug libstdc++/44902] eh_arm.cc:42:23: error: declaration of '__cxxabiv1::__cxa_type_match_result __cxa_type_match(_Unwind_Control_Block*, const std::type_info*, bool, void**)' with C language linkage [-Werror] In-Reply-To: Reply-To: gcc-bugzilla@gcc.gnu.org To: gcc-bugs@gcc.gnu.org From: "mikpe at it dot uu dot se" Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org X-SW-Source: 2010-07/txt/msg01453.txt.bz2 ------- Comment #4 from mikpe at it dot uu dot se 2010-07-13 23:51 ------- Created an attachment (id=21195) --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=21195&action=view) fix __cxa_type_match and __cxa_begin_cleanup prototypes Looks like long-standing confusion about the return types of __cxa_type_match and __cxa_begin_cleanup. I see the warnings with 4.5 and 4.6, but strangely enough not with 4.4 even though the same mismatch exists there. Fixed by making the prototypes match the function definitions. Tested so far with a 4.6 cross to arm-linux-gnueabi. There's also a mismatching extern declaration for __cxa_begin_cleanup in libjava/exception.cc, but it seems harmless so I excluded the patch to correct it. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=44902