From patchwork Tue Feb 21 09:45:11 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ilya Enkovich X-Patchwork-Id: 142274 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]) by ozlabs.org (Postfix) with SMTP id CB2D6B6FA7 for ; Tue, 21 Feb 2012 20:45:42 +1100 (EST) Comment: DKIM? See http://www.dkim.org DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d=gcc.gnu.org; s=default; x=1330422343; h=Comment: DomainKey-Signature:Received:Received:Received:Received: Received-SPF:Received:MIME-Version:Received:Received:Date: Message-ID:Subject:From:To:Cc:Content-Type:Mailing-List: Precedence:List-Id:List-Unsubscribe:List-Archive:List-Post: List-Help:Sender:Delivered-To; bh=49W9d2iZigjWSnw0xFNiHxS4T0Q=; b=Fz5AHMtVGk+fxh/6twZ/nn1oG19wLN004G4Dmid9JuhNrYDxnHspCQw7+9Y5oC enW96bRubobIhPHpWbWnp7ZsF/sM9lM6SmiOCwwG3400ktWXaG5NDvzB4OR/3zdP 6MCSsL2KSsVc5VlM0D03/3NJnl8wjNFYMzRck+OIXLFPE= Comment: DomainKeys? See http://antispam.yahoo.com/domainkeys DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=default; d=gcc.gnu.org; h=Received:Received:X-SWARE-Spam-Status:X-Spam-Check-By:Received:Received:Received-SPF:Authentication-Results:Received:MIME-Version:Received:Received:Date:Message-ID:Subject:From:To:Cc:Content-Type:X-IsSubscribed:Mailing-List:Precedence:List-Id:List-Unsubscribe:List-Archive:List-Post:List-Help:Sender:Delivered-To; b=qNbwI+HhSNHd53sXdraWZSHMy+qIFIwSs97qEDB6nqvW93+To6lbLin9eK0R4L p51Hym2H9K6NUP9z0rmo8PgysmywVVCWD+U7JT5RdRi8zKWGIsIae+BUs/m7KD3+ mBIWZrWRbBG2umI2eTdXbnIS/CzqU/VDMUuGPICoCQSEc=; Received: (qmail 18462 invoked by alias); 21 Feb 2012 09:45:29 -0000 Received: (qmail 18431 invoked by uid 22791); 21 Feb 2012 09:45:26 -0000 X-SWARE-Spam-Status: No, hits=-2.2 required=5.0 tests=AWL, BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, FREEMAIL_FROM, RCVD_IN_DNSWL_LOW X-Spam-Check-By: sourceware.org Received: from mail-pz0-f47.google.com (HELO mail-pz0-f47.google.com) (209.85.210.47) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Tue, 21 Feb 2012 09:45:11 +0000 Received: by daln34 with SMTP id n34so6506674dal.20 for ; Tue, 21 Feb 2012 01:45:11 -0800 (PST) Received-SPF: pass (google.com: domain of enkovich.gnu@gmail.com designates 10.68.220.162 as permitted sender) client-ip=10.68.220.162; Authentication-Results: mr.google.com; spf=pass (google.com: domain of enkovich.gnu@gmail.com designates 10.68.220.162 as permitted sender) smtp.mail=enkovich.gnu@gmail.com; dkim=pass header.i=enkovich.gnu@gmail.com Received: from mr.google.com ([10.68.220.162]) by 10.68.220.162 with SMTP id px2mr13514224pbc.47.1329817511135 (num_hops = 1); Tue, 21 Feb 2012 01:45:11 -0800 (PST) MIME-Version: 1.0 Received: by 10.68.220.162 with SMTP id px2mr10993246pbc.47.1329817511095; Tue, 21 Feb 2012 01:45:11 -0800 (PST) Received: by 10.68.132.72 with HTTP; Tue, 21 Feb 2012 01:45:11 -0800 (PST) Date: Tue, 21 Feb 2012 13:45:11 +0400 Message-ID: Subject: [google/gcc-4_6_2-mobile, PATCH] Enable exceptions and RTTI by default for Android From: Ilya Enkovich To: gcc-patches Cc: Jing Yu , "H.J. Lu" , pavel.v.chupin@gmail.com X-IsSubscribed: yes 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 Hello, Here is a ptch which enables exceptions and RTTI by default for android targets like it is done in current NDK GCC 4.4.3 compiler. OK for google/gcc-4_6_2-mobile branch. Thanks, Ilya --- 2012-02-21 Enkovich Ilya * gcc/config/linux-android.h (ANDROID_CC1PLUS_SPEC): Enable exceptions and rtti by default. Index: gcc/config/linux-android.h =================================================================== --- gcc/config/linux-android.h (revision 184395) +++ gcc/config/linux-android.h (working copy) @@ -46,8 +46,8 @@ "%{!fno-pic:%{!fno-PIC:%{!fpic:%{!fPIC: -fPIC}}}}" #define ANDROID_CC1PLUS_SPEC \ - "%{!fexceptions:%{!fno-exceptions: -fno-exceptions}} " \ - "%{!frtti:%{!fno-rtti: -fno-rtti}}" + "%{!fexceptions:%{!fno-exceptions: -fexceptions}} " \ + "%{!frtti:%{!fno-rtti: -frtti}}" #define ANDROID_LIB_SPEC \ "%{!static: -ldl}"