From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 14594 invoked by alias); 19 Dec 2009 11:44:59 -0000 Received: (qmail 14585 invoked by uid 22791); 19 Dec 2009 11:44:58 -0000 X-SWARE-Spam-Status: No, hits=-2.1 required=5.0 tests=AWL,BAYES_00 X-Spam-Check-By: sourceware.org Received: from smtpq1.tb.mail.iss.as9143.net (HELO smtpq1.tb.mail.iss.as9143.net) (212.54.42.164) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Sat, 19 Dec 2009 11:44:55 +0000 Received: from [212.54.42.132] (helo=smtp1.tb.mail.iss.as9143.net) by smtpq1.tb.mail.iss.as9143.net with esmtp (Exim 4.69) (envelope-from ) id 1NLxjw-0005zt-6N for java@gcc.gnu.org; Sat, 19 Dec 2009 12:44:52 +0100 Received: from cc996820-b.hnglo1.ov.home.nl ([82.75.45.155] helo=[192.168.123.2]) by smtp1.tb.mail.iss.as9143.net with esmtp (Exim 4.69) (envelope-from ) id 1NLxju-0005Ua-Qd for java@gcc.gnu.org; Sat, 19 Dec 2009 12:44:50 +0100 Message-ID: <4B2CBCB2.3050401@home.nl> Date: Sat, 19 Dec 2009 11:44:00 -0000 From: Herman ten Brugge User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1.5) Gecko/20091209 Fedora/3.0-4.fc12 Thunderbird/3.0 MIME-Version: 1.0 To: java@gcc.gnu.org Subject: Making -findirect-dispatch the default? Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-ZiggoSMTP-MailScanner-Information: Please contact the ISP for more information X-ZiggoSMTP-MailScanner-ID: 1NLxju-0005Ua-Qd X-ZiggoSMTP-MailScanner: Found to be clean X-ZiggoSMTP-MailScanner-SpamCheck: geen spam, SpamAssassin (niet cached, score=-3.899, vereist 5, ALL_TRUSTED -1.80, BAYES_00 -2.60, CM_META_TB_NOARR 0.50) X-ZiggoSMTP-MailScanner-From: hermantenbrugge@home.nl Mailing-List: contact java-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: java-owner@gcc.gnu.org X-SW-Source: 2009-12/txt/msg00044.txt.bz2 I would like to make a suggestion to make the "-findirect-dispatch" the default when compiling code with gcj. If you do not do this you some times get the message: "Incorrect library ABI version detected. Aborting." This is really puzzling the first time you see it. You compiled you source code from scratch and still this message is given when running it. I found the solution on the internet and used "-findirect-dispatch" to solve it. Why is this still not the default. I see that is was first introduced in the "ftp://gcc.gnu.org/pub/gcc/summit/2004/GCJ New ABI.pdf" because of serious ABI problems. But this was 5 years ago. I also see that it has some performance penalties. But for optimizing code we always have to use some optimizing flags. We can then supply "-fno-indirect-dispatch" is we want faster code (and ABI incompatible).