From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 2846 invoked by alias); 5 Nov 2012 05:03:49 -0000 Received: (qmail 2824 invoked by uid 22791); 5 Nov 2012 05:03:47 -0000 X-SWARE-Spam-Status: No, hits=-6.2 required=5.0 tests=AWL,BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,KHOP_RCVD_TRUST,KHOP_THREADED,RCVD_IN_DNSWL_LOW,RCVD_IN_HOSTKARMA_YE,RP_MATCHES_RCVD X-Spam-Check-By: sourceware.org Received: from mail-pa0-f47.google.com (HELO mail-pa0-f47.google.com) (209.85.220.47) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Mon, 05 Nov 2012 05:03:43 +0000 Received: by mail-pa0-f47.google.com with SMTP id fa11so3468150pad.20 for ; Sun, 04 Nov 2012 21:03:42 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:x-system-of-record:x-gm-message-state; bh=xHhE7gLGZFpAxvwd/td1p2hsuto70Lv0HVuR1cNQ4WU=; b=Zc6lGKJi2q1+xT1KhsOE/upHFnBvao4VLIyn2XbGU+u0wpZCvwaDXyJG82SQ10kQn/ PTxEhY7MsdgME10PwhF039mO7+GfV9o7KPhhSnP7BlFzaff/pZw+nBrqqyje6j2PNd+k uHWcmTrDgkeLJrRg/0seT2nYFUvJRwBRzkxktjMKYW/Xc5JArq4OQ8zEYxZbP4bYJpdW Qt5Hw7HTGU048bKVmG6HdVItVOljBmq8LcaCnqolLwKnTCFJIhcWMjLBwjNAKtxOyBq2 67npFnhSNpLrLFUIAr5cHTugT3l/5INqLMzZfmZ7M1hzhBQCltft9rchzqi0INrOhq7e GjBw== MIME-Version: 1.0 Received: by 10.68.189.233 with SMTP id gl9mr26691573pbc.166.1352091822477; Sun, 04 Nov 2012 21:03:42 -0800 (PST) Received: by 10.68.238.5 with HTTP; Sun, 4 Nov 2012 21:03:42 -0800 (PST) In-Reply-To: References: Date: Mon, 05 Nov 2012 05:03:00 -0000 Message-ID: Subject: Re: Using -ffunction-sections and -p From: Ian Lance Taylor To: Sriraman Tallam Cc: GCC Patches , David Li , gcc@gcc.gnu.org Content-Type: text/plain; charset=ISO-8859-1 X-System-Of-Record: true X-Gm-Message-State: ALoCoQle7GPXkv0WWnWgW968Y9FEY+S6DR3BAEY7lHwsM6cR9z5SNn5n2q9GfA6Gl7i7m8uyPLhENUyQBodW2XfqiWzuhpjwS5V1i2iif45iYml3Z/vIHvzOVRflxi+rkfDjszF00uNYH5AdJnhv9sGGX3NajZBYGPl8ofH5GUt9MPvS44IJ4pf/O7e4ZN3OqTI7FODTM9q/ X-IsSubscribed: yes Mailing-List: contact gcc-patches-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-patches-owner@gcc.gnu.org X-SW-Source: 2012-11/txt/msg00348.txt.bz2 On Sun, Nov 4, 2012 at 8:04 PM, Sriraman Tallam wrote: > > Currently, using -ffunction-sections and -p together results in a > warning. I ran into this problem when compiling the kernel. This is > discussed in this thread: > > http://gcc.gnu.org/ml/gcc-help/2008-11/msg00128.html > > Ian's reply suggests this warning is no longer necessary and can be > removed. Is this patch alright to commit with all tests passing: > > * toplev.c (process_options): Do not warn when -ffunction-sections > and -fprofile are used together. In that thread Jeff suggested that this be tested on Solaris and PA. I don't know how to test on PA, but could somebody test the patch on Solaris? Ian