From patchwork Tue Jul 30 20:44:46 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Rong Xu X-Patchwork-Id: 263521 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from sourceware.org (server1.sourceware.org [209.132.180.131]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client CN "localhost", Issuer "www.qmailtoaster.com" (not verified)) by ozlabs.org (Postfix) with ESMTPS id AAB552C00B8 for ; Wed, 31 Jul 2013 06:45:02 +1000 (EST) DomainKey-Signature: a=rsa-sha1; c=nofws; d=gcc.gnu.org; h=list-id :list-unsubscribe:list-archive:list-post:list-help:sender :mime-version:date:message-id:subject:from:to:content-type; q= dns; s=default; b=doUqW5er5Lmd9vlSMfl2pjlnN0PFbR3zaapuC7axoR37Sc SMCRHTO3XIXTxEqAre9qaA26lfpnGMsj3DNpVP4oS+S53dLnhdPtHJ4D40+/JGIv VSvpauRsxhAbG5XcFU+HJZirGW72A5Rx+qoCxTKf2VkNMmePjl8r/AmOyoYEQ= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=gcc.gnu.org; h=list-id :list-unsubscribe:list-archive:list-post:list-help:sender :mime-version:date:message-id:subject:from:to:content-type; s= default; bh=+6eOB20Xt9yh/E98M1n9RuY+rpI=; b=WWfQP/8Uqgihujtkvjyc XexzcQRmeVLAi6wC7zkhP3jTOJRAopWPKVJZKGpdm03Lp1loVKys+uyg/kFwI1Mn WbIZ7B+xyocNJkoffQ6UVIDBOSbcHAauXVJK4SZ0104acSTZNE5ECJl8d8LT0wUs WndxbSx7gIQsk2aFADZjXuY= Received: (qmail 8952 invoked by alias); 30 Jul 2013 20:44:56 -0000 Mailing-List: contact gcc-patches-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Archive: List-Post: List-Help: Sender: gcc-patches-owner@gcc.gnu.org Delivered-To: mailing list gcc-patches@gcc.gnu.org Received: (qmail 8926 invoked by uid 89); 30 Jul 2013 20:44:55 -0000 X-Spam-SWARE-Status: No, score=-2.3 required=5.0 tests=AWL, BAYES_00, RCVD_IN_DNSWL_LOW, RCVD_IN_HOSTKARMA_YE, RDNS_NONE, SPF_PASS autolearn=no version=3.3.1 Received: from Unknown (HELO mail-oa0-f44.google.com) (209.85.219.44) by sourceware.org (qpsmtpd/0.84/v0.84-167-ge50287c) with ESMTP; Tue, 30 Jul 2013 20:44:54 +0000 Received: by mail-oa0-f44.google.com with SMTP id l20so13981437oag.3 for ; Tue, 30 Jul 2013 13:44:46 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type :x-gm-message-state; bh=pevcYQCwz/XfZmQUjzVkyoNIr0rwiUnHXRs5FM70lUg=; b=gG/V15851JbzPO2LBEWn89QME4Es0nSOFGHVKvE6KXmItK/UOUAJX6VRsX4XwpwHaU vFclYgc0EjU2Z5od2dnmAxe0GO6/0qYVCkNqA1RwsrjV2nlPbvSXnoYh7ne1Iqo7oBLR rDYObHjZNROn4eobx1vP51cb3GrIWfZcvl1bcYQHgnHUhC+1sFEkd+9zJ1dd2TEUjU5x ARAlOJsUXXWwzrJMFIP0jtRPH6aLYigekZteKiwTxFwKlh/7cBjx18NT0t10YZ493xPB 8K3I/dGCialryNBSdpD/EE0RJxjtE6wQ8gC/9i/yWZzthEki8xIErCkmKymyjiAWzdsN 3kmg== MIME-Version: 1.0 X-Received: by 10.60.137.225 with SMTP id ql1mr64226340oeb.48.1375217086734; Tue, 30 Jul 2013 13:44:46 -0700 (PDT) Received: by 10.182.213.74 with HTTP; Tue, 30 Jul 2013 13:44:46 -0700 (PDT) Date: Tue, 30 Jul 2013 13:44:46 -0700 Message-ID: Subject: [google gcc-4_8] Force cmd-line match for option -ansi in LIPO use From: Rong Xu To: David Li , GCC Patches X-Gm-Message-State: ALoCoQlo6PF6uXqxu+szmL2DsfQuVIKPa8e48mCl8lK+chPLHw4W95tMHo7b+dLPwO+TcJPSAhegk5w6Bs4DxGSJi+6r/onSOENPaCyqG535Paq5DgxwkhTApOV2iKHbBTCYnn9SDlPjxe734DhEQPiEf+ACzzZnq/gxLWsf1VqF+Cmzg7OKO+aK87gJLPMTRuBYCRi36mKBzpODP8JXvmiSViIjwfSR5Q== The following patch forces the command line match for -ansi option in LIPO use build. Otherwise, it gets various undefined symbol errors. This is exposed in LIPO random grouping test. Tested with google internal benchmarks and gcc regression test. 2013-07-30 Rong Xu * gcc/coverage.c (force_matching_cg_opts): require cmd line match on -ansi option in LIPO use build. Index: gcc/coverage.c =================================================================== --- gcc/coverage.c (revision 201219) +++ gcc/coverage.c (working copy) @@ -263,6 +263,7 @@ static struct opt_desc force_matching_cg_opts[] = { "-fsized-delete", "-fno-sized-delete", false }, { "-frtti", "-fno-rtti", true }, { "-fstrict-aliasing", "-fno-strict-aliasing", true }, + { "-ansi", "", false }, { NULL, NULL, false } };