------- 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